pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39735: pkgsrc/graphics/php-gd does not work on OSX out o the box

>Number:         39735
>Category:       pkg
>Synopsis:       pkgsrc/graphics/php-gd does not work on OSX out o the box
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 12 16:15:01 +0000 2008
>Originator:     Matthias Viehweger
>Release:        none (sorry)
Darwin MacApfel 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun  9 19:30:53 PDT 
2008; root:xnu-1228.5.20~1/RELEASE_I386 i386 i386
Everytime I try to install the gd-lib as a dynamic extension, I run into the 
same problem: It wont work.

I get the following error:

PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/pkg/lib/php/20040412/' - dlopen(/usr/pkg/lib/php/20040412/, 9): 
Symbol not found: __cg_jpeg_resync_to_restart\n  Referenced from: 
Expected in: /usr/pkg/lib/libjpeg.62.dylib\n in Unknown on line 0

I use pkgsrc for software package managment on my mac, as may be apparent from 
the paths.

This error never occured on my NetBSD 4.0 (i386) machine...
install pkgsrc on a mac with OSX 10.4 or OSX 10.5

in the pkgsrc dir:

install www/ap-php
install graphic/php-gd

edit usr/pkg/etc/php.ini

start apache

tail error_log
The solution is to edit the file /usr/pkg/sbin/envvars and remove or comment 
the DYLD_LIBRARY_PATH because it is causing the error...


It was mentioned there, that DYLD_LIBRARY_PATH is not really suited for 
production and should (if at all) be used only during development. I don't know 
about this, but removing the statement solved my problem.

Home | Main Index | Thread Index | Old Index