首页 > 其他 > 详细

rbenv Your user account isn't allowed to install to the system Rubygems

时间:2015-05-30 22:23:51      阅读:1361      评论:0      收藏:0      [点我收藏+]

 

Clone一个新Rails项目到Mac, bundle install 的时候遇到下面的提示

 

Fetching source index from http://rubygems.org/ Your user account isn‘t allowed to install to the system Rubygems. You can cancel this installation and run: bundle install --path vendor/bundle to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to Rubygems using sudo. Password:

 

也就是说,rbenv 要往你系统的自带Ruby里面安装gem.

gem list | grep bundler

用上面的命令看看你是否通过rbenv安装了bundler. 如果没有那就对了,所以只能去找系统的ruby了,那么你可能不希望这样。

所以解决办法已经明了:

gem install bundler
rbenv rehash

  

 

rbenv Your user account isn't allowed to install to the system Rubygems

原文:http://www.cnblogs.com/iosdev/p/4541037.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!