PHP GD Library on Snow Leopard Macports

I recently went through a hellish upgrade to Snow Leopard and had to reinstall all my macports.

When I emerged all the graphic imaging functions in a PHP project had died… no warnings, no error messages. After experimenting a bit I realized that the standard GD library wasn’t installed.

Apparently in Snow Leopard macports, GD library doesn’t come along with php5 by default! I remember it did it Leopard (correct me if i’m wrong) so this was a confusing problem.

Very easy to fix:

sudo port install php5-gd

This entry was posted in Code and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">