我正在使用Arch Linux并安装了Ruby(这是版本2.0.0)。gem install:错误:无法构建gem原生扩展
当我安装了Ruby,它说我要补充:
$(ruby -rubygems -e "puts Gem.user_dir")/bin
我的路,我添加它的.bashrc
当我尝试创业板安装导轨或任何其他宝石它给人的错误:无法构建gem本机扩展。这是完全错误:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/lib/ruby/gems/2.0.0 directory.
[[email protected] ~]$ 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.
当我看到这个错误了,我看到人们通过安装红宝石开发包解决了这个错误,但是这并没有对Arch Linux的存在。我可以尝试的其他选项?
在此先感谢!
使用RVM或rbenv日常红宝石用法。系统版本应留给系统应用程序。 – Hauleth