1 |
On Thursday, 28 October 2021 12:08:01 BST Dr Rainer Woitok wrote: |
2 |
|
3 |
> I faintly remember ... long time ago, when I had to use some Ruby gems |
4 |
> under both, Ubuntu and Gentoo I think I did something along the lines of |
5 |
> |
6 |
> $ gem install $pkg --user-install |
7 |
|
8 |
Er... |
9 |
$ gem install jekyll bundler --user-install |
10 |
ERROR: Use --install-dir or --user-install but not both |
11 |
|
12 |
I couldn't find anything helpful in '$ gem help install' either. |
13 |
|
14 |
> $ ln -s $(ls -drv ~/.gem/ruby/*/gems/$pkg-*/bin/$pkg | head -1) ~/bin |
15 |
> |
16 |
> where the asterisks matched different Ruby and package versions, respec- |
17 |
> tively, and the "-rv" option for the "ls" command caused the most recent |
18 |
> versions to be picked by the "head" command. And of course, my personal |
19 |
> "~/bin/" directory was mentioned in "PATH" early on. |
20 |
> |
21 |
> Not sure though, whether or not that will help you. |
22 |
|
23 |
Thanks anyway, Rainer. |
24 |
|
25 |
-- |
26 |
Regards, |
27 |
Peter. |