本文介绍了通过 rvm 为 Ruby 1.9.2 安装 linecache19的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在为 ruby 1.9.2 安装 linecache19(ruby-debug19 的依赖项)时遇到问题
I am having a problem with installing linecache19(dependency of ruby-debug19) for ruby 1.9.2
这是我的术语输出
$ rvm use 1.9.2
Using /home/bogdan/.rvm/gems/ruby-1.9.2-p180
$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
$ rvm exec gem install linecache19 --backtrace
gem install linecache19 --backtrace
rvm 1.6.20 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
ERROR: Error installing linecache19:
linecache19 requires Ruby version >= 1.9.2.
ERROR: Error installing linecache19:
linecache19 requires Ruby version >= 1.9.2.
Building native extensions. This could take a while...
最后一条命令永远挂起,直到被 ^C 打断.
The last command hangs forever until interrupted with ^C.
有什么办法解决这个问题吗?
Any ideas how to fix that?
推荐答案
你可能遇到和我一样的问题.当我运行 bundle install
时出现错误:
You may be having the same problem as I was. When I ran bundle install
I got the error:
Installing linecache19 (0.5.12) with native extensions
/Users/joseph/.rvm/rubies/ruby-1.9.2p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions':
ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/Users/joseph/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
从 http://isitruby19.com/linecache19 我发现这行得通:
From http://isitruby19.com/linecache19 I found that this worked:
gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-p290
这篇关于通过 rvm 为 Ruby 1.9.2 安装 linecache19的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!