linecache19不会安装

我试着安装通过打捆宝石linecache19,它总是返回:linecache19不会安装

Installing linecache19 (0.5.12) /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:388:in `ensure_required_ruby_version_met': linecache19 requires Ruby version >= 1.9.2. (Gem::InstallError) 

from /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:156:in `install'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/source.rb:101:in `install'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/rubygems_integration.rb:279:in `preserve_paths'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/source.rb:91:in `install'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/installer.rb:58:in `run'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/rubygems_integration.rb:93:in `with_build_args'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/installer.rb:57:in `run'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/spec_set.rb:12:in `each'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/spec_set.rb:12:in `each'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/installer.rb:49:in `run'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/installer.rb:8:in `install'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/cli.rb:222:in `install'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/vendor/thor/task.rb:22:in `send'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/vendor/thor/task.rb:22:in `run'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/vendor/thor.rb:246:in `dispatch'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/vendor/thor/base.rb:389:in `start'

from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.14/bin/bundle:13

from /usr/bin/bundle:19:in `load'

from /usr/bin/bundle:19

显然,这看起来像我已经安装了红宝石的错误版本,但我知道一个事实,我有红宝石1.9.2安装:

[email protected]:/rails/gitlabhq$ ruby -v 

ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

我试着手动安装gem工作没问题,但bundler仍然返回该输出并拒绝继续前进。

[email protected]:/rails/gitlabhq$ sudo gem install linecache19 

Building native extensions. This could take a while...

Successfully installed linecache19-0.5.12

1 gem installed

我不确定为什么bundler没有安装gem /没有在系统gem库中看到它。

我没有安装在此服务器上的RVM或类似的东西,它只是使用系统红宝石和系统宝石库。

回答:

尝试通过rm -rf vendor/bundle

回答:

删除你的包这pull request让我觉得,如果你使用这个选项捆绑,将工作

bundle install --without development test 

因人而异

以上是 linecache19不会安装 的全部内容, 来源链接: utcz.com/qa/263703.html

回到顶部