php4 and mysql
| From: | Glenn Little | Date: | Tue, 25 Apr 2000 07:38:02 +0000 |
| Subject: | php4 and mysql | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-14041@lists.php.net to get a copy of this message | ||
Installed apache 1.3.12 with mod-so, then php snapshot 200004141345
using --with-apxs. Had that working. Then installed mysql with
--prefix=/web/mysql-3.22.32. Symlinked that to /web/mysql for
cleanliness. That install seems okay too (runs and works with
command-line access).
Remade php4, adding one config:
--with-mysql=/web/mysql
"make" and "make install" appear to go okay. However, apache cannot start
now, with a complaint that libmysqlclient.so is not found. An ldd of
the new apache/libexec/libphp4.so contains the line (among others):
libmysqlclient.so.6 => (file not found)
I see no errors in the php "make" output. The libtool line for libphp4.la
includes, among other things (whole line at end of message):
-L/web/mysql/lib/mysql (which is the directory where libmysqlclient.so.6 is)
-R /web/mysql/lib/mysql
ext/mysql/libmysql.la
-lmysqlclient
and there are no complaints. Is this the right place to look? Is this
where libphp4.so is created?
So I believe the problem is not that apache doesn't have permission
to find the libmysqlclient file (in fact, the path to it appears
read/executable by the world). Am I right in thinking the library
itself is not being correctly? It's not an apache problem, is it?
Am I looking in the right places for clues, or do any of you have
some other suggested place to look?
Thanks much. Hey, at least this time it's not a bad gcc version, like
my last linking problem. :-)
-glenn
glittle@ucsd.edu
That whole libphp4 libtool line from the php "make" output:
/bin/sh ./libtool --silent --mode=link gcc -g -O2 -Wall -o libphp4.la -rpath /
web/src/php4-200004141345/libs -avoid-version -L/usr/ucblib -L/web/mysql/lib/mys
ql -R /usr/ucblib -R /web/mysql/lib/mysql main.lo internal_functions.lo snprint
f.lo php_sprintf.lo configuration-parser.lo configuration-scanner.lo safe_mode.l
o fopen-wrappers.lo php_realpath.lo alloca.lo php_ini.lo SAPI.lo rfc1867.lo dlis
t.lo php_content_types.lo strlcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_v
ariables.lo php_ticks.lo php_virtual_cwd.lo Zend/libZend.la sapi/apache/libsapi.
la regex/libregex.la ext/db/libdb.la ext/mysql/libmysql.la ext/pcre/libpcre.la e
xt/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la ext/s
ysvsem/libsysvsem.la ext/sysvshm/libsysvshm.la ext/xml/libxml.la -lpam -ldl -ld
l -lmysqlclient -lresolv -lresolv -lm -lcrypt -lsocket -lnsl -lsocket
make[1]: Leaving directory `/web/src/php4-200004141345'
Making all in pear
(...etc...)