我有:
当我尝试在require 'RMagick'
中irb
时,我遇到了错误:
LoadError: /usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/lib/RMagick2.so: undefined symbol: XStringListToTextProperty - /usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/lib/RMagick2.so
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/lib/RMagick.rb:11:in `<top (required)>'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from (irb):1
from /usr/local/bin/irb:12:in `<main>'
答案 0 :(得分:0)
解决方案很简单:只需完全删除imagemagick
!
相反apt-get remove imagemagick
使用后续步骤:
wget imagemagick.org/download/ImageMagick.tar.gz
tar zxvf ImageMagick.tar.gz
cd ImageMagick-6.8.2-10
./configure
make uninstall