From owner-freebsd-ports@FreeBSD.ORG Fri Jun 10 00:32:43 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 152F8106564A; Fri, 10 Jun 2011 00:32:43 +0000 (UTC) (envelope-from lcampbell@ironclad.mobi) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id C4E618FC0C; Fri, 10 Jun 2011 00:32:37 +0000 (UTC) Received: by iwn33 with SMTP id 33so2558606iwn.13 for ; Thu, 09 Jun 2011 17:32:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.119.207 with SMTP id a15mr1750184ibr.164.1307665957276; Thu, 09 Jun 2011 17:32:37 -0700 (PDT) Received: by 10.231.185.212 with HTTP; Thu, 9 Jun 2011 17:32:37 -0700 (PDT) In-Reply-To: <52E31E4B4CFA42A78EE8F7271F96571A@multiplay.co.uk> References: <52E31E4B4CFA42A78EE8F7271F96571A@multiplay.co.uk> Date: Thu, 9 Jun 2011 19:32:37 -0500 Message-ID: From: L Campbell To: Steven Hartland Content-Type: text/plain; charset=ISO-8859-1 Cc: ports@freebsd.org, ale@freebsd.org Subject: Re: databases/mysql55-server, Error: shared library "mysqlclient.18" does not exist X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2011 00:32:43 -0000 On Thu, Jun 9, 2011 at 6:01 PM, Steven Hartland wrote: > ----- Original Message ----- From: "L Campbell" > To: ; > Sent: Thursday, June 09, 2011 7:32 PM > Subject: databases/mysql55-server, Error: shared library "mysqlclient.18" > does not exist > > >> For some reason, I can't compile databases/mysql55-server on a fresh >> install; it errors out with > > ... > > Works fine for me here Campbell, are you sure your ports are up to date > properly? > > locate libmysql |grep -v ports > /usr/local/lib/mysql/libmysqlclient.a > /usr/local/lib/mysql/libmysqlclient.so > /usr/local/lib/mysql/libmysqlclient.so.18 > /usr/local/lib/mysql/libmysqlclient_r.a > /usr/local/lib/mysql/libmysqlclient_r.so > /usr/local/lib/mysql/libmysqlclient_r.so.18 > /usr/local/lib/mysql/libmysqld.a > /usr/local/lib/mysql/libmysqlservices.a > Nah, turns out it was a umask issue with ldconfig -- for some reason my .cshrc on this jail has the non-righteous umask of 002, which means any directories created are group-writable. Naturally, ldconfig doesn't like this -- $ ldconfig /usr/local/lib /usr/local/lib/mysql ldconfig: /usr/local/lib/mysql: ignoring group-writable directory Changing the permissions to the appropriate 755 $ chmod 755 /usr/local/lib/mysql Then re-indexing the ldconfig hints file $ ldconfig -R /usr/local/lib/mysql Makes libmysqlclient.so(.18) show up in ldconfig correctly: $ ldconfig -r | grep mysql search directories: /usr/local/lib:/usr/local/lib/mysql 83:-lmysqlclient.18 => /usr/local/lib/mysql/libmysqlclient.so.18 84:-lmysqlclient_r.18 => /usr/local/lib/mysql/libmysqlclient_r.so.18 Sorry about the noise; user error as usual :D