Current location: Hot Scripts Forums » Programming Languages » PHP » can't make php5 on mac osx 10.2


can't make php5 on mac osx 10.2

Reply
  #1 (permalink)  
Old 03-23-04, 08:25 PM
rkstar rkstar is offline
New Member
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Angry can't make php5 on mac osx 10.2

help!

i've gone thru getting and installing all my libraries, and i've installed apache2 and everything is working as it should (so far). i've been able to compile php5 (rc1) properly, but when i try to make it, this happens:

ld: Undefined symbols:
_mysql_create_db
_mysql_drop_db
make: *** [libs/libphp5.bundle] Error 1


here's what i compiled php with:

./configure '--prefix=/usr/local/php5' '--with-config-file-path=/usr/local/php5/lib' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-zlib=/usr' '--with-mysql' '--with-gd' '--with-mcrypt=/usr/local/php5' '--with-libxml-dir=/sw' '--enable-so' '--enable-soap' '--with-png-dir=/usr/local'


i've looked around the 'net but i can't seem to find the solution to this problem.

it looks like it might be a problem with mysql, but it was running fine (4.0.15) before, i've since updated to 4.0.18 and it is still running, no problems.

can anybody help me??
Reply With Quote
  #2 (permalink)  
Old 03-24-04, 12:44 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,

I would always recommend that you consult PHP documentation, FAQ, etc, especially since the ver 5 is yet RC1. This may help:

http://ca2.php.net/manual/en/faq.dat...ses.mysql.php5
__________________
Blavv =|
Reply With Quote
  #3 (permalink)  
Old 03-24-04, 07:30 AM
rkstar rkstar is offline
New Member
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by blaw
Hello,

I would always recommend that you consult PHP documentation, FAQ, etc, especially since the ver 5 is yet RC1. This may help:

http://ca2.php.net/manual/en/faq.dat...ses.mysql.php5
thanks blaw, i checked the FAQ and i've been doing exactly what they ask for. i've tried linking directly to my libmysqlclient dir, to /usr, to /usr/local etc... i always get the same error.



here is more info on what happens when i "make" after using my above configure string, changing to --with-mysql=/usr like the FAQ says:

Code:
-lm -lxml2 -lz -lm  -o libs/libphp5.bundle && cp libs/libphp5.bundle libs/libphp5.so
ld: warning multiple definitions of symbol _pcre_free
ext/pcre/pcrelib/pcre.o definition of _pcre_free in section (__DATA,__data)
/usr/local/apache2/bin/httpd definition of _pcre_free
ld: warning multiple definitions of symbol _pcre_malloc
ext/pcre/pcrelib/pcre.o definition of _pcre_malloc in section (__DATA,__data)
/usr/local/apache2/bin/httpd definition of _pcre_malloc
ld: warning multiple definitions of symbol _regcomp
/usr/local/apache2/bin/httpd definition of _regcomp
/usr/lib/libpthread.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
/usr/local/apache2/bin/httpd definition of _regexec
/usr/lib/libpthread.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
/usr/local/apache2/bin/httpd definition of _regfree
/usr/lib/libpthread.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_mysql_create_db
_mysql_drop_db
make: *** [libs/libphp5.bundle] Error 1
does that make any sense?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 10:21 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.