Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gem install git-up no longer working in El Capitan

After upgrating to OS "El Capitan" I noticed that git-up was no longer installed. I tried to install by:

~ ๐Ÿบ gem install git-up
ERROR:  While executing gem ... (Errno::EACCES)
Permission denied - /Library/Ruby/Gems/2.0.0/gems/git-up-0.5.12/bin/git-up
~ ๐Ÿบ 

Mal El Capitan

like image 456
LanceP Avatar asked Dec 03 '15 16:12

LanceP


Video Answer


1 Answers

After digging in I found the directory is owned by a user other than myself. (/Library/Ruby/Gems/.. is installed by Apple as part of Mac OS X.)

So I simply used brew to get install my own ruby and bingo!

~ ๐Ÿบ brew update
~ ๐Ÿบ brew install ruby

Then I could run:

~ ๐Ÿบ gem install git-up
...
6 gems installed

I started this post as a question but ended with a solution. I hope this helps.

like image 175
LanceP Avatar answered Oct 25 '22 01:10

LanceP