From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nickrob@snap.net.nz (Nick Roberts) Newsgroups: gmane.emacs.help Subject: In emacs, gdb says "cannot open shared object file" Date: Mon, 1 Jun 2009 17:19:22 +1200 Message-ID: <18979.25818.810590.678739@totara.tehura.co.nz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243833619 6959 80.91.229.12 (1 Jun 2009 05:20:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jun 2009 05:20:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Mihai Vasilian Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 01 07:20:17 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MAzwU-0003WR-Vc for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jun 2009 07:20:15 +0200 Original-Received: from localhost ([127.0.0.1]:59966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAzwU-0008O9-E6 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jun 2009 01:20:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MAzvu-0008Kf-EY for help-gnu-emacs@gnu.org; Mon, 01 Jun 2009 01:19:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MAzvp-0008Gu-D5 for help-gnu-emacs@gnu.org; Mon, 01 Jun 2009 01:19:37 -0400 Original-Received: from [199.232.76.173] (port=43378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAzvp-0008Gj-47 for help-gnu-emacs@gnu.org; Mon, 01 Jun 2009 01:19:33 -0400 Original-Received: from mx.southnet.co.nz ([202.37.101.20]:41233 helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MAzvo-0004eY-Hn for help-gnu-emacs@gnu.org; Mon, 01 Jun 2009 01:19:32 -0400 Original-Received: from totara (unknown [123.255.30.42]) by viper.snap.net.nz (Postfix) with ESMTP id 503943DA567; Mon, 1 Jun 2009 17:19:24 +1200 (NZST) Original-Received: by totara (Postfix, from userid 1000) id D2F44C13E; Mon, 1 Jun 2009 17:19:22 +1200 (NZST) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.2.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64854 Archived-At: > I get the following error message: > Starting program: /mnt/sda5/Programming/prg/src/prg > /mnt/sda5/Programming/prg/src/prg: error while loading shared libraries: > libmisc.so: cannot open shared object file: No such file or directory It doesn't sound like in Emacs problem. Does ldd /mnt/sda5/Programming/prg/src/prg find libmisc.so? What happens if you run gdb from the command line? If you start Emacs from the desktop, LD_LIBRARY_PATH might not be set. $MYPATH/prg/src and $MYPATH/misc/src look like src folders. It's usual to to put executables and shared objects in bin and lib directories respectively. -- Nick http://www.inet.net.nz/~nickrob