Fedora 21 - Gem: change EXECUTABLE DIRECTORY

You can try

$ export GEM_HOME = ~/.gem

This will change your gem executable directory into ~/.gem/bin

You can confirm that by run $ gem env again

If that works you can make it permanent by adding export GEM_HOME=$HOME/.gem at the end of file .bashrc or .zshrc

Hope that help!


If your intention was to install gems' executables into ~/.gem/bin, you can set in ~/.gemrc:

gem:
 --bindir ~/.gem/bin 
 # any other gem settings like: 
 --no-ri --no-rdoc

It will NOT change EXECUTABLE DIRECTORY, but gems' executables will be installed into ~/.gem/bin. You can check it is set by:

$ gem env
- GEM CONFIGURATION:
     - "gem" => "--bindir ~/.gem/bin --no-ri --no-rdoc"

To be able to invoke them, add that directory at the beginning of your PATH.

Tags:

Ruby

Fedora