Another upgrade of PHP from the FreeBSD ports collection and another problem! Am I alone, well searching would appear to suggest not. I wonder why this one set of ports causes me so much trouble. Still getting used to the quirks now! Today’s problem concerned loading the GD graphics library. It produced the following error:
#php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/gd.so' - /usr/local/lib/php/20060613/gd.so: Undefined symbol "gdImageCreateFromXpm" in Unknown on line 0
PHP 5.2.12 with Suhosin-Patch 0.9.7 (cli) (built: Apr 5 2010 16:19:17)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.
Now in the past most of my PHP and ports problems have been sorted by re-arranging the contents of the extensions.ini file. This time it would appear that GD would need to be rebuilt. To do that you can still use the portupgrade command, passing it the -f command to force a rebuild thus:
portupgrade -f php5-gd
All sorted!
Written on 05 Apr 2010 and categorised in FreeBSD and PHP, tagged as Ports and GD