1 |
Peter, |
2 |
|
3 |
On Thursday, 2021-10-28 09:53:48 +0100, you wrote: |
4 |
|
5 |
> On Wednesday, 27 October 2021 14:59:13 BST Peter Humphrey wrote: |
6 |
> |
7 |
> > One possibility occurred to me: is having two ruby versions installed at |
8 |
> > once the problem? I already had 3.0 installed, the current Gentoo version, |
9 |
> > but jekyll needs 2.6. To test this idea, I'd have to downgrade the whole |
10 |
> > system to 2.6; I don't know whether that's even feasible now. |
11 |
> |
12 |
> The more I think about it, the more I suspect my path setting. In Ubuntu, |
13 |
> apparently, there's a ~/gems/bin directory, which is to go at the head of the |
14 |
> PATH, but what's the equivalent in Gentoo? I could create that directory, but |
15 |
> what should I put in it? |
16 |
|
17 |
I faintly remember ... long time ago, when I had to use some Ruby gems |
18 |
under both, Ubuntu and Gentoo I think I did something along the lines of |
19 |
|
20 |
$ gem install $pkg --user-install |
21 |
$ ln -s $(ls -drv ~/.gem/ruby/*/gems/$pkg-*/bin/$pkg | head -1) ~/bin |
22 |
|
23 |
where the asterisks matched different Ruby and package versions, respec- |
24 |
tively, and the "-rv" option for the "ls" command caused the most recent |
25 |
versions to be picked by the "head" command. And of course, my personal |
26 |
"~/bin/" directory was mentioned in "PATH" early on. |
27 |
|
28 |
Not sure though, whether or not that will help you. |
29 |
|
30 |
Sincerely, |
31 |
Rainer |