Ubuntu下bundle install报错 _Ruby_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > Ruby > Ubuntu下bundle install报错

Ubuntu下bundle install报错

 2011/9/29 8:03:58  zhangym124  http://xuantan.iteye.com  我要评论(0)
  • 摘要:Ubuntu下bundleinstall命令报错/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/definition.rb:194:in`initialize':Permissiondenied-/home/xuantan/project/kelude/trunk/report_service/Gemfile.lock(Errno::EACCES)分析错误原因
  • 标签:

Ubuntu下bundle install命令报错

?

/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/definition.rb:194:in `initialize': Permission denied - /home/xuantan/project/kelude/trunk/report_service/Gemfile.lock (Errno::EACCES)

?

分析错误原因:

没有管理员权限,无法安装某些gem包

?

于是输入: sudo bundle install

仍然报错,信息如下:?

sudo: bundle: command not found

?

?

分析原因:

在sudo env下没有bundle命令的环境变量

?

输入 env 命令,查看当前用户下的环境变量

?

然后在命令行下输入:

sudo /usr/local/rvm/gems/ree-1.8.7-2011.03@global/bin /bundle install

?

问题解决。

(其中加黄部分为环境变量中的路径)

  • 相关文章
发表评论
用户名: 匿名