0
votes

Apparently I can this error if I use 'sudo gem install jekyll' or 'gem install jekyll'

ERROR: While executing gem ... (Errno::EACCES) Permission denied - /Users/antonioortiz/.rvm/gems/ruby-1.9.3-p448/gems/ffi-1.9.3/ffi.gemspec

Appreciate the help!

1
Check permissions of the directory. Make sure root is allowed in and such. Make sure you don't have 'gem' running anywhere else so as to lock the directory. - DeadChex
Checked the permissions and they're set to 'read & write'...I have 'rvm' is that how you'd manage conflicting 'gems?' - Antonio Pavicevac-Ortiz
What does echo "${GEM_HOME}" output, additionally are you able to find the path specified by the GEM_HOME variable within your PATH?... eg grep -q -- "${GEM_HOME} <<<"${PATH}"; echo "${?}" should output 0 when everything's set-up correctly... generally with gem install someThing one does not need to resort to sudo, and really it can mess things up if one hasn't accounted for various edge-cases; personally I've found it to be easier to have a different user account for Git/Jekyll stuff that's somewhat locked down to only providing related services. - S0AndS0

1 Answers

0
votes

Check folder permission, chmod to 755.