Here is a quick checklist that I went through to get everything working. The largest change was having to reinstall XCode and command line tools, and also download XQuarts in order to reinstall ImageMagick successfully. Without it, I was getting errors building RMagick of the following shape:
ld: file not found: /usr/lib/libltdl.7.dylib for architecture x86_64clang:
error: linker command failed with exit code 1
(use -v to see invocation)make: *** [RMagick2.bundle] Error 1
error: linker command failed with exit code 1
(use -v to see invocation)make: *** [RMagick2.bundle] Error 1
Quick checklist:
- Install Mountain Lion
- Install XCode 4.4
- Install command line tools from XCode 4.4 Preferences dialog
- Install XQuartz
- In terminal run
- brew update
- brew uninstall imagemagick
- brew install --fresh imagemagick
- wipe out your ~/.rvm folder
- reinstall RVM and install the latest ruby 1.9.3-p-194
- run "bundle" in the project folder
- run "rake" and rejoice
References:
https://github.com/mroth/lolcommits/issues/65
8 comments:
Thanks man! I was about to tack down the creator of rmagick and strangle him! This was much simpler.
You've forgot a "e" in the uninstall line, and you don't need to delete the ~/.rvm folder!!
Thanks alog :)
Thank you :)
brew uninstall imagmagick should be brew uninstall imagemagick
Thank you!!! = )
Thank you!!! = )
You could also try:
brew install libtool --universal
brew link libtool --force
As it might save you a few mins...
Post a Comment