From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17392 invoked by alias); 23 Oct 2003 23:19:02 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 17381 invoked from network); 23 Oct 2003 23:19:00 -0000 Received: from unknown (HELO water-ox.its.caltech.edu) (131.215.49.69) by sources.redhat.com with SMTP; 23 Oct 2003 23:19:00 -0000 Received: from fire-dog (fire-dog [192.168.1.4]) by water-ox-postvirus (Postfix) with ESMTP id A300826AC98 for ; Thu, 23 Oct 2003 16:18:59 -0700 (PDT) Received: from earth-ox ([192.168.1.9]) by fire-dog (MailMonitor for SMTP v1.2.2 ) ; Thu, 23 Oct 2003 16:18:59 -0700 (PDT) Received: from pluto.br.caltech.edu (pix-2.caltech.edu [131.215.2.22]) by earth-ox.its.caltech.edu (Postfix) with ESMTP id B0650109A9A for ; Thu, 23 Oct 2003 16:18:58 -0700 (PDT) From: Jordan Benjamin To: gdb@sources.redhat.com Subject: "cannot open shared object file" Date: Thu, 23 Oct 2003 23:19:00 -0000 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200310231618.52181.jordanb@caltech.edu> X-Spam-Status: No, hits=0.0 tagged_above=-100000.0 required=5.0 X-Spam-Level: X-SW-Source: 2003-10/txt/msg00271.txt.bz2 Hello all, I'm trying to use GDB with a program having many shared libraries, and I get the following error: (gdb) run Starting program: /usr/local/Amira-3.0/bin/arch-Linux-Optimize/HxMain /usr/local/Amira-3.0/bin/arch-Linux-Optimize/HxMain: error while loading shared libraries: libAmira.so: cannot open shared object file: No such file or directory Program exited with code 0177. The library "libAmira.so" is found on my machine in /usr/local/Amira-3.0/lib/arch-Linux-Optimize/libAmira.so. I've tried adding /usr/local/Amira-3.0/lib/arch-Linux-Optimize/ to the shell variable LD_LIBRARY_PATH (which allows ldd to find it), as well as setting solib-search-path to this path, but to no avail. I can't even figure out what's generating this error message--I've grepped the gdb and ld source for similar wording but can't find anything. Do any of you have any ideas? Jordan