

You can either create a repository or choose an existing repository for your site. For more information, see " Troubleshooting" in the Jekyll documentation. Then set the global version to the anycodings_macos desired ruby version: rbenv global 2.2.Tip: If you see a Ruby error when you try to install Jekyll using Bundler, you may need to use a package manager, such as RVM or Homebrew, to manage your Ruby installation. anycodings_macos First, find the desired version: rbenv install -l If rbenv is NOT installed at this point, anycodings_macos then brew install rbenvĮcho 'export RBENV_ROOT=/usr/local/var/rbenv' > ~/.bash_profileĮcho 'if which rbenv > /dev/null then eval "$(rbenv init -)" fi' > ~/.bash_profile

(If brew doctor comes up with any anycodings_macos issues, fix them first.) Then I anycodings_macos uninstalled ruby brew uninstall ruby
GEM INSTALL JEKYLL NO WRITE PERMISSIONS UPDATE
To fix this, first I updated homebrew: brew update & brew upgrade The issues I'd been having (which were anycodings_macos the same as OP's) may have to do with anycodings_macos using homebrew to install Ruby. I wanted to share the steps that I anycodings_macos followed that fixed this issue for me in anycodings_macos the hopes that it can help someone else anycodings_macos (and also as a reminder for me in case anycodings_macos something like this happens again) If you anycodings_macos have to use sudo with that configuration anycodings_macos you've done something wrong. See anycodings_macos the directions for installing into a anycodings_macos local RVM sandbox in "Single-User anycodings_macos installations".īecause you have RVM in your anycodings_macos ~/.bash_profile, but it doesn't show up anycodings_macos in your Gem environment listing, I anycodings_macos suspect you either haven't followed the anycodings_macos directions for installing RVM correctly, anycodings_macos or you haven't used the all-important anycodings_macos command: rvm use 2.0.0 -defaultįor most users, the "Single-User anycodings_macos installation" is the way to go. However, I'd recommend you give serious anycodings_macos thought into NOT doing that, and instead anycodings_macos use your RVM to install Ruby into your anycodings_macos own home directory, where you'll anycodings_macos automatically be able to install Rubies anycodings_macos and gems without permission issues. You can use sudo gem install anycodings_macos jekyll, which will temporarily elevate anycodings_macos your permissions, giving your command anycodings_macos the rights needed to write to that anycodings_macos directory. I won't recommend you run anycodings_macos things as root since you don't anycodings_macos understand how paths and permissions anycodings_macos work. That is a restricted path and can only anycodings_macos be written to when you use elevated anycodings_macos privileges, either by running as root or anycodings_macos by using sudo. Your Ruby is installed in anycodings_macos /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 anycodings_jekyll installed, or at least get past this anycodings_jekyll 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 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 anycodings_jekyll paths in the past, so I'm wondering if this anycodings_jekyll error could have something to do with that? I can see that Jekyll is installed when I anycodings_jekyll 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 anycodings_jekyll running gem install jekyll I get this error: ERROR: While executing gem.
