Ruby on Rails - 在 Arch Linux "Error: Permission denied rb_sysopen"安装 gems 时



我正在尝试安装rails,我已经有了ruby

$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

当我运行gem install rails时,我得到

Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen - /usr/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.8/gem_make.out

如果我尝试安装nokogiri

我是新手。提前感谢

您在尝试打开时遇到权限问题

/usr/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.8/gem_make.out

运行此程序很可能会正确安装,但您可能需要修复任何权限问题:

sudo gem install rails

最新更新