Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

sudo gem install rhc fails on OSX El Capitan #702

Open
timmolter opened this issue Oct 2, 2015 · 2 comments
Open

sudo gem install rhc fails on OSX El Capitan #702

timmolter opened this issue Oct 2, 2015 · 2 comments

Comments

@timmolter
Copy link

$ sudo gem install rhc
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/rhc
@timmolter
Copy link
Author

Solution has to do with where Ruby installs gems:

On El Capitan you need to change where ruby installs gems using nano ~/.gemrc and adding gem: -n/usr/local/bin. source

@adcoolguy
Copy link

Or it you use rbenv, just do a ". ~/.bash_profile" and it would work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants