839

Can't install imagemagick and rmagick on OSX Mavericks

Question:

I'm having problems to install imagemacgick and rmagick

➜ scripts brew install imagemagick Error: You must `brew link freetype' before imagemagick can be installed ➜ scripts brew install freetype Warning: freetype-2.5.3_1 already installed ➜ scripts brew unlink freetype && brew link freetype Unlinking /usr/local/Cellar/freetype/2.5.3_1... 1 symlinks removed Linking /usr/local/Cellar/freetype/2.5.3_1... Error: No such file or directory - /usr/local/Cellar/freetype/2.5.3/include/freetype2 brew remove freetype && brew install freetype

Uninstalling /usr/local/Cellar/freetype/2.5.3_1... ==> Downloading <a href="https://downloads.sf.net/project/machomebrew/Bottles/freetype-2.5.3" rel="nofollow">https://downloads.sf.net/project/machomebrew/Bottles/freetype-2.5.3</a> Already downloaded: /Library/Caches/Homebrew/freetype-2.5.3_1.mavericks.bottle.1.tar.gz ==> Pouring freetype-2.5.3_1.mavericks.bottle.1.tar.gz Error: An unexpected error occurred during the brew link step The formula built, but is not symlinked into /usr/local No such file or directory - /usr/local/Cellar/freetype/2.5.3/include/freetype2 Error: No such file or directory - /usr/local/Cellar/freetype/2.5.3/include/freetype2

Answer1:

There is some problem with freetype

I've found a solution <a href="https://github.com/Homebrew/homebrew-php/issues/885" rel="nofollow">here</a>:

<ul><li>brew uninstall freetype</li> <li>brew install <a href="https://raw.github.com/mxcl/homebrew/04406ae9a0aa093aaaf61ab06dc1d81672c41fee/Library/Formula/freetype.rb" rel="nofollow">https://raw.github.com/mxcl/homebrew/04406ae9a0aa093aaaf61ab06dc1d81672c41fee/Library/Formula/freetype.rb</a></li> <li>brew install freetype</li> <li>brew install imagemagick</li> </ul>

It worked for me

<strong>Update:</strong> It seems it's not recommended to checkout the repository directly and you can install by using a link with the revision hash I've updated my answer accordingly

Also, please note that i've used a more recent hash than the one in the link, otherwise imagemagick will complain about the version of libfreetype.6.dylib

Recommend

  • How to use output buffering inside PHPUnit test?
  • how to create a downloadable csv file in appengine
  • WCF hosting issues
  • Which reference source does include Microsoft.VisualBasic?
  • Memory usage and time for execution for another process using C#?
  • SIP Makefile fail (gnuwin and mingw)
  • What is Closure Compiler?
  • dismiss Progress Dialog in another Activity … Android
  • Are there any issues with placing image as background on an extended JFrame?
  • Deploying a CodeRush plugin from the Community Site
  • Portable JRE on Linux - possible?
  • How to pass solution folder as parameter in command line arguments (for debug)?
  • Error processing multiple files
  • Yii2: Finding file and getting path in a directory tree
  • Web.config system.webserver errors
  • With Hadoop, can I create a tasktracker on a machine that isn't running a datanode?
  • Checking free space on FTP server
  • Change Inet root folder for iis 7
  • Regex thinks I'm nesting, but I'm not
  • What is the “return” in scheme?
  • RectangularRangeIndicator format like triangular using dojo
  • Cross-Platform Protobuf Serialization
  • Updated Ionic CLI but shows previous version (Windows)
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Is there a mandatory requirement to switch app.yaml?
  • How to disable jQuery.jplayer autoplay?
  • Revoking OAuth Access Token Results in 404 Not Found
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • Hits per day in Google Big Query
  • coudnt use logback because of log4j
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Linking SubReports Without LinkChild/LinkMaster
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?