From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.help Subject: Re: Building emacs errors: libraries present Date: Sun, 08 Feb 2015 01:02:16 +1100 Message-ID: <87siehq0pj.fsf@gmail.com> References: <87a90rwwhf.fsf@gmail.com> <83egq3eaxb.fsf@gnu.org> <87twyzurya.fsf@gmail.com> <87y4ob6vz7.fsf@gmail.com> <87siehrgqg.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1423317760 24585 80.91.229.3 (7 Feb 2015 14:02:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Feb 2015 14:02:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 07 15:02:39 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YK5y3-0003Er-3v for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Feb 2015 15:02:39 +0100 Original-Received: from localhost ([::1]:53178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK5y2-0004S7-3u for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Feb 2015 09:02:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK5xr-0004Rr-MF for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 09:02:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YK5xo-0001bl-FT for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 09:02:27 -0500 Original-Received: from mail-pd0-f169.google.com ([209.85.192.169]:46832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YK5xo-0001bI-Aw for help-gnu-emacs@gnu.org; Sat, 07 Feb 2015 09:02:24 -0500 Original-Received: by pdjz10 with SMTP id z10so20822768pdj.13 for ; Sat, 07 Feb 2015 06:02:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:in-reply-to:date:message-id:mime-version :content-type; bh=NM7mpn08bU6eDRAzXZaLOUTMVSlZr/qKaRdmruoK/3g=; b=y+IWjYnWwPQLJJqd5ssoDEONDoVUzkpCdQ265Nybk1lZPVUFi2OmTOTp71oT5MlTVY WYJlV9E8pmESsxs/Z0epdGj9AOxugey6RZP5pPEdNZMqWRrQA9vXkBWJ4my37DQl/bzR Z7HoKbB4aHavb7oKcT19BUnK6RpaH98QbaIQ4ApwlP9O01+trpN8rl/8oG8hE3af+wtG PxOSxYZC+AHfJpVDfCWB8cXGaOiHHSOf+HCo9YO9PWrmT108SP/2p1hYDdbTcDSW2gAd jmH0a6OBfffXDyvqUJ8qcMnFCE+0NN0xpifKubEKrruY5MfINVMNW8OVV/o+PDjioTdO 4Tqw== X-Received: by 10.66.193.33 with SMTP id hl1mr13763997pac.141.1423317742840; Sat, 07 Feb 2015 06:02:22 -0800 (PST) Original-Received: from localhost (ppp118-209-226-212.lns20.mel8.internode.on.net. [118.209.226.212]) by mx.google.com with ESMTPSA id do2sm11107842pbc.23.2015.02.07.06.02.20 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 07 Feb 2015 06:02:21 -0800 (PST) In-reply-to: <87siehrgqg.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102554 Archived-At: Tory S. Anderson writes: > Okay; I've succeeded finally in building by soft-linking all the > libraries it SHOULD have been finding into the main > directories. I'm not sure why it cannot use libpng 16 and > instead requires 15. E.g. I did this: > > sudo ln -s /anaconda/lib/libpng15.so /usr/lib64/ > > Taking care of any non-found files that way solved all > problems. > > ldconfig looks interesting, but I don't seem to have a manpage > on it. Unfortunately, it didn't solve the issue. Soft links > seemed to do the trick for me. Very odd that your system doesn't have a manpage for ldconfig(8)! Here's the opening paragraph of that man page on my system: "ldconfig creates, updates, and removes the necessary links and cache (for use by the run-time linker, ld.so) to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/usr/lib and /lib). ldconfig checks the header and file names of the libraries it encounters when determining which versions should have their links updated. ldconfig ignores symbolic links when scanning for libraries." Basically, when you install new shared libraries on your system, you need to run /sbin/ldconfig in order to refresh the cache of available shared libraries. As someone else has pointed out, the directories searched for libraries is specified in /etc/ld.so.conf and related files; if you install shared libraries outside of those paths, you'll need to add the new paths to /etc/ld.so.conf (or possibly some other file, depending on the system's setup). How are you installing the extra libraries? Are you installing the relevant -devel packages from your distro's repos, or are you manually compiling and installing them yourself? If the latter, then you'll need, as noted elsewhere in this thread, to make sure they're being installed in a path specified by /etc/ld.so.conf, or modify the latter file appropriately. Needing to create symbolic links manually, as you have done, should normally not be necessary. Alexis.