Date: Tue, 4 Sep 2001 15:19:08 +0200 From: Francesco Casadei <fcasadei@inwind.it> To: "Kulraj Gurm (bosa.ca Account)" <kulraj@bosa.ca> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: PHP 4.0.6 - libmysqlclient.so.10 Message-ID: <20010904151908.A2023@goku.kasby> In-Reply-To: <006601c134a4$367fa360$0ac8a8c0@kimsamy.com>; from kulraj@bosa.ca on Mon, Sep 03, 2001 at 11:14:03AM -0700 References: <006601c134a4$367fa360$0ac8a8c0@kimsamy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 03, 2001 at 11:14:03AM -0700, Kulraj Gurm (bosa.ca Account) wro= te: > The PHP installation instructions include the following linux specific ad= cice - does anyone know how to apply this in the FreeBSD environment?=20 >=20 > [snip] > Note 3! If you are on Linux and have installed shared libraries, make > sure the location of these shared libraries are listed in your > /etc/ld.so.conf file. For example, if you have: >=20 > /usr/local/lib/mysql/libmysqlclient.so >=20 > Make sure /etc/ld.so.conf contains: >=20 > /usr/local/lib/mysql >=20 > Then run ldconfig. > [/snip] >=20 >=20 > I am installing on FreeBSD 4.4RC and get the following error on starting = Apache : >=20 > su-2.05# /usr/local/apache/bin/apachectl startssl > Syntax error on line 20 of /usr/local/apache/conf/httpd.conf: > Cannot load /usr/local/apache/libexec/libphp4.so into server: Shared obje= ct "libmysqlclient.so.10" not found > /usr/local/apache/bin/apachectl startssl: httpd could not be started. >=20 > I am pretty sure that the lack of following the instructions and the erro= r are related - therefore need help. > TIA >=20 > Kulraj Gurm >=20 > end of the original message If you installed mysql and PHP-4.0.6 using the Ports everything should be o= k. Anyway, if you compiled PHP-4.0.6 with mysql support, then you have to be s= ure that it can find the shared object it needs. The mysql port installs a star= tup script in /usr/local/etc/rc.d/00mysql-client.sh whose task is loading the shared libs used by mysql: #!/bin/sh case "$1" in start) /sbin/ldconfig -m /usr/local/lib/mysql ;; stop) ;; *) echo "" echo "Usage: `basename $0` { start | stop }" echo "" exit 64 ;; esac Note that 00mysql-client.sh is executed before apache.sh, so that at boot t= ime when the apache web server is started it can find the mysql shared libs. If you want to do this by hand: $ ldconfig -m /usr/local/lib/mysql $ /usr/local/apache/bin/apachectl startssl Francesco Casadei --=20 You can download my public key from http://digilander.iol.it/fcasadei/ or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...) Key fingerprint is: 1671 9A23 ACB4 520A E7EE 00B0 7EC3 375F 164E B17B --azLHFNyN32YCQGCU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7lNTLfsM3XxZOsXsRAgJZAJ404krEmulVPLBbmALcUOrN2ZCcvQCg8nkz bkOVtf+6UK8T1cI+XKS8QiI= =iHxW -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010904151908.A2023>