I am using Arch Linux and installed Ruby (this is version 2.0.0).
When I installed Ruby, I said that I should add:
$(ruby -rubygems -e "puts Gem.user_dir")/bin
to my path, I added it to .bashrc
When I try to install gem rails or any other stone, it gives an error: it was not possible to create my own gem extension. this is a complete error:
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/lib/ruby/gems/2.0.0 directory. [ alexander@localhost ~]$ sudo gem install rails --no-user-install Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb creating Makefile make "DESTDIR=" sh: make: command not found Gem files will remain installed in /usr/lib/ruby/gems/2.0.0/gems/atomic-1.1.10 for inspection.
When I look at this error, I see that people solve this problem by installing ruby-dev packages, however this does not exist for Arch Linux. Any other option I can try?
Thanks in advance!
source share