我有一個Rails應用程序已運行好幾個月。有一天,我瀏覽了Ubuntu的升級清單,並安裝了它們。突然間,我無法啓動我的開發服務器,因爲linecache失敗。我已經在這個題目讀不同的線程:如何獲得linecache19 0.5.12在ruby-193-p125下安裝?
ruby_threadptr_data_type error
Rails with ruby-debugger throw 'Symbol not found: _ruby_current_thread (LoadError)'
http://isitruby19.com/linecache
http://antisnatchor.com/debugging_ruby_1.9.3p125
Installing linecache19 for Ruby 1.9.2 via rvm
不過,在等待安裝失敗,花了幾個小時後, ,我無法得到我的鐵軌dev服務器啓動。
我的版本是這樣的:
~/app> which ruby
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p125/bin/ruby
~/app> which rvm
/usr/share/ruby-rvm/bin/rvm
~/app> rvm current
ruby-1.9.3-p125
~/app> ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
~/app>
而這裏發生了什麼,當我嘗試安裝Ruby調試的當前版本:
~/app> gem install 'ruby-debug-base19x'
Fetching: ruby-debug-base19x-0.11.29.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-base19x:
ERROR: Failed to build gem native extension.
/usr/share/ruby-rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
/usr/share/ruby-rvm/gems/ruby-1.9.3-p125/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39: Use RbConfig instead of obsolete and deprecated Config.
checking for rb_method_entry_t.body in method.h... no
checking for vm_core.h... no
*** extconf.rb failed ***
和我的Gemfile(相關位反正) :
group :development, :test do
...
gem 'linecache19', :git => 'git://github.com/mark-moseley/linecache'
gem 'ruby-debug-base19x'
gem 'ruby-debug19'
end
任何人都知道這裏發生了什麼?我很難過。如果需要,我願意從頭開始。我只需要知道回到裸露畫布和繪畫的最佳方式。
閒談票?好主,我不知道多少編程具體這可能是 – jcollum 2012-04-21 06:32:20
我絕對不明白爲什麼這個問題只得到反對票。這很奇怪。 – jcollum 2012-04-22 15:41:53