gpt4 book ai didi

gem - 通过rvm为Ruby 1.9.2安装linecache19

转载 作者:行者123 更新时间:2023-12-03 12:02:57 24 4
gpt4 key购买 nike

我在为ruby 1.9.2安装linecache19(依赖ruby-debug19)时遇到问题

这是我的任期输出

$ 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中断。

任何想法如何解决?

最佳答案

您可能遇到的问题与我相同。当我运行bundle install时出现错误:

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中,我发现这可行:
gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-p290

关于gem - 通过rvm为Ruby 1.9.2安装linecache19,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6650567/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com