简体   繁体   English

RubyGems依赖错误

[英]RubyGems Dependency Error

My ruby version is => ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux] and I'm using Ubuntu 10.10. 我的ruby版本是=> ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux] ,我正在使用Ubuntu 10.10。 I installed every stuff following this blogpost. 我在博客文章之后安装了所有内容。 It was working fine on bash but when I installed zsh shell and oh-my-zsh then it started raising following dependency error: 它在bash上运行良好,但是当我安装zsh shell和oh-my-zsh时,它开始引发以下依赖项错误:

/home/manish/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8] (Gem::LoadError)
from /home/manish/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /home/manish/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1210:in `gem'
from /home/manish/.rvm/gems/ruby-1.9.2-p290/bin/rails:18:in `<main>'

Please tell me if there is any way to fix this. 请告诉我是否有任何方法可以解决此问题。

PS => I have installed bundler gem. PS =>我已经安装了捆绑器gem。 I also tried to uninstall rvm and reinstall but didn't worked. 我也尝试卸载rvm并重新安装,但没有成功。

Oh crap this sucks. 噢,这太烂了。 I already had rvm script 我已经有rvm脚本

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

in my ~/.zshrc 在我的〜/ .zshrc中

but it use to say following error in my zsh shell every time: 但是它每次都在zsh shell中说以下错误:

cd:cd:10: string not in pwd: ..

then i rewrote the same script again following the previous one ie running same script twice in ~/.zshrc, it WORKED . 然后我在上一个脚本之后再次重写了相同的脚本,即在〜/ .zshrc中运行相同的脚本两次,它起作用了 I still could not figure it out why it raises string not in pwd.... error on first script and runs the second one. 我仍然不知道为什么它会string not in pwd....引发string not in pwd....第一个脚本错误并运行第二个脚本的错误。

But yay! 但是,是的! feels good to finally use zsh on my Ubuntu also :) 终于在我的Ubuntu上也使用zsh感觉很好:)

From looking at your rvm info it seems that this isn't quite right: 从查看您的rvm info来看,这似乎不太正确:

  homes:
    gem:          "not set"
    ruby:         "not set"

I would have another crack at reinstalling rvm, it shouldn't be that difficult. 我将在重新安装rvm时遇到另一个困难,这应该没有那么困难。 If you're having problems then you can ask on the channel #rvm on the freenode IRC network. 如果遇到问题,可以在freenode IRC网络上的#rvm频道上询问。

Other things to try would be rvm reload followed by rvm 1.9.2 . 其他尝试尝试的方法是rvm reload然后是rvm 1.9.2

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM