程序“包”目前尚未安装 [英] The program 'bundle' is currently not installed

查看:76
本文介绍了程序“包”目前尚未安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图运行这个代码时,bundle install --without production
我得到一个错误,比如
程序'bundle'目前没有安装,你可以通过键入:
sudo apt-get install ruby​​-bundler

我已经安装了软件包,但仍然出现此错误。



这个问题发生在我从Harlt学习的时候。在Heroku设置部分更新Gemfile

解决方案

首先设置PATH变量安装的ruby可执行文件(假设安装的ruby是ruby-2.0.0-p451):

  PATH = $ PATH:$ HOME / .rvm / gems / ruby​​-2.0.0-p451 / bin 

然后运行,



gem install bundler (如果未安装bundler)

并且最后运行,

rvm use ruby​​-2.0.0-p451 --default (--default是可选的)。



你走了。现在,您可以运行 bundle 命令,但不会出现任何问题。



希望这有助于:)


while i was trying to run this code "bundle install --without production" I am getting an error like "The program 'bundle' is currently not installed. You can install it by typing: sudo apt-get install ruby-bundler " I have installed bundle already but still getting this error.

This problem occurred while i was learning from Harlt's.."Updating Gemfile" at Heroku setup section

解决方案

First Set up the PATH variable for the installed ruby executable(Suppose the installed ruby is ruby-2.0.0-p451):

PATH=$PATH:$HOME/.rvm/gems/ruby-2.0.0-p451/bin

and then run,

gem install bundler (if bundler is not installed)

and lastly run,

rvm use ruby-2.0.0-p451 --default (--default is optional).

There you go. Now you would be able to run bundle command with out any issues.

Hope it helps :)

这篇关于程序“包”目前尚未安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆