当我尝试启动“rails s”时,我收到以下错误:
/Users/asciiman/.rvm/gems/ruby-1.9.3-p448/gems/rmagick-2.13.2/lib/rmagick.rb:11:in `require': dlopen(/Users/asciiman/.rvm/gems/ruby-1.9.3-p448/gems/rmagick-2.13.2/lib/RMagick2.bundle, 9): Symbol not found: _AdaptiveBlurImage (LoadError)
Referenced from: /Users/asciiman/.rvm/gems/ruby-1.9.3-p448/gems/rmagick-2.13.2/lib/RMagick2.bundle
Expected in: flat namespace
in /Users/asciiman/.rvm/gems/ruby-1.9.3-p448/gems/rmagick-2.13.2/lib/RMagick2.bundle - /Users/asciiman/.rvm/gems/ruby-1.9.3-p448/gems/rmagick-2.13.2/lib/RMagick2.bundle
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448/gems/rmagick-2.13.2/lib/rmagick.rb:11:in `<top (required)>'
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from /Users/asciiman/Documents/Consulting/OneTaste/omhub/config/application.rb:7:in `<top (required)>'
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/commands.rb:53:in `require'
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/commands.rb:53:in `block in <top (required)>'
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from /Users/asciiman/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
我正在运行OS X Mountain Lion 10.8.5。
我尝试卸载并重新安装imagemagick和rmagick,但仍然会遇到同样的错误。
答案 0 :(得分:0)
我猜你没有安装依赖项。尝试安装依赖项。
sudo apt-get install libmagick9-dev
sudo apt-get install libmagickwand-dev
我不认为这个软件包可以在mac中运行,但它可以在linux机器上运行。