<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN">
<HTML
><HEAD
><TITLE
>How do I put GNOME someplace special, like
      /opt/gnome?</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet"><LINK
REL="HOME"
TITLE="GNOME Frequently Asked Questions"
HREF="index.html"><LINK
REL="UP"
TITLE="Compiling GNOME"
HREF="compilinggnome.html"><LINK
REL="PREVIOUS"
TITLE="OK, I've got a Makefile now. How do I get GNOME on my
      system?"
HREF="x377.html"><LINK
REL="NEXT"
TITLE="How do I compile GNOME with all the files in the right
      place for FHS Compliance?  How do I relocate GNOME's etc and var
      directories to easily network GNOME?"
HREF="fhs.html"></HEAD
><BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>GNOME Frequently Asked Questions</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x377.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Compiling GNOME</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="fhs.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN394"
>How do I put GNOME someplace special, like
      <TT
CLASS="FILENAME"
>/opt/gnome</TT
>?</A
></H1
><P
>Many people like to put GNOME off by itself, in its own
      directory.  Doing this makes it easier to uninstall in an
      emergency, easier to control who has access to GNOME, it lets
      you export the gnome directory to other systems, and so on. To
      do this requires a little bit of preparation, and knowledge of
      your system.  For this discussion, I'll be putting GNOME in the
      <TT
CLASS="FILENAME"
>/opt/gnome</TT
> directory.  Just replace
      <TT
CLASS="FILENAME"
>/opt/gnome</TT
> with whatever other directory
      you want.</P
><P
>The biggest issue are making sure the system can find the
      GNOME binaries in <TT
CLASS="FILENAME"
>/opt/gnome/bin</TT
>, the
      libraries in <TT
CLASS="FILENAME"
>/opt/gnome/lib</TT
>, and the man
      files in <TT
CLASS="FILENAME"
>/opt/gnome/man</TT
>.</P
><P
>To tell the system to look into
      <TT
CLASS="FILENAME"
>/opt/gnome/bin</TT
> to find the GNOME binaries,
      just make sure it is included in the <TT
CLASS="ENVAR"
>PATH</TT
>
      environment variable.  For example:
      <TT
CLASS="USERINPUT"
><B
>PATH="/bin:/usr/bin:/opt/gnome/bin"</B
></TT
>.</P
><P
>Then, you generally need to tell the loader where to find
      the libraries.  On most commercial Unixes, you add
      <TT
CLASS="FILENAME"
>/opt/gnome/lib</TT
> to the environment variable
      <TT
CLASS="ENVAR"
>LD_LIBRARY_PATH</TT
>, in the same manner as
      <TT
CLASS="ENVAR"
>PATH</TT
>, above.  On some systems, you use
      <TT
CLASS="ENVAR"
>LD_RUN_PATH</TT
> instead.  On systems using ELF format
      binaries, such as GNU/Linux or FreeBSD, you add the
      library path to the file <TT
CLASS="FILENAME"
>/etc/ld.so.conf</TT
>,
      and run <B
CLASS="COMMAND"
>ldconfig</B
>.  On statically linked
      systems, you don't have to worry about any of the above, but buy
      more hard drive space, you are sure to need it.  Consult your
      system documentation if you are unsure how to tell the loader
      which directories to search.</P
><P
>You also should tell man where to find man pages installed
      by GNOME.  Simply insert a line into
      <TT
CLASS="FILENAME"
>/etc/man.config</TT
>, saying <TT
CLASS="USERINPUT"
><B
>MANPATH
      /opt/gnome/man</B
></TT
>.</P
><P
>The other issue is there are a couple of directories which
      GNOME will put things in, which would be better put elsewhere.
      The easiest way of doing this is with symbolic links.  Type the
      following:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>mkdir /opt/gnome/share</B
></TT
>
<TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>cd /opt/gnome/share</B
></TT
>
<TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>ln -s /usr/share/locale locale</B
></TT
>
<TT
CLASS="PROMPT"
>$</TT
> <TT
CLASS="USERINPUT"
><B
>ln -s /usr/share/aclocal aclocal</B
></TT
></PRE
></TD
></TR
></TABLE
><P
>Now you're all set to use <TT
CLASS="FILENAME"
>/opt/gnome</TT
>
      as a prefix when compiling.  To do this, just give the
      <B
CLASS="COMMAND"
>./configure</B
> command the option
      <SPAN
CLASS="OPTION"
>--prefix=/opt/gnome</SPAN
>.  Of course, if you want
      someplace special other than <TT
CLASS="FILENAME"
>/opt/gnome</TT
>,
      just replace it with the directory you do want in all the
      instances above.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x377.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="fhs.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>OK, I've got a Makefile now. How do I get GNOME on my
      system?</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="compilinggnome.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>How do I compile GNOME with all the files in the right
      place for FHS Compliance?  How do I relocate GNOME's etc and var
      directories to easily network GNOME?</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>