LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-17-2003, 05:10 AM   #1
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Rep: Reputation: 30
How to make a path for a program?


Yo!

(this may have been posted twice, sorry, but I cant find the first post.)


How to make a path for a program? I have installed such a program as BRL-CAD, but cannot run it.

I have included some instruction, but I dont understand them fully.

Please advice a newbie.

-Tommi







Updating Your Search Path
Bourne Shell (/bin/sh)
If you are a Bourne Shell user (/bin/sh, generally the default shell on most systems), you will need to edit your ".profile" file, and modify the PATH variable to include the full path name of your "bin" directory (BINDIR). In the editor, look for a line that looks something like:
PATH=/usr/ucb:/bin:/usr/bin:/usr/local/bin::

and add the path name of your "bin" directory after the equals ("=") sign. In this example, the new form would look like one of the two lines below; the first line is the example non-production form, and the second line is the production form.
PATH=/a/d/mike/bin:/usr/ucb:/bin:/usr/bin:/usr/local/bin::

PATH=/usr/brlcad/bin:/usr/ucb:/bin:/usr/bin:/usr/local/bin::

where the full path name for the "bin" directory has been added to the front of your PATH specification. Then, you must run:
. .profile

(dot space dot-profile) to have the Shell set up your new PATH specification.
 
Old 06-17-2003, 05:43 AM   #2
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
I am kind of against adding files to my path. I usually just cd to the dir and issue
$./program_name
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make sure something is in right path? Ken1015 Linux - Newbie 3 09-03-2005 09:02 PM
can i make a script or program make a phone call? nephish Linux - Software 2 08-15-2005 09:02 PM
i make a program using forte how can i generate from that program an rpm abdelhlims Programming 0 07-13-2004 12:10 PM
How to make a path for a program? Tommi Linux - Software 12 06-19-2004 05:38 PM
How to make PATH? tommilaiho Linux - Software 4 12-01-2003 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:50 AM.

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