From owner-freebsd-mozilla Sun Sep 1 9: 8:53 2002 Delivered-To: freebsd-mozilla@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12B2137B401 for ; Sun, 1 Sep 2002 09:08:51 -0700 (PDT) Received: from meketrex.pix.net (meketrex.pix.net [192.111.45.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 254A443E42 for ; Sun, 1 Sep 2002 09:08:50 -0700 (PDT) (envelope-from lidl@meketrex.pix.net) Received: (from lidl@localhost) by meketrex.pix.net (8.11.6/8.11.6) id g81FrRJ06845; Sun, 1 Sep 2002 11:53:27 -0400 (EDT) Date: Sun, 1 Sep 2002 11:53:27 -0400 From: "Kurt J. Lidl" To: Mats Dufberg Cc: freebsd-mozilla@FreeBSD.ORG Subject: Re: Cannot open "./libxpcom.so" Message-ID: <20020901115327.A6607@pix.net> References: <20020901152852.F51326-100000@aslan.narnia.pp.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020901152852.F51326-100000@aslan.narnia.pp.se>; from dufberg@narnia.pp.se on Sun, Sep 01, 2002 at 03:33:55PM +0200 Sender: owner-freebsd-mozilla@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Sep 01, 2002 at 03:33:55PM +0200, Mats Dufberg wrote: > I have installed mozilla from ports, package mozilla-1.0_2,1. After > installation (and even rebooting) I cannot start mozilla at all. I get the > following error message > > /usr/libexec/ld-elf.so.1: Cannot open "./libxpcom.so" > > I start mozilla with /usr/X11R6/bin/mozilla -- or rather try to. > > The shard object is there, /usr/X11R6/lib/mozilla/libxpcom.so. > > Have I missed someting? I don't know about a version compiled from the ports mechanism, but "classic" mozilla tarballs have a script "mozilla", that runs "mozilla-bin", the real binary. The script sets up LD_LIBRARY_PATH and other variables before it calls mozilla-bin. One of the things the script does is examine the way it was invoked, to determine how LD_LIBRARY_PATH should be set. So, if you install into /usr/local/mozilla, and then run "/usr/local/mozilla/mozilla", the script will stuff "/usr/local/mozilla" into LD_LIBRARY_PATH, and that is how it will find the libraries. If you sym-link /usr/X11/bin/mozilla to /usr/local/mozilla/mozilla, it will not work -- the script will put "/usr/X11/bin" into LD_LIBRARY_PATH and then loading the dynamic libraries will fail. Creating a script like this in /usr/X11/bin/mozilla will work fine: -- snip -- #! /bin/sh exec /usr/local/mozilla/mozilla $* -- snip -- Good luck. -Kurt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mozilla" in the body of the message