Rmagick and OS X Lion

Just an updated (and not a new installation) for Lion from Leopard, and my previously working rmagick now no longer works and gives me this error:




An exception occurred in the Rack app when Pow tried to run it.

LoadError: dlopen(/Users/rassom/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib Referenced from: /Users/rassom/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/RMagick2.bundle Reason: image not found - /Users/rassom/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/RMagick2.bundle ~/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/RMagick2.bundle ~/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/rmagick.rb:11 ~/.rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require' ~/.rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require' ~/.rvm/gems/ruby-1.8.7-p334/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each' 



I tried to remove rmagick and reinstall, but that did not help.

Does anyone have a solution?

Thank: -)

+42
ruby-on-rails rmagick
Jul 05 2018-11-21T00:
source share
6 answers

I had the same problem and decided to uninstall it by uninstalling ImageMagick, uninstalling the rmagick gem and the running package again.

Make sure the rmagick stone has completely disappeared from your ~ / .rvm / gems / ruby-1.8.7-p334 / gems / folder before reinstalling and starting the installation of the package, and it should at least get you beyond this error.

+70
Jul 06 '11 at 18:12
source share

I found this: https://stackoverflow.com/questions/6674666/installing-imagemagick-leads-to-weird-error-involving-opencl

 Copied /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib from 10.6 computer into the same folder on 10.7. 

File downloaded here: http://www.workdreamer.com/uploads/libclparser.dylib

+14
Aug 04 2018-11-11T00:
source share

In my case, the error occurred after ImageMagick was updated via homebrew. Unlike @Marcus's answer, I didn't have to delete ImageMagick. All you need is:

 $ gem uninstall rmagick $ bundle 

Greetings

+9
Jul 08 '13 at 10:15
source share

On Mac OSX Lion (10.7) using imagemagick installed via homebrew, this fixed my problem:

First of all, remove the broken rmagick from your rvm installation path: ~ / .rvm / gems / ruby-1.9.3-p194 / gems /

Then reinstall imagemagick via brew, and then run the package again:

 brew uninstall imagemagick brew install imagemagick bundle 
+4
Apr 7 2018-12-12T00:
source share

Since I previously used the package package in my rails application, just uninstalling and reinstalling the gem did not solve the problem, because the copy was left with the / provider. Removing the copy in the provider / and starting the installation of the package again fixed the problem.

+2
Aug 03 '11 at 18:45
source share

Here is my complete checklist for upgrading a ruby ​​environment to Mountain Lion: http://tektastic.kig.re/2012/07/getting-rmagic-and-friends-to-work-on.html

[- fixed on June 19, 2007]

+1
Jul 27 '12 at 3:10
source share



All Articles