So, I found a couple posts after some Googling which shed some light on this.
20060613-zts is used by libapache2-mod-php5/php5 20060613 is used by php5-cli For some reason, it seems necessary to build the extensions for both environments separately. The problem is though that I can't figure out how to do that through fink. It seems as though it would be appropriate to have php5-cli-mysql in addition to php5-mysql, php5-cli-curl in addition to php5-curl, etc. I haven't found anything like this. And I can't figure out how to do this manually. Any ideas? Thanks. On Fri, Dec 18, 2009 at 8:58 PM, Laran Evans <[email protected]> wrote: > Waddya know. Moving /sw/etc/pear/pear.conf out of the way allowed the > build to work just fine. Yay! > > I still get these: > > PHP Warning: PHP Startup: Unable to load dynamic library './curl.so' > - (null) in Unknown on line 0 > PHP Warning: PHP Startup: Unable to load dynamic library './imap.so' > - (null) in Unknown on line 0 > PHP Warning: PHP Startup: Unable to load dynamic library './mysql.so' > - (null) in Unknown on line 0 > PHP Warning: PHP Startup: Unable to load dynamic library > './mysqli.so' - (null) in Unknown on line 0 > PHP Warning: PHP Startup: Unable to load dynamic library './pdo.so' - > (null) in Unknown on line 0 > PHP Warning: PHP Startup: Unable to load dynamic library > './pdo_mysql.so' - (null) in Unknown on line 0 > PHP Warning: PHP Startup: Unable to load dynamic library './xsl.so' - > (null) in Unknown on line 0 > > Which is because the extensions are all being placed in > /sw/lib/php5/20060613-zts/ while php is being configured out of the > box to look for extensions in /sw/lib/php5/20060613/. Any idea why > this discrepancy exists? > > What's worse is that after going in to change > /sw/etc/php5/cli/php.ini to set extension_dir to > /sw/lib/php5/20060613-zts/, I get this: > > me$ php --version > dyld: NSLinkModule() error > dyld: Symbol not found: _executor_globals_id > Referenced from: /sw/lib/php5/20060613-zts/curl.so > Expected in: dynamic lookup > > Trace/BPT trap > me$ > > When I see that I assume that the php curl extension was compiled > against something incorrectly, so I do this: > > me$ sudo fink rebuild php5-curl > > But that seems to rebuild all of php5, which is how I arrived in the > original situation in the first place. > > Any suggestions? > > On Fri, Dec 18, 2009 at 7:36 PM, Laran Evans <[email protected]> wrote: >>> You didn't provide your OS version and architecture, (e.g. if you're >>> using 64bit Fink on 10.6). >> >> Leopard on Intel >> >>> Did you try renaming /sw/etc/pear/pear.conf , just in case non-visible >>> whitespace was causing problems? (I've had that happen in some >>> circumstances) >> >> Trying that now... >> >>> And how about posting what you did to try changing the directory where >>> PEAR was looking, and what the "dyld issues" were? >> >> What I tried was this: sudo pear config-set ext_dir /sw/lib/php5/20060613-zts >> >> It defaulted to /sw/lib/php5/20060613 but the extensions were all >> installed in /sw/lib/php5/20060613-zts by fink. >> >> And the dyld issues were: >> >> me$ php --version >> dyld: NSLinkModule() error >> dyld: Symbol not found: _executor_globals_id >> Referenced from: /sw/lib/php5/20060613-zts/curl.so >> Expected in: dynamic lookup >> >> Trace/BPT trap >> me$ >> > ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Fink-beginners mailing list [email protected] http://news.gmane.org/gmane.os.apple.fink.beginners
