简体   繁体   English

尚未安装Rails Gem捆绑软件-即使安装了它

[英]Rails Gem bundler not installed - even after I install it

For a Rails app, I tried running $ bundle install . 对于Rails应用程序,我尝试运行$ bundle install But, even after I ran $ gem install bundler , I got the same message. 但是,即使在我运行$ gem install bundler ,我仍然收到相同的消息。

this is what happened: 这是发生了什么:

Run `bundle install` to install missing gems.
Davids-iMac-2:213calendar davidburton$ bundle install
ERROR: Gem bundler is not installed, run `gem install bundler` first.
Davids-iMac-2:213calendar davidburton$ gem install bundler
Successfully installed bundler-1.3.5
1 gem installed
Installing ri documentation for bundler-1.3.5...
Installing RDoc documentation for bundler-1.3.5...
Davids-iMac-2:213calendar davidburton$ bundle install
ERROR: Gem bundler is not installed, run `gem install bundler` first.

UPDATE1 更新1

rvm list

rvm rubies

   ruby-1.9.2-p290 [ x86_64 ]
=* ruby-1.9.3-p374 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

Check your home directory for a ~/.bash_profile file. 检查主目录中的~/.bash_profile文件。

If it exists, and you don't remember creating it, copy its contents to ~/.bashrc and remove the .bash_profile file completely. 如果存在,并且您不记得创建它,请将其内容复制到~/.bashrc并完全删除.bash_profile文件。

By default, rvm appends the commands for updating path with rvm function in .bash_profile after rvm installation. 缺省情况下,安装rvm后, rvm.bash_profile rvm使用rvm功能更新路径的命令附加在.bash_profile Ubuntu, at a time only uses .bash_profile if it is present, or .bashrc when .bash_profile is absent. Ubuntu一次仅使用.bash_profile如果存在),而仅使用.bashrc如果不存在.bash_profile )。 This results in PATH not being correctly set, and the gem, even though installed, is not detected since it is not on your path. 这会导致PATH设置不正确,并且即使安装了gem也不会检测到它,因为它不在您的路径中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我安装了“ sudo gem install rails”后,自制软件无法正常工作 - Homebrew not working after I installed 'sudo gem install rails' EC2-未安装宝石捆绑器,请首先运行`gem install bundler` - EC2 - Gem bundler is not installed, run `gem install bundler` first 捆绑安装失败,并显示“错误:未安装宝石捆绑器” - bundle install fails with 'ERROR: Gem bundler not installed' 已安装RVM捆绑器错误:未安装宝石捆绑器,请先运行`gem install bundler` - RVM bundler installed ERROR: Gem bundler is not installed, run `gem install bundler` first Rails 3 gem与捆绑程序一起安装,仍然出现NoMethodError - Rails 3 gem installed with bundler, still get NoMethodError 安装了Rails 3.1 gem的环境中的Bundler错误 - Bundler errors in environment with Rails 3.1 gem installed Windows上的Rails Bundler拒绝安装hpricot(即使在手动gem install上也得到错误:没有要加载的此类文件-hpricot) - Rails Bundler on windows refuses to install hpricot (even on manual gem install get Error: no such file to load — hpricot) Ruby on Rails Bundler activeadmin gem安装错误 - Ruby on Rails Bundler activeadmin gem install error Capistrano:未安装宝石捆绑器 - Capistrano: Gem bundler is not installed 即使我的应用程序使用捆绑包,我是否需要将乘客安装为常规宝石? - Do I need to install passenger as a regular gem even though my app uses bundler?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM