From owner-freebsd-questions@FreeBSD.ORG Mon Jun 21 00:35:48 2010 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 59804106564A for ; Mon, 21 Jun 2010 00:35:48 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 200818FC13 for ; Mon, 21 Jun 2010 00:35:45 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id o5L0ZgJC090468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 20 Jun 2010 19:35:42 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.4/8.14.4) with ESMTP id o5L0Zgxv074637 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 20 Jun 2010 19:35:42 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.4/8.14.3/Submit) id o5L0ZgbN074627; Sun, 20 Jun 2010 19:35:42 -0500 (CDT) (envelope-from dan) Date: Sun, 20 Jun 2010 19:35:41 -0500 From: Dan Nelson To: Caleb Stein Message-ID: <20100621003541.GA5799@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 8.1-PRERELEASE User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: clamav-milter 0.96 at email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Sun, 20 Jun 2010 19:35:42 -0500 (CDT) X-Scanned-By: MIMEDefang 2.45 Cc: "freebsd-questions@freebsd.org" Subject: Re: /libexec/ld-elf.so.1: Shared boject "libpng.so.5" not found 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: Mon, 21 Jun 2010 00:35:48 -0000 In the last episode (Jun 20), Caleb Stein said: > Whenever I try running an application that relies on GTK+ or QT, I get > that error message. How should I fix this? You must have upgraded your libpng port, and either the application or one of the shared libraries it uses hasn't been rebuilt since then. libpng.so.6 is the current version. Run "ldd -a myapplication", and rebuild anything that claims to depend on "libpng.so.5". One way to minimize damage like this is to use either portupgrade or portmaster to do updates for you. Those programs can back up old versions of shared libraries to /usr/local/lib/compat/pkg, so you won't get errors like that. Portupgrade will make a backup automatically, and so will portmaster if you add -w to the commandline. -- Dan Nelson dnelson@allantgroup.com