尝试“gem install sqlite3 -v'1.3.7'时出错”

时间:2013-05-28 01:50:31

标签: ruby-on-rails ruby rvm

这是我的错误:

ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - /Users/andrewpage/.rvm/gems/ruby-1.9.3-p362/gems/sqlite3-1.3.7

3 个答案:

答案 0 :(得分:0)

尝试rvmsudo gem install sqlite3 -v '1.3.7'

答案 1 :(得分:0)

您需要先清除权限:

rvmsudo rvm fix-permissions user

然后:

gem install sqlite3 -v '1.3.7'

答案 2 :(得分:-1)

尝试使用sudo gem install sqlite -v '1.3.7'