Library conflict in Mac OS X
Posted
by
Juan Medín
on Super User
See other posts from Super User
or by Juan Medín
Published on 2011-04-07T06:03:08Z
Indexed on
2011/06/25
16:24 UTC
Read the original article
Hit count: 227
I was trying to install the ImageMagick library on Mac OS X Snow Leopard, and first I tried port and, after it failed, homebrew. It updated some dependencies and installed ImageMagick without problems.
So far so good. The problem came when I ran Apache. I got the following error in the system log:
07/04/11 12:55:15 org.apache.httpd[41841] httpd: Syntax error on line 115 of /private/etc/apache2/httpd.conf: Cannot load /opt/local/apache2/modules/libphp5.so into server: dlopen(/opt/local/apache2/modules/libphp5.so, 10): Library not loaded: /opt/local/lib/libpng12.0.dylib\n Referenced from: /opt/local/apache2/modules/libphp5.so\n Reason: image not found
I checked the /opt/local/lib and surprise! I don't have the libpng12.0 but the libpng14.0.
So, as far as I can tell, something went wrong installing the ImageMagick library.
Now, I can't find a way to rollback to the previous libraries, other than copying them from the backup. Do you know if is there a way to recover the previous state or reinstall Apache? Or is this just a corrupt state and I must reinstall OS X?
© Super User or respective owner