[Haskell-cafe] How to install GD library on Mac OSX?

Judah Jacobson judah.jacobson at gmail.com
Wed Sep 23 03:29:58 EDT 2009

On Wed, Sep 23, 2009 at 12:23 AM, Colin Adams
<colinpauladams at googlemail.com> wrote:
> 2009/9/22 Brandon S. Allbery KF8NH <allbery at ece.cmu.edu>:
>> Hash: SHA1
>> On Sep 22, 2009, at 13:44 , Colin Adams wrote:
>>> It needs some missing C libraries - gd, png, jpeg, fontconfig and
>>> freetype.
>>> Does anyone know what to do to install these on OSX?
>> Customarily, Fink or MacPorts.
>> Several of those *are* installed on OSX by default (at least Leopard and
>> up); if they're not being found, make sure you have installed the latest
>> XCode and Apple's X11 (the latter should only matter for Tiger and earlier).
>>  You may also want the latest X11 from http://xquartz.macosforge.org.
> Well I tried using macports to install GD2. That was hard work (it
> doesn't resolve dependencies for you). But it makes no difference.
> Cabal install gd still fails saying gd.h is missing, and the libraries
> gd, png, jpeg, fonconfig and freetype, as before.

You probably want to use (if you haven't tried it already):

cabal install gd --extra-include-dirs=/opt/local/include


More information about the Haskell-Cafe mailing list