I tried to install Jekyll on my Mac (OS X 10.11.6 El Capitan with Xcode cli tools installed) using gem install jekyll
, but I received this error:
$ gem install jekyll
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
I furrowed my eyebrows and then read the install troubleshooting docs on the Jekyll site, which discuss SIP in El Capitan. I'm still feeling dissatisfied at this point.
I don't know anything about Ruby other than what I've read today, but I know a fair bit about bash. The developers suggest using sudo gem install -n /usr/local/bin jekyll
. Is the sudo
in this case only for if the folder permissions for /usr/local/bin
require escalated privileges or is it for something else also?
Is there a way that I can install Jekyll
- without using
sudo
and - without installing Homebrew (or any other package installation tools / third-party software) and
- without modifying the permissions (
755
root:wheel
) on my/usr/local/
folder?
If so, what are the implications on the operation of Jekyll?