我将我的 ubuntu 版本从 12.04 更新到 13.04,因此不得不重新安装所有东西......现在大多数东西都在工作......但是,'bundler' 不是。
即当运行以下创建一个新的gem骨架时:
bundle gem np_search
它给了我以下错误:
在 rvm ruby v. 2.0.0 下时(与 1.9.3 相同的错误)
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/home/ismail/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/cli.rb:689:in ``': No such file or directory - git (Errno::ENOENT)
from /home/ismail/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/cli.rb:689:in `gem'
from /home/ismail/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:in `run'
from /home/ismail/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /home/ismail/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:in `dispatch'
from /home/ismail/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in `start'
from /home/ismail/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/bin/bundle:20:in `block in <top (required)>'
from /home/ismail/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in `with_friendly_errors'
from /home/ismail/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/bin/bundle:20:in `<top (required)>'
from /home/ismail/.rvm/gems/ruby-2.0.0-p247@global/bin/bundle:23:in `load'
from /home/ismail/.rvm/gems/ruby-2.0.0-p247@global/bin/bundle:23:in `<main>'
在系统 ruby(即没有 rvm)下运行时 ruby 版本 2.0.0
-bash: /usr/local/bin/bundle: /usr/bin/ruby1.8: bad interpreter: No such file or directory
我已经执行了第一条错误消息中链接中的所有步骤,但问题仍然存在。另外,查看了谷歌和stackoverflow,但找不到任何解决问题的方法......
这是我在输入“bundle env”时得到的
在 rvm 中时:
Bundler 1.3.5
Ruby 2.0.0 (2013-06-27 patchlevel 247) [x86_64-linux]
Rubygems 2.0.7
rvm 1.22.5 (stable)
GEM_HOME /home/ismail/.rvm/gems/ruby-2.0.0-p247
GEM_PATH /home/ismail/.rvm/gems/ruby-2.0.0-p247:/home/ismail/.rvm/gems/ruby-2.0.0-p247@global
Gemfile
<No Gemfile found>
Gemfile.lock
<No Gemfile.lock found>
使用系统 ruby 2.0.0 时,'bundle env' 只是给了我
-bash: /usr/local/bin/bundle: /usr/bin/ruby1.8: bad interpreter: No such file or directory
我确实尝试通过键入以下内容将 ruby 路径导出到 .bashrc(我在网上阅读的内容)...
sudo ln -s /usr/bin/ruby /usr/local/bin/ruby
但这并没有什么不同。
非常感谢您的所有帮助...