LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2003, 07:09 AM   #1
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Rep: Reputation: 30
Finding program paths


What's the recognised way of installing software to be picked up in the default path?

I've installed Mozilla 1.4 in /usr/local/mozilla - should I add /usr/local/mozilla to my path, or (as I presume) should I create a link to the executable in another directory that's already in my path? If so where? An example would be really helpfull(;-))

Dave
 
Old 07-14-2003, 07:13 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Actually, Mozilla should install to a location in your PATH. However, out of the choices you've given, I'd have to go with a symlink approach. So first, find out what locations are in your PATH:
echo $PATH
Do this as a user. Then, as root, type:
ln -sf /usr/local/mozilla /usr/bin
Assuming /usr/local/mozilla is the executable mozilla file and /usr/bin shows up as being in your PATH.

But again, Mozilla should already be in your PATH, try a:
whereis mozilla
To find out.

Cool
 
Old 07-14-2003, 07:23 AM   #3
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Original Poster
Rep: Reputation: 30
Smile

Thanks again, masterc. Concise, helpfull rapid response.

Dave
 
Old 07-14-2003, 07:30 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You're welcome, did you get it sorted out and is it working?

Cool
 
Old 07-14-2003, 08:17 AM   #5
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Original Poster
Rep: Reputation: 30
Yes!

It's amazing how many small things like this you come across when learning something new - this forum, and the people behind it, are a godsend.

I'm looking at linux as a viable alternative to windows for desktop users - I'm about 90% there. I couldn't have done as much as I have without linuxquestions.org - hopefully, soon, I'll be able to put more back in...

Dave
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
finding program logfiles atom Linux - Software 3 08-10-2004 04:33 PM
mandrake 9.2 program installation paths?? zero-g Linux - General 0 04-19-2004 05:08 PM
program that generates relative paths? TheMaXX Linux - Software 1 10-21-2003 02:17 PM
Automatically resolving WINDOWS paths to pre-configured Linux paths gazzy Linux - General 1 09-05-2003 10:15 PM
Need help finding program - emailSMTP Brett-NZ Linux - Newbie 0 07-26-2003 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration