Reputation: 11
Tried the original method of gem install jekyll and I get this error:
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Installed Xcode and command line tools. Then followed up with installing homebrew using this command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
get this error after:
Error: Failed to link all completions, docs and manpages: Permission denied - (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew) Failed during: /usr/local/bin/brew update --force
These are my ruby and gem version:
Please help!
Upvotes: 1
Views: 334
Reputation: 613
Did you try running the command with sudo
? for example sudo gem install jekyll bundler
. This will ensure that you're running the command as an administrator.
Upvotes: 1