ruby-on-rails - 在安装RubyOnRails的时候出现问题
怪我咯
怪我咯 2017-04-24 09:13:44
0
1
674

我的Ruby是有的gem也是有的但是运行‘gem install ralis’就出现这个问题You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
大家讲道理

Because the current user of your system does not have write permissions to the /Library/Ruby/Gems/2.0.0 directory. You can use sudo gem install rails to gain root permissions to operate. However, this is not recommended. The Ruby you are using now is the Ruby that comes with the system. This is not conducive to upgrading and switching Ruby versions in the future, and it is not very convenient to manage gems. It is recommended that you use a Ruby version management tool such as rvm or rbenv to install and manage your Ruby.

The specific choice of rvm or rbenv depends on your personal preference. I use rvm.

Rvm Practical Guide

rbenv Practical Guide

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!