Peter,

On Thursday, 2021-10-28 09:53:48 +0100, you wrote:

> 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.

Sincerely,
  Rainer

Reply via email to