From owner-freebsd-questions Mon Sep 3 12:18:35 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailout5.nyroc.rr.com (mailout5-0.nyroc.rr.com [24.92.226.122]) by hub.freebsd.org (Postfix) with ESMTP id 1584537B403 for ; Mon, 3 Sep 2001 12:18:30 -0700 (PDT) Received: from rochester.rr.com (roc-66-24-94-17.rochester.rr.com [66.24.94.17]) by mailout5.nyroc.rr.com (8.11.6/Road Runner 1.12) with ESMTP id f83JIQf11918 for ; Mon, 3 Sep 2001 15:18:26 -0400 (EDT) Message-ID: <3B93D783.25D4D008@rochester.rr.com> Date: Mon, 03 Sep 2001 15:18:27 -0400 From: "David M. Heller" X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: "questions@FreeBSD.ORG" Subject: Re: PHP 4.0.6 - libmysqlclient.so.10 References: <006601c134a4$367fa360$0ac8a8c0@kimsamy.com> <001001c134a6$2a257d40$0ac8a8c0@kimsamy.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Kulraj Gurm (bosa.ca Account)" wrote: > > Sorry about the previous html post...... ooops! > Resolved by : > cp /usr/local/mysql/lib/mysql/libmysqlclient.so.10 > /usr/local/apache/libexec/ > but this is a micky mouse workaround - still interested in properly setting > up ldconfig. > ----------------------------------------------- > > The PHP installation instructions include the following linux specific > adcice - does anyone know how to apply this in the FreeBSD environment? > > [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: > > /usr/local/lib/mysql/libmysqlclient.so > > Make sure /etc/ld.so.conf contains: > > /usr/local/lib/mysql > > Then run ldconfig. > [/snip] > > I am installing on FreeBSD 4.4RC and get the following error on starting > Apache : > > 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 object > "libmysqlclient.so.10" not found > /usr/local/apache/bin/apachectl startssl: httpd could not be started. > > I am pretty sure that the lack of following the instructions and the error > are related - therefore need help. > TIA > > Kulraj Gurm If you cd to /usr/ports/www/mod_php4 and edit the Makefile and change the line that says --without-mysql to --with-mysql and reinstall mod_php4. I have mod_php3 installed and msql installed and edited the Makefile to include the line --with-msql and it worked. -- David Heller dheller1@rochester.rr.com dheller@allheller.net http://www.supertechs.dyndns.org/contactus.php3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message