码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-05-30 22:26:43      阅读:418      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!