Skip site navigation (1)Skip section navigation (2)
Date:      18 Feb 2002 12:19:12 -0500
From:      Joe Clarke <marcus@marcuscom.com>
To:        Stijn Hoop <stijn@win.tue.nl>
Cc:        Mathias.Picker@virtual-earth.de, ports@freebsd.org
Subject:   Re: nautilus fails to view html
Message-ID:  <1014052752.84830.9.camel@shumai.marcuscom.com>
In-Reply-To: <20020218175541.G30622@pcwin002.win.tue.nl>
References:  <20020218141257.A58CD37B400@hub.freebsd.org> <1014050750.84830.2.camel@shumai.marcuscom.com>  <20020218175541.G30622@pcwin002.win.tue.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2002-02-18 at 11:55, Stijn Hoop wrote:
> On Mon, Feb 18, 2002 at 11:45:50AM -0500, Joe Clarke wrote:
> > On Mon, 2002-02-18 at 09:12, Mathias.Picker@virtual-earth.de wrote:
> > > on a freshly installed -stable machine.
> > > 
> > > It says "A view failed..."
> > > 
> > > starting nautilus-mozilla-content-view by hand gives:
> > 
> > Gives what?  Nothing?  Did you compile with Mozilla support?  This was
> > only recently readded, and requires nautilus-1.0.6_2 with
> > mozilla-embedded-0.9.8,1.
> 
> I get the same, and the error message is:
> 
> [stijn@pcwin002] <~> nautilus-mozilla-content-view http://slashdot.org
> /usr/libexec/ld-elf.so.1: Shared object "libxpcom.so" not found
> 
> Which can be right, since I suspect /usr/X11R6/lib/mozilla is not
> in $LD_LIBRARY_PATH at that moment.
> 
> Note that I ran 'nautilus' from the command prompt, not in a GNOME desktop
> environment.

Normally, nautilus is built against mozilla-embedded, and thus depends
on libs in /usr/X11R6/lib/mozilla-embedded.  Since
/usr/X11R6/lib/mozilla-embedded isn't in the default ld search patch,
gnome-session was patched to automatically add it at login.  If you
built nautilus against full mozilla, then you need to apply the
following patch to /usr/ports/x11/gnomecore/files/patch-gsm::ice.c, and
rebuild gnomecore.

--- patch-gsm::ice.c.orig	Thu Feb 14 01:59:54 2002
+++ patch-gsm::ice.c	Thu Feb 14 02:51:46 2002
@@ -1,21 +1,27 @@
-
-$FreeBSD: ports/x11/gnomecore/files/patch-gsm::ice.c,v 1.2 2002/01/23 15:22:51 sobomax Exp $
-
---- gsm/ice.c.orig	Fri Oct 26 12:13:22 2001
-+++ gsm/ice.c	Tue Jan 22 16:28:18 2002
-@@ -343,6 +343,15 @@
+--- gsm/ice.c.orig	Fri Oct 26 05:13:22 2001
++++ gsm/ice.c	Thu Feb 14 02:51:27 2002
+@@ -343,6 +343,24 @@
  
    p = g_strconcat (ENVNAME "=", ids, NULL);
    putenv (p);
 +
-+  /* XXX: hack for embedded Mozilla */
++  /* XXX: hack for Mozilla */
 +  p = getenv ("LD_LIBRARY_PATH");
 +  if (p == NULL)
 +    p = "";
 +  else
 +    p = g_strconcat (p, ":", NULL);
 +  p = g_strconcat (p, X11BASE "/lib/mozilla-embedded", NULL);
++  p = g_strconcat (p, ":", NULL);
++  p = g_strconcat (p, X11BASE "/lib/mozilla", NULL);
 +  setenv ("LD_LIBRARY_PATH", p, 1);
++  p = getenv ("MOZILLA_FIVE_HOME");
++  if (p == NULL) {
++	  p = "";
++	  p = g_strconcat (p, X11BASE "/lib/mozilla", NULL);
++  }
++  setenv("MOZILLA_FIVE_HOME", p, 1);
++
    
    ice_depth = 0;	/* We are live */
  }

Alternatively, you can set LD_LIBRARY_PATH to /usr/X11R6/lib/mozilla,
and run nautilus from the command line (the same goes for
/usr/X11R6/lib/mozilla-embedded if you're not running gnome-session).

Joe

> 
> HTH,
> 
> --Stijn
> 
> -- 
> The rain it raineth on the just
> 	And also on the unjust fella,
> But chiefly on the just, because
> 	The unjust steals the just's umbrella.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1014052752.84830.9.camel>