osx - Ruby on mac not installing gem showing permission denied -


i trying install ruby gem in machine using xcode call shell script.

cd "/users/desktop/gemfolder"

gem install somegem.gem

i getting error this:

while executing gem ... (errno::eacces)     permission denied - /library/ruby/gems/1.8 

any workaround newbie ruby don't know anyhelp highly appreciated.

being sudo might fix problem, when installing gems , not idea install them sudo, preferred way of installing ruby on machine install rvm (ruby version manager) first , install ruby version.

main advantages of having ruby version manager are,

1 - allows install multiple ruby versions side side

2 - allows install gems each ruby version (via gemsets)

so install rvm in mac, check here

list of ruby version managers


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -