From owner-freebsd-questions@FreeBSD.ORG Thu Sep 6 06:11:25 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECA0716A47A for ; Thu, 6 Sep 2007 06:11:25 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 5C56313C491 for ; Thu, 6 Sep 2007 06:11:25 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l866BC7o037044; Thu, 6 Sep 2007 07:11:14 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1189059074; bh=35gBsRB+sWnB/C Yg6rPd2jhjIliDKUlnSK2nDI6R704=; h=Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To: X-Enigmail-Version:Content-Type:Content-Transfer-Encoding:Cc: Content-Type:Date:From:In-Reply-To:Message-ID:Mime-Version: References:To; b=wY975dSBWwO47sfUOVO7WyZX9E5jDfG2eIWnwk1qpZiWJzK8G wNl0HjJ3Wh10fyJ4V89dF96OdSMSkW3bM9sIgoNlvQ5GUaUbpFNLEgi0yqQ2y0ouPeR j9wm0ZSuGIzAPof2nkzBiszMN+6aW57AXtm3Vrio+QsOg7Gi/9TUwvg= Message-ID: <46DF9A00.5070603@infracaninophile.co.uk> Date: Thu, 06 Sep 2007 07:11:12 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.6 (X11/20070803) MIME-Version: 1.0 To: Zbigniew Szalbot References: <94136a2c0709052240t708b91d2kdeff3acffb96b39b@mail.gmail.com> In-Reply-To: <94136a2c0709052240t708b91d2kdeff3acffb96b39b@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Thu, 06 Sep 2007 07:11:14 +0100 (BST) X-Virus-Scanned: ClamAV 0.91.1/4170/Thu Sep 6 05:30:09 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Unable to load dynamic library / mysql.so X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2007 06:11:26 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Zbigniew Szalbot wrote: > Hello, > > I got a php warning and I am not sure what would be the best way to > deal with it. I'd like to be able to load the dynamic extension as > without it database back-end sites won't work. Will it help to force > upgrade of php4 and php4-extensions (portupgrade -f)? > > php -v > PHP Warning: Unknown(): Unable to load dynamic library > '/usr/local/lib/php/20020429/mysql.so' - Shared object > "libmysqlclient.so.15" not found, required by > "mysql.so" in Unknown on line 0 > PHP 4.4.7 (cli) (built: Jul 28 2007 17:27:57) > Copyright (c) 1997-2007 The PHP Group > Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies > > mysql --version > mysql Ver 14.14 Distrib 5.1.21-beta, for portbld-freebsd6.2 (i386) using 5.0 > > Many thanks for your suggestions! What does: ldconfig -r | grep mysql return? If there is no mention of libmysql.so.15, then that explains the symptoms you're seeing. libmysql.so.15 should be found in /usr/local/lib/mysql and that directory should have been added to the ldconfig search directories when you installed the mysql-client port. You can try adding it in manually if it isn't there by: ldconfig -m /usr/local/lib/mysql Note too this warning from ldconfig(8): For security reasons, directories which are world or group-writable or which are not owned by root produce warning messages and are skipped, unless the -i option is present. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD4DBQFG35oA8Mjk52CukIwRCCpPAJYo8tziOMCC/mbJx1cUmIslz8oIAJ94RdgO bqYjUxLY3JkKuiKmfpwFdw== =VNjX -----END PGP SIGNATURE-----