dyld: NSLinkModule() error with php52 macports |
Nusphere over Parallels to MAC OS 10.7 (Lion) and Macports |
|
The issue is not with the install or pointers to the correct file but the issue is that Apache cannot load the dbg-php-5.3.so file.
Here are the scenarios that I've tried: On a system that has MAC OS 10.8 Mountain Lion with the AMP from macports and latest Xcode version that one can download I am running Nusphere php IDE on Windows through parallels. sudo port install php52 +apache2 +mysql5 which loads php 5.2.17 version OR sudo port install php5 +apache2 +mysql5 which loads php 5.3.x version I've tried it with both and in both cases the Apache error that one can find in the error_log file is: dyld: NSLinkModule() error dyld: initializer function 0x1046f53c0 not in mapped image for /opt/local/lib/php/extensions/dbg-php-5.2.so Trace/BPT trap: 5 same error with the php5.3 version except that the file is this time /opt/local/lib/php/extensions/dbg-php-5.3.so My extension_dir is set for: extension_dir /opt/local/lib/php/extensions /opt/local/lib/php/extensions Again, it seems that Apache finds the extension file but NSLinkModule cannot load it. ------- My fix: Before the upgrade from MAC OS 10.7.4 to 10.8 I did a backup of my drive. I've spent at least 12hours on trying to get it to work (including compiling my own php version) but could not. I've reverted back to MAC OS 10.7.4 Hope this will help anyone who encounters this problem. I do not know what the real fix is for this, hopefully Nusphere will come up with something as I've logged it with their support department. |
||||||||||||
|
Site Admin
|
I wonder what they changed. As you see we didn't change anything. And our modules work fine with php shipped with Mac OSX itself -- I turned on web sharing and got all - apache+php launched. Then added dbg to php.ini and it started working. But my mac is 10.7.5, not 10.8... If you need macport's php, ask them if they changed anything in their build process. I know that under mac with default "strip binaryname" it strips everything too much so no modules/extensions will load because they won't find public symbols in the binary that they depend on. UPD: I found some posts about using install_name_tool to fix similar issues with NSLinkModule error in libmysql. Hope they will work here too. |
||||||||||||||
_________________ The PHP IDE team |
|
Dmitri,
I've reverted back to 10.7.4 so I'm running fine again. I think anyone with 10.8 and Macports will have this issue, just don't have the time to research it further. Best, Olimpiu |
||||||||||||
|
dyld: NSLinkModule() error with php52 macports |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by