I somehow messed up my $ PATH. (changed it) and my ruby and rail stones didn't work. What I did to fix this was reinstalling the RVM. Now my ruby works fine in the Terminal. When running gem install rails this welcomes me:
Permission denied - /Users/emKaro/.rvm/gems/ruby-2.0.0-p247/gems/atomic-1.1.13/test/test_atomic.rb
When I try to install rails via sudo gem install rails , I get this error:
ERROR: while executing gem ... (Errno :: EACCES)
I have Xcode installed with command line tools installed. I even went ahead to install GCC, but get the same error when I try to install rails.
This is a complete 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. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. /Users/emKaro/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options:
I am the administrator of my computer and am running Mac OS 10.8.3. I would appreciate help installing the rails.
EDIT: Thanks @Christoph The only code that helped was to delete the RVM folder using sudo rm -rf ~/.rvm/ I tried only uninstal and it didn't work. Therefore, deleting the folder and then reinstalling the RVM does the job.
ruby-on-rails gem
siaw23
source share