且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

程序“包”目前尚未安装

更新时间:2022-11-11 19:19:23

首先设置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 :)