From owner-freebsd-questions@FreeBSD.ORG Thu Sep 6 06:18:40 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 A755F16A419 for ; Thu, 6 Sep 2007 06:18:40 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by mx1.freebsd.org (Postfix) with ESMTP id 7E42813C461 for ; Thu, 6 Sep 2007 06:18:40 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so48994rvb for ; Wed, 05 Sep 2007 23:18:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=2/UkVOoswfj8I91l/5q0Oss2JAcDP1WXyHVqZjIXdk4=; b=HX+rVHSuLSMYlr71S3TI5ro6q8Bb1prNcj67h0x1X0xiWZCosCuq2FS5Z/Y2p5OQ6ihJ2h+FZgr3JVuEnrW4ZJrXuuWusf+rJDpyXrHi2FUUC8nLDByPtvAE8OUWFWNnr/JRlSnVoT66RaYnpQC+WO3lSZ0Pos3A3ff/h9qJN38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P43adJF5/KA7wRAHRjnWQTywLEOTm7IiiYnE1FaSZ/XXvHvmMf79r7G9at7yfrurXFEEK1iPTZoYD2Oy/4qN5YikGcyOfbKIAjHs+oT+nRWEV4mzS5jjgmIWb4gJ74SlzgW/4m3gTh7y1DwE36qUMcGIz2sfnY3CJFkpTsvLPLw= Received: by 10.141.180.5 with SMTP id h5mr90111rvp.1189059506537; Wed, 05 Sep 2007 23:18:26 -0700 (PDT) Received: by 10.141.79.9 with HTTP; Wed, 5 Sep 2007 23:18:26 -0700 (PDT) Message-ID: <94136a2c0709052318k5c5863d2qdd2a1e9568e77261@mail.gmail.com> Date: Thu, 6 Sep 2007 08:18:26 +0200 From: "Zbigniew Szalbot" To: freebsd-questions@freebsd.org In-Reply-To: <46DF9A00.5070603@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <94136a2c0709052240t708b91d2kdeff3acffb96b39b@mail.gmail.com> <46DF9A00.5070603@infracaninophile.co.uk> 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:18:40 -0000 Hello, 2007/9/6, Matthew Seaman : > -----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 ldconfig -r | grep mysql search directories: /lib:/usr/lib:/usr/lib/compat:/usr/X11R6/lib:/usr/local/lib:/usr/local/lib/compat/pkg:/usr/local/lib/mysql:/usr/local/lib/dovecot:/usr/local/lib/dovecot/imap:/usr/local/lib/dovecot/pop3:/usr/local/lib/dovecot/lda:/usr/local/lib/pth:/usr/local/lib/apache2 134:-lmysql_drv.7 => /usr/local/lib/libmysql_drv.so.7 206:-lmysqlclient.16 => /usr/local/lib/mysql/libmysqlclient.so.16 207:-lmysqlclient_r.16 => /usr/local/lib/mysql/libmysqlclient_r.so.16 I did notice yesterday that the system now (after mysql upgrade) wants to use mysqlclient.so.16 (it was dovecot who first complained, its upgrade solved the problem). So maybe I should refresh the php installation to take notice of that? Thank you very much indeed! Zbigniew Szalbot