gpt4 book ai didi

ruby-on-rails - RMagick提示OSX中找不到libMagickCore.5.dylib

转载 作者:行者123 更新时间:2023-12-03 13:38:43 24 4
gpt4 key购买 nike

运行brew upgrade imagemagick之后,当我运行rails s时,我会得到

/Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': dlopen(/Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/rmagick-2.13.2/lib/RMagick2.bundle, 9): Library not loaded: /usr/local/lib/libMagickCore.5.dylib (LoadError)
Referenced from: /Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/rmagick-2.13.2/lib/RMagick2.bundle
Reason: image not found - /Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/rmagick-2.13.2/lib/RMagick2.bundle


我将Carrierwave gem与RMagick一起使用,操作系统是OSX Moutain Lion

最佳答案

目前正在为此奋斗的其他人(2017年1月)-无法使用ImageMagick 7.0.x构建RMagick 2.15.4

首先,请执行以下操作:

brew uninstall ImageMagick
gem uninstall rmagick


其次,请参阅 https://github.com/rmagick/rmagick/issues/256并阅读hristozov的答案,即:

brew rm imagemagick
cd "$(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/"
git checkout 6f014f2b7f1f9e618fd5c0ae9c93befea671f8be imagemagick.rb
brew install imagemagick
brew pin imagemagick
git reset --hard


这将迫使自制软件使用/usr/local/Cellar/imagemagick/6.9.7-3

第三,

gem install rmagick

关于ruby-on-rails - RMagick提示OSX中找不到libMagickCore.5.dylib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19040932/

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