Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-07-2010, 12:30 AM   #1
LQ Newbie
Registered: Nov 2010
Location: Utah
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 0
Unhappy Setting an executable to be in another's path

I have program (command line) that requires another program be installed and in its path. So I downloaded the file (.tgz), and extracted. I followed the compile and make instructions and ended up with a folder on my desktop that contains the excutable but is not in the path of the the other program. How can I do this..I think that I have about 20 more .tgz files to do this with.
Old 12-07-2010, 12:50 AM   #2
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,227

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
whata ya mean by in the path of the other program? did you run make install as root? make install copies the files in the global path
Old 12-07-2010, 01:06 AM   #3
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Before running your program:
export PATH="<path of folder on your desktop that contains the executable>:$PATH"
But why did the other program install on your desktop?

EDIT: as frieza said about installs normally installing executables to directory/ies in the conventional $PATH.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
php executable path linuxown Linux - Software 7 06-01-2009 01:46 AM
getting the path of the running executable lorebett Programming 17 04-15-2009 11:48 AM
Executable file path problem jinics Linux - General 5 02-22-2007 07:51 AM
Path of the executable brainstormingin Programming 4 03-25-2004 10:24 PM
Executable, but not in path. Sledge Red Hat 0 12-03-2003 09:48 PM > Forums > Linux Forums > Linux - Newbie

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

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