Ruby on rails Rails Gem bundler未安装-即使在我安装之后

Ruby on rails Rails Gem bundler未安装-即使在我安装之后,ruby-on-rails,bundler,Ruby On Rails,Bundler,对于Rails应用程序,我尝试运行$bundle install。但是,即使在我运行了$gem install bundler之后,我还是收到了相同的消息 事情是这样的: Run `bundle install` to install missing gems. Davids-iMac-2:213calendar davidburton$ bundle install ERROR: Gem bundler is not installed, run `gem install bundler` f

对于Rails应用程序,我尝试运行
$bundle install
。但是,即使在我运行了
$gem install bundler
之后,我还是收到了相同的消息

事情是这样的:

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.
更新1

rvm list

rvm rubies

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

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

检查主目录中的
~/.bash\u配置文件
文件

如果它存在,并且您不记得创建了它,请将其内容复制到
~/.bashrc
并完全删除
.bash\u配置文件

默认情况下,rvm会在
rvm
安装后在
.bash_profile
中附加命令,以使用rvm函数更新路径。
Ubuntu,一次只能使用
.bash\u profile
如果它存在,或者
.bashrc
.bash\u profile
不存在时。这会导致
PATH
设置不正确,而且即使安装了gem,也无法检测到它,因为它不在您的路径上。

您设置了什么样的ruby环境?您使用的是rbenv、rvm还是类似的东西?“gem list”和“which ruby”在控制台中打印出什么?which ruby=
/Users/davidburton/.rvm/bin/ruby
gem list-列出了很多gem。绑定器gem是否包括在列表中?:)是-捆扎机(1.3.5、1.2.3)