Hello list,
I wanted to try this package to create a small site for myself, but I'm falling at the second hurdle (the first was setting package.env etc to pull in
ruby26 as well as the currently installed ruby30).
Does anyone have experience with this builder? I'd like to find out where I'm
going wrong first.
Am Donnerstag, 21. Oktober 2021, 18:11:27 CEST schrieb Peter Humphrey:
Hello list,
I wanted to try this package to create a small site for myself, but I'm falling at the second hurdle (the first was setting package.env etc to
pull in ruby26 as well as the currently installed ruby30).
Does anyone have experience with this builder? I'd like to find out where I'm going wrong first.
It's used for www.gentoo.org :)
https://gitweb.gentoo.org/sites/www.git
On Wednesday, 27 October 2021 14:31:28 BST Peter Humphrey wrote:
Sorry: The site is https://jekyllrb.com/docs/
--
Regards,
Peter.
did you have dev-ruby/rubygems installed? See https://jekyllrb.com/docs/#prerequisites
Hello list,
I wanted to try this package to create a small site for myself, but I'm falling at the second hurdle (the first was setting package.env etc to pull in ruby26 as well as the currently installed ruby30).
Does anyone have experience with this builder? I'd like to find out where
I'm going wrong first.
On Wednesday, 27 October 2021 14:44:09 BST Pascal Schorde wrote:Ruby is slotted, so you can have 2.6 and 3.0 installed together. You
did you have dev-ruby/rubygems installed? See https://jekyllrb.com/docs/#prerequisites
Yes, but at version 3.0:
$ eix dev-ruby/rubygems
[I] dev-ruby/rubygems
Available versions: 3.0.3^t 3.0.9^t 3.1.6^t (~)3.2.14^t{tbz2}
[M]
(~)3.2.22^t{tbz2} {server test RUBY_TARGETS="ruby26 ruby27 ruby30"}
Installed versions: 3.2.14^t{tbz2}(09:19:26 10/26/21)(-server
-test
RUBY_TARGETS="ruby26 ruby30 -ruby27")
One possibility occurred to me: is having two ruby versions installed
at once
the problem? I already had 3.0 installed, the current Gentoo version,
but
jekyll needs 2.6. To test this idea, I'd have to downgrade the whole
system to
2.6; I don't know whether that's even feasible now.
One possibility occurred to me: is having two ruby versions installed at
once the problem? I already had 3.0 installed, the current Gentoo version, but jekyll needs 2.6. To test this idea, I'd have to downgrade the whole system to 2.6; I don't know whether that's even feasible now.
On 2021.10.27 09:59, Peter Humphrey wrote:
One possibility occurred to me: is having two ruby versions installed
at once the problem? I already had 3.0 installed, the current Gentoo version, but jekyll needs 2.6. To test this idea, I'd have to downgrade
the whole system to 2.6; I don't know whether that's even feasible now.
Ruby is slotted, so you can have 2.6 and 3.0 installed together.
You would then need to rebuild rubygems to target both of them.
There is also a virtual/rubygems. I'm not really sure of it's function, but it seems to just specify a minimum version of rubygems per targetted
version of ruby.
On Wednesday, 27 October 2021 14:59:13 BST Peter Humphrey wrote:
One possibility occurred to me: is having two ruby versions installed at once the problem? I already had 3.0 installed, the current Gentoo version, but jekyll needs 2.6. To test this idea, I'd have to downgrade the whole system to 2.6; I don't know whether that's even feasible now.
The more I think about it, the more I suspect my path setting. In Ubuntu, apparently, there's a ~/gems/bin directory, which is to go at the head of the PATH, but what's the equivalent in Gentoo? I could create that directory, but what should I put in it?
I faintly remember ... long time ago, when I had to use some Ruby gems under both, Ubuntu and Gentoo I think I did something along the lines of
$ gem install $pkg --user-install
$ ln -s $(ls -drv ~/.gem/ruby/*/gems/$pkg-*/bin/$pkg | head -1) ~/bin
where the asterisks matched different Ruby and package versions, respec- tively, and the "-rv" option for the "ls" command caused the most recent versions to be picked by the "head" command. And of course, my personal "~/bin/" directory was mentioned in "PATH" early on.
Not sure though, whether or not that will help you.
On Thursday, 21 October 2021 17:11:27 BST Peter Humphrey wrote:
Hello list,
I wanted to try this package to create a small site for myself, but I'm
falling at the second hurdle (the first was setting package.env etc to pull >> in ruby26 as well as the currently installed ruby30).
Does anyone have experience with this builder? I'd like to find out where
I'm going wrong first.
I'm still not getting through the installation of jekyll. The website[1] says to follow the instructions for Ubuntu, but something's lacking. For one thing,
it says to include ~/gems/bin in my PATH, but there isn't one. I looked for something similar under / but nothing turned up.
I followed the instructions to install jekyll and its dependencies, then:
$ gem install jekyll bundler
which went fine, but this failed with a bunch of not-found errors, including jekyll itself:
$ jekyll new myblog
Am I still missing a component, or something?
I got jekyll installed via portage by adding:
dev-ruby/* ~amd64
www-apps/jekyll ~amd64
www-apps/jekyll-* ~amd64
to package.accept_keywords, and then running `emerge www-apps/jekyll'.
This is on stable, with a tree that is a couple weeks old for what it's worth.
Then `jekyll new testsite && bundle exec jekyll serve' works for me.
You could also try using jekyll outside of portage:
mkdir mysite && cd mysite
bundle init
bundle config set path 'vendor/bundle'
bundle add jekyll
bundle exec jekyll new --force .
rm Gemfile.lock
rm -rf ./vendor/bundle
bundle config set path 'vendor/bundle'
bundle install
bundle exec jekyll serve
And then continue following other jekyll instructions as needed. You'll have to use `bundle exec jekyll ...' to run jekyll - you won't be able to run jekyll directly.
On Thursday, 28 October 2021 13:34:49 BST Alec Ten Harmsel wrote:
I got jekyll installed via portage by adding:
dev-ruby/* ~amd64
www-apps/jekyll ~amd64
www-apps/jekyll-* ~amd64
to package.accept_keywords, and then running `emerge www-apps/jekyll'.
This is on stable, with a tree that is a couple weeks old for what it's
worth.
This system is ~amd64, so I didn't have to do that.
Then `jekyll new testsite && bundle exec jekyll serve' works for me.
$ jekyll new myblog && bundle exec jekyll serve
...
[A number of Bundler: Using... messages]
...
New jekyll site installed in /home/prh/myblog.
Could not locate Gemfile or .bundle/ directory
On Thu, Oct 28, 2021, at 09:25, Peter Humphrey wrote:jekyll'.
On Thursday, 28 October 2021 13:34:49 BST Alec Ten Harmsel wrote:
I got jekyll installed via portage by adding:
dev-ruby/* ~amd64
www-apps/jekyll ~amd64
www-apps/jekyll-* ~amd64
to package.accept_keywords, and then running `emerge www-apps/
This is on stable, with a tree that is a couple weeks old for what it's
worth.
This system is ~amd64, so I didn't have to do that.
Then `jekyll new testsite && bundle exec jekyll serve' works for me.
$ jekyll new myblog && bundle exec jekyll serve
...
[A number of Bundler: Using... messages]
...
New jekyll site installed in /home/prh/myblog.
Could not locate Gemfile or .bundle/ directory
I missed a step:
On Thursday, 21 October 2021 17:11:27 BST Peter Humphrey wrote:
Hello list,
I wanted to try this package to create a small site for myself, butI'm
falling at the second hurdle (the first was setting package.env etcto pull
in ruby26 as well as the currently installed ruby30).
Does anyone have experience with this builder? I'd like to find outwhere
I'm going wrong first.
I just noticed something which may or may not help. The jekyllrb.com
docs page, under Prerequisites, says Ruby version 2.5.0 or higher. Why
does the ebuild insist on 2.5 (no longer even in the tree) or 2.6. If
I were going to install it, the first thing I'd probably do is make a
copy in my local overlay, and allow a newer version of ruby. I don't
think that is likely to help with your problem of not finding one thing
or another, but who knows? (A note lower down on that page says that
using ruby 3.0.0 or higher add a requirement for webrick, but that is available in portage, and could be handled in the ebuild.
On Thursday, 21 October 2021 17:11:27 BST Peter Humphrey wrote:
Hello list,
I wanted to try this package to create a small site for myself, but
I'm
falling at the second hurdle (the first was setting package.env etc
to pull
in ruby26 as well as the currently installed ruby30).
Does anyone have experience with this builder? I'd like to find out
where
I'm going wrong first.
I just noticed something which may or may not help. The jekyllrb.com
docs page, under Prerequisites, says Ruby version 2.5.0 or higher. Why
does the ebuild insist on 2.5 (no longer even in the tree) or 2.6. If
I were going to install it, the first thing I'd probably do is make a
copy in my local overlay, and allow a newer version of ruby. I don't
think that is likely to help with your problem of not finding one thing
or another, but who knows? (A note lower down on that page says that
using ruby 3.0.0 or higher add a requirement for webrick, but that is available in portage, and could be handled in the ebuild.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 286 |
Nodes: | 16 (2 / 14) |
Uptime: | 86:57:51 |
Calls: | 6,496 |
Calls today: | 7 |
Files: | 12,099 |
Messages: | 5,277,134 |