1

当我尝试启动“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 并且仍然得到相同的错误。

4

1 回答 1

0

我猜你没有安装依赖项。尝试安装依赖项。

sudo apt-get install libmagick9-dev
sudo apt-get install libmagickwand-dev

我不认为这个软件包可以在 mac 上运行,但它可以在 linux 机器上运行。

于 2013-09-22T07:50:26.797 回答