gem install rails ERROR: While executing gem ... (Errno::EACCES) -


i somehow messed $path up. (changed it) , ruby , rails gems weren't working. did in efforts fix reinstall rvm. ruby works fine in terminal. on running gem install railsi greeted this:

permission denied - /users/emkaro/.rvm/gems/ruby-2.0.0-p247/gems/atomic-1.1.13/test/test_atomic.rb

when try install rails through sudo gem install rails, error:

error: while executing gem ... (errno::eacces)

i have xcode installed command-line tools installed well. went ahead install gcc same error when try install rails.

this full error message

error:  while executing gem ... (errno::eacces)     permission denied - /users/emkaro/.rvm/gems/ruby-2.0.0-p247/gems/atomic-1.1.13/test/test_atomic.rb emmanuels-imac:~ siaw$ sudo gem install rails password: building native extensions.  take while... error:  error installing rails:     error: failed build gem native extension.      /users/emkaro/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  may need configuration options.  provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/users/emkaro/.rvm/rubies/ruby-2.0.0-p247/bin/ruby     --with-atomic_reference-dir     --without-atomic_reference-dir     --with-atomic_reference-include     --without-atomic_reference-include=${atomic_reference-dir}/include     --with-atomic_reference-lib     --without-atomic_reference-lib=${atomic_reference-dir}/ /users/emkaro/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': compiler failed generate executable file. (runtimeerror) have install development tools first.     /users/emkaro/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:519:in `try_link0'     /users/emkaro/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:817:in `try_run'     extconf.rb:24:in `<main>'   gem files remain installed in /users/emkaro/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/atomic-1.1.13 inspection. results logged /users/emkaro/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/gems/2.0.0/gems/atomic-1.1.13/ext/gem_make.out 

i admin of computer , running mac os 10.8.3. i'd appreciate rails install.

edit: @christoph code helped remove rvm folder sudo rm -rf ~/.rvm/ tried uninstal , didn't work. removing folder , reinstalling rvm job.

like dave pointed out there, there should no need sudo gem installation. try reset permissions on rvm directory:

sudo chown -r emkaro: ~/.rvm/ 

and try gem instllation again. if doesn't work out, should consider removing rvm installation , start over:

sudo rm -rf ~/.rvm/   # remove rvm directory 

there should no need using sudo in of this.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -