我不知何故破坏了我的ruby配置,我不确定如何修复它。下面是一个irb会话:
>> require 'ruby-debug'
LoadError: dlsym(0x101a272d0, Init_ruby_debug): symbol not found - /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle
from /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby-debug-base.rb:1
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-0.10.3/cli/ruby-debug.rb:5
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from (irb):1这是我的ruby版本:
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-darwin10]我不知道如何诊断和修复这个问题。有什么建议吗?我还应该提供哪些其他信息?
重新安装gem并没有修复它:
$ sudo gem install ruby-debug
Password:
Successfully installed ruby-debug-0.10.3
1 gem installed
Installing ri documentation for ruby-debug-0.10.3...
Installing RDoc documentation for ruby-debug-0.10.3...发布于 2010-08-18 13:13:38
通过rvm重新安装1.8.7解决了这个问题。
发布于 2010-08-07 20:05:06
也许它丢失了一些依赖.so文件?我会在linux中使用ldd -l来确定这一点,不知道mac。
https://stackoverflow.com/questions/3423800
复制相似问题