Install issue PHP5 on MacOSX

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



On ./configure error log says....

CONFIGURE:   './configure'  '--prefix=/usr/local/php5' '--with-apxs=/usr/sbin/apxs' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--enable-mbstring' '--enable-soap'
CC:         gcc
CFLAGS:     -I/usr/include -g -O2
CPPFLAGS:    -no-cpp-precomp
CXX:        
CXXFLAGS:   
INCLUDES:    -I/usr/include/libxml2 -I/Users/julia/work/php-5.2.6/ext/date/lib -I/Users/julia/work/php-5.2.6/ext/mbstring/oniguruma -I/Users/julia/work/php-5.2.6/ext/mbstring/libmbfl -I/Users/julia/work/php-5.2.6/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include
LDFLAGS:    -liconv -L/usr/lib  -L/usr/local/mysql/lib -L/usr/local/mysql/lib
LIBS:       -liconv -lm  -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lmysqlclient -lz -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm
DLIBS:      
SAPI:       apache
PHP_RPATHS:  /usr/local/mysql/lib
uname -a:   Darwin Julias-Computer.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386

gcc -o conftest -I/usr/include -g -O2  -no-cpp-precomp -liconv -L/usr/lib  -L/usr/local/mysql/lib -L/usr/local/mysql/lib conftest.c -liconv -lm  -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lmysqlclient -lz -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm 1>&5
conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in function 'exit'
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
  Referenced from: /Users/julia/work/php-5.2.6/./conftest
  Reason: image not found
./configure: line 91540: 28058 Trace/BPT trap          ./conftest

I can see that the libmsqlclient.15.dylib file is in fact located at usr/local/mysql/lib NOT usr/local/mysql/lib/mysql. I've tried to edit mysql_config, but am still getting the same error when I run ../configure

snip from mysql_config...
<
basedir=`echo $me | sed -e 's;/bin/mysql_config;;'`

ldata='/usr/local/mysql/data'
execdir='/usr/local/mysql/bin'
bindir='/usr/local/mysql/bin'

# If installed, search for the compiled in directory first (might be "lib64")
#pkglibdir='/usr/local/mysql/lib/mysql' --replaced with line below
pkglibdir='/usr/local/mysql/lib' 
pkglibdir_rel=`echo $pkglibdir | sed -e "s;^$basedir/;;"`
fix_path pkglibdir $pkglibdir_rel lib/mysql lib 


pkgincludedir='/usr/local/mysql/include/mysql'
fix_path pkgincludedir include/mysql include
>
Do I need to edit the fix_path line too? If so, to what? Or am I completely out to lunch and needing to do something else? Any help much appreciated.

Julia


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux