Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User installed gems are not available in PATH #33

Closed
oxyc opened this issue Jan 9, 2017 · 0 comments
Closed

User installed gems are not available in PATH #33

oxyc opened this issue Jan 9, 2017 · 0 comments

Comments

@oxyc
Copy link
Contributor

oxyc commented Jan 9, 2017

The binaries provided from packages installed with ruby_install_gems are not available in the users shell.

vagrant@drupalvm-project:~$ gem list -d | grep 'compass ' -A 4
compass (1.0.3)
    Authors: Chris Eppstein, Scott Davis, Eric M. Suzanne, Brandon
    Mathis, Nico Hagenburger
    Homepage: http://compass-style.org
    Installed at: /home/vagrant/.gem/ruby/1.9.1
vagrant@drupalvm-project:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/vagrant/.composer/vendor/bin

According the ruby FAQ the path needs to be added to ~/.bashrc

if which ruby >/dev/null && which gem >/dev/null; then
    PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi
oxyc added a commit to oxyc/ansible-role-ruby that referenced this issue Jan 9, 2017
geerlingguy added a commit that referenced this issue Jan 9, 2017
Fixes #33: Add user installed gems bin directoyr to PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant