我是新来的rails并试图让一个演示应用程序启动并运行。我一直在我的linux系统(lubuntu,主要是干净安装)上运行“软件包安装”时遇到问题。即使这样做,如果我关闭终端并启动另一个终端,它将无法再次运行。周期看起来是这样的:Ruby:“gem install bundler”不安装打包程序
[email protected]:~/railsstuff/sample_app_2nd_ed$ bundle install
ERROR: Gem bundler is not installed, run `gem install bundler` first.
[email protected]:~/railsstuff/sample_app_2nd_ed$ gem install bundler
Successfully installed bundler-1.1.4
1 gem installed
[email protected]:~/railsstuff/sample_app_2nd_ed$ bundle install
ERROR: Gem bundler is not installed, run `gem install bundler` first.
至于我可以告诉大家,我使用的是最新版本的Ruby和RVM的似乎是工作的罚款。
任何人都可以解释这里发生了什么?
你是否用rvm创建了一个新的gemset?当你打开一个新的终端时,你是否通过'rvm use'切换到那个gemset? –
“rvm use 1.9.3 --default”在我在一个新的终端中运行时修复它。 – pdel
是的,但要使用特定的gemset,你应该做一些类似“rvm use [email protected]”的问题 –