Ruby complete newbie here. I wanted to try out Jekyll from recommendation here
I am running macOS 10.12.4, system version of Ruby is ;
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
Based on above guide i followed steps:
- installed homebrew (1.2.2)
- installed RBENV via homebrew (v 1.1.0)
- rbenv install 1.9.3-p551
- cd into your project directory and run rbenv local 1.9.3-p551
* 1.9.3-p551 (set by /Users/me/jekyltest/.ruby-version)
However when I do gem install bundler, I get:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
I've googled but finding various solutions and don't know which is the right one.
I've previously installed fastlane via sudo as per their recommendation, but now reading that using sudo isn't good. I'm not sure if i can clean out installed gems without breaking something in macOS, but I like the idea of it all being self contained within rbenv.
Any recommendations to get around the permissions issue and properly install bundler for use with rbenv?