You are not logged in.
I just performed a new Arch install, and installed Ruby through pacman - then proceeded to first update rubygems after and install a few gems that were meant to be available system wide. This worked as you would expect previously, but that appears to no longer be the case:
[root@nia srv]# gem update --system
Updating rubygems-update
Fetching: rubygems-update-1.8.17.gem (100%)
WARNING: You don't have /root/.gem/ruby/1.9.1/bin in your PATH,
gem executables will not run.
Successfully installed rubygems-update-1.8.17
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - /usr/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.17
It looks like this is being caused by the --user-install option being placed in /etc/gemrc - somewhere between ruby-1.9.3_p0-3 and ruby-1.9.3_p125-1 (that general since those are the only packages in my package cache).
I went ahead and commented it out for now - but does anyone know if there was a specific reason to have that option applied for all users, including root? It doesn't really make much sense (to me at least) to have gems installed in root's home directory. I'd think a better solution would be to have a .gemrc in /etc/skel/. Any thoughts?
(also, wasn't sure which subforum this should have gone to - package upgrade issues vs app issues - but it does seem arch-specific)
a.k.a. liliff/musee. milk tea fuzz
Offline
/etc/gemrc says:
# --user-install is used to install to $HOME/.gem/ by default since we want to separate
# pacman installed gems and gem installed gems
Offline
I think this might explain it:
http://mailman.archlinux.org/pipermail/ … 22528.html
http://mailman.archlinux.org/pipermail/ … 22609.html
Offline
I just bumped into this, too. The easiest way to have gems installed and available system-wide is to use the --no-user-install option...
--
/ron
Offline
It doesn't really make much sense (to me at least) to have gems installed in root's home directory. I'd think a better solution would be to have a .gemrc in /etc/skel/.
I can't agree more. Several years with Arch and ruby without any issue untill today.
That change introduce magic and gives nothing back.
Root installs systemwide, think of `gem install` as `./configure && make && make install`
Explicit configuration required to change install path. With `./configure --prefix=$HOME/foo && make && make install` or `gem install --user-install`
Obviously next step is changing default `make` behaviour.
Offline
I've filled the bug https://bugs.archlinux.org/task/29292
Arch for me is simple, working system. One could customize its behaviour here and there. But system should work out of the box. With clean $HOME.
Offline