victoryvur.blogg.se

Gem install jekyll permission denied
Gem install jekyll permission denied




I wanted to share the steps that I followed that fixed this issue for me in the hopes that it can help someone else (and also as a reminder for me in case something like this happens again) If you have to use sudo with that configuration you've done something wrong. See the directions for installing into a local RVM sandbox in " Single-User installations".īecause you have RVM in your ~/.bash_profile, but it doesn't show up in your Gem environment listing, I suspect you either haven't followed the directions for installing RVM correctly, or you haven't used the all-important command: rvm use 2.0.0 -defaultįor most users, the "Single-User installation" is the way to go. However, I'd recommend you give serious thought into NOT doing that, and instead use your RVM to install Ruby into your own home directory, where you'll automatically be able to install Rubies and gems without permission issues. You can use sudo gem install jekyll, which will temporarily elevate your permissions, giving your command the rights needed to write to that directory. I won't recommend you run things as root since you don't understand how paths and permissions work. That is a restricted path and can only be written to when you use elevated privileges, either by running as root or by using sudo. Your Ruby is installed in /usr/local/Cellar/ruby/. ] & source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*Ĭould somebody please help me get Jekyll installed, or at least get past this permissions error? Here is my ".bash_profile": export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH" EXECUTABLE DIRECTORY: /usr/local/Cellar/ruby/2.0.0-p0/bin RUBY EXECUTABLE: /usr/local/Cellar/ruby/2.0.0-p0/bin/ruby

gem install jekyll permission denied

INSTALLATION DIRECTORY: /usr/local/Cellar/ruby/2.0.0-p0/lib/ruby/gems/2.0.0 Here is the output of gem env: RubyGems Environment: I've had a lot of problems with my user paths in the past, so I'm wondering if this error could have something to do with that?

gem install jekyll permission denied

I can see that Jekyll is installed when I run gem list so I'm thoroughly confused: *** LOCAL GEMS *** Permission denied - /usr/local/lib/ruby/gems/2.0.0/gems/jekyll-1.0.3/CONTRIBUTING.md After running gem install jekyll I get this error: ERROR: While executing gem.






Gem install jekyll permission denied