gpt4 book ai didi

ruby-on-rails - Rails - 由于 "libMagickCore.5.dylib"而无法运行 rake 命令

转载 作者:数据小太阳 更新时间:2023-10-29 07:42:05 24 4
gpt4 key购买 nike

当我运行 run rake db:create 时,我得到了这个错误声明:

rake aborted!
dlopen(/Users/adam/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded: /usr/local/lib/libjpeg.8.dylib
Referenced from: /usr/local/opt/imagemagick/lib/libMagickCore.5.dylib
Reason: Incompatible library version: libMagickCore.5.dylib requires version 13.0.0 or later, but libjpeg.8.dylib provides version 12.0.0 - /Users/adam/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.1/lib/RMagick2.bundle
/Users/adam/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.1/lib/rmagick.rb:11:in `require'
/Users/adam/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.1/lib/rmagick.rb:11:in `<top (required)>'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `require'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `each'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `block in require'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `each'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `require'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler.rb:128:in `require'
/Users/adam/rubydev/app-staging/config/application.rb:13:in `<top (required)>'
/Users/adam/rubydev/app-staging/Rakefile:5:in `require'
/Users/adam/rubydev/app-staging/Rakefile:5:in `<top (required)>'
/Users/adam/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
/Users/adam/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)

我花了整个下午寻找问题并解决问题,但没有成功。

有问题的部分在这里:

  Referenced from: /usr/local/opt/imagemagick/lib/libMagickCore.5.dylib
Reason: Incompatible library version: libMagickCore.5.dylib requires version 13.0.0 or later, but libjpeg.8.dylib provides version 12.0.0 - /Users/adam/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.1/lib/RMagick2.bundle

如何在 OS X Lion 上升级 libMagickCore.5.dylib

提前致谢

编辑: 重新安装 imagemagick 后,我运行了 rake db:create 并得到:

rake db:createrake aborted!
dlopen(/Users/adam/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded: /usr/local/opt/imagemagick/lib/libMagickCore.5.dylib
Referenced from: /Users/adam/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.1/lib/RMagick2.bundle
Reason: image not found - /Users/adam/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.1/lib/RMagick2.bundle
/Users/adam/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.1/lib/rmagick.rb:11:in `require'
/Users/adam/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.1/lib/rmagick.rb:11:in `<top (required)>'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `require'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `each'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `block in require'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `each'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `require'
/Users/adam/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.2/lib/bundler.rb:128:in `require'
/Users/adam/rubydev/app-staging/config/application.rb:13:in `<top (required)>'
/Users/adam/rubydev/app-staging/Rakefile:5:in `require'
/Users/adam/rubydev/app-staging/Rakefile:5:in `<top (required)>'
/Users/adam/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
/Users/adam/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)

最佳答案

从命令行尝试 gem pristine rmagick

引用:https://github.com/mroth/lolcommits/issues/65

关于ruby-on-rails - Rails - 由于 "libMagickCore.5.dylib"而无法运行 rake 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13959652/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com