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

Error installing gem #7

Closed
exalted opened this issue Mar 15, 2013 · 7 comments
Closed

Error installing gem #7

exalted opened this issue Mar 15, 2013 · 7 comments

Comments

@exalted
Copy link

exalted commented Mar 15, 2013

I’ve got...

cat ~/.rbenv/default-gems 
bundler

… and when I do…

rbenv install 1.9.3-p392 

… I get:

Downloading yaml-0.1.4.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/36c852831d02cf90508c29852361d01b
Installing yaml-0.1.4...
Installed yaml-0.1.4 to /Users/exalted/.rbenv/versions/1.9.3-p392

Downloading ruby-1.9.3-p392.tar.gz...
-> http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
Installing ruby-1.9.3-p392...
        Installed ruby-1.9.3-p392 to /Users/exalted/.rbenv/versions/1.9.3-p392

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
rbenv: error installing gem `bundler’

… that’s because (probably)…

rbenv version
system (set by /Users/exalted/.rbenv/version)

… but then how rbenv-default-gems ought to work?

@cdlm
Copy link

cdlm commented Mar 15, 2013

Strange… for me it picks the fresh rbenv-installed ruby. I don't remember what exactly I was getting, but this could be related to #3, e.g rbenv uses the system gem instead of the one from the ruby you just built…

@exalted
Copy link
Author

exalted commented Mar 15, 2013

@cdlm what would be a possible workaround?

@cdlm
Copy link

cdlm commented Mar 15, 2013

applying my patch from #3 by hand, and nagging @sstephenson to merge it :)

@exalted
Copy link
Author

exalted commented Mar 15, 2013

@sstephenson 🙏

@sstephenson
Copy link
Contributor

Ran into this on a fresh install yesterday. Embarrassing!

ead6788

@exalted
Copy link
Author

exalted commented Apr 8, 2013

This isn’t available with brew yet?

@mroth
Copy link

mroth commented Sep 29, 2014

@sstephenson could you please tag a v1.0.1 release containing this fix? That would enable the homebrew recipe to be updated.

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

4 participants