LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question about installing and running programs (https://www.linuxquestions.org/questions/linux-newbie-8/question-about-installing-and-running-programs-185120/)

BRoscoL 05-24-2004 04:33 AM

Question about installing and running programs
 
I just recently installed Mozilla Firefox on Mandrake 9.2 and I moved the firefox directory into /usr/local/lib . My Question is, is there a way to be able to type in "firefox" into a console command line like I would type "mozilla" and get firefox to pop up? Thanks in advance. :D

muxman 05-24-2004 04:44 AM

Make sure the directory containing the firefox binary is in your PATH variable. If not you need to add it to your PATH.

Type:

echo $PATH

This will show you the current users PATH. If you need to edit your PATH that may be different from one distribution to another. I'm using Debian and it's in my .profile file in the current users home directory.

BRoscoL 05-24-2004 04:49 AM

I did the echo $PATH command and this was the output:

root@localhost tmp]# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin

Any tips on where to go from here? My firefox directory is contained in /usr/local/lib. Should I move the whole directory over to /usr/local/bin or is there another way?

BRoscoL 05-24-2004 05:30 AM

Ahh, Finally figured it out. So I am not a "complete" moron... Emphasis on the complete :-)

eeried 05-24-2004 09:44 AM

Er, Im quite interested by this thread.

How do you get mozilla (or firefox) to run by simply typing mozilla or firefox?

I've installed both Mozilla 1.6 and firefox0.8 from the .tar.gz files into /usr/local.
To run mozilla i type (as a user) :
/usr/local/mozilla/mozilla

Thanks in advance fo your help!

or1onas 05-24-2004 09:51 AM

You could also create a symbolic link to one of your $PATH directories by typing:
'ln -s /usr/local/lib/mozilla /usr/bin'.
The first path is the application's real path and the second one is where the link is to be created. Because /usr/bin is included in your $PATH, you can just run 'mozilla' from KDE's run command...

eeried 05-24-2004 01:56 PM

Ah, okay, thanks or1onas.

What I did before reading your mail was create a sym link to my home directory, and it works fine with mozilla -- it doesn't with firefox, I must have done someting wrong.

I don't often use KDE, and simply typing mozilla in the console did the trick.

Cheers


All times are GMT -5. The time now is 10:03 PM.