<quote who="Adam F. Bogacki">

> I followed the Mozilla Install Instructions, creating a directory called
> 'mozilla' and moving the tar.gz file into it.
>                                       mkdir mozilla
>                                       mv mozilla*.tar.gz mozilla


Was this in your home directory or...?

The way I do it is this:

 * Grab the normal binary tarball (not the installer).

 * cd ~/bin (~ means my home directory, so really: /home/jdub/bin)

 * tar -xzvf <the mozilla tarball> .

   [ this leaves me with /home/jdub/bin/package, which is where the
   'mozilla' binary is. ]

 * I have a mozilla script in my ~/bin directory, which contains:

   #!/bin/sh
   exec ~/bin/package/mozilla

 * And I have my ~/bin directory in my path, which is always useful anyway.

Then, when I run 'mozilla', I get *my* mozilla. :)


It sounds like you need a quick rundown on paths and such... Grab your
nearest terminal, and type 'echo $PATH'. Mine looks like this:

  /home/jdub/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

When you type a command in, the shell will try to find it in each of those
directories successively. So if I typed, say, 'xvidtune', the shell would
try to find it in each directory, until it hit /usr/bin/X11, as the binary
is in there.

You'll notice that in $PATH, there's no reference to the current directory,
ie. '.'. This means that, if what you're trying to run isn't otherwise in
the path, and you're trying to invoke the command *in* the same directory,
it won't be found. You need to explicitly invoke the command with its path.

Thus, ./command (current directory, command)


Example:

lazarus: ~
$ cd ~/src/gnome/ipsc/src

lazarus: ~/src/gnome/ipsc/src
$ ls -la gipsc
-rwxr-xr-x    1 jdub     jdub         313k Dec 28 15:02 gipsc

lazarus: ~/src/gnome/ipsc/src
$ gipsc
bash: gipsc: command not found

lazarus: ~/src/gnome/ipsc/src
$ ./gipsc

(And up pops a reasonably good GTK+/Gnome subnet calculator.)


Extra credit for the person who explains why '.' isn't in everyone's $PATH
by default.

- Jeff


-- [EMAIL PROTECTED] ------------------------------- http://linux.conf.au/ --

        "The ability to procrastinate is what separates us from the         
                machines." - Chris Gregory, Desktop Magazine                


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to