Results 1 to 6 of 6
Hi.
Sorry if it's off topic.
I was wondering... What do I have do to to not having to put ./ in front of a program i've made... To run ...
- 08-02-2009 #1
./ to run a program
Hi.
Sorry if it's off topic.
I was wondering... What do I have do to to not having to put ./ in front of a program i've made... To run the program, that is.
regards
- 08-02-2009 #2
You could edit your environmental variable, $PATH, to include the current directory, .
so, add something like this to your ~/.bash_profile
PATH=$PATH:.
but it is not really a good idea. If you want to have programs you've made be in your path, move them to their own directory (I suggest $HOME/bin ) and put THAT in your path,
add this to your ~/.bash_profile
PATH=$PATH:$HOME/bin
You want your path to be static, not dependent on relative paths, as it could cause things to act up, especialy if you start naming applications in 2 different areas by the same name.New to the internet, technical forums, or the hacker / open source community??
Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html
RHCE for RHEL version 5
RHCT for RHEL version 4
- 08-02-2009 #3
- 08-02-2009 #4Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
Another common thing is to place a symlink to a program in a directory in the path statement.
For example, typically, firefox installs in /usr/share/firefox or some distros spread it around (/usr/lib/firefox/firefox.sh), neither in the path statement, so to be able to invoke it from the CLI, there's a symlink in /usr/bin.
Code:dcat@Server:/mnt/hdb1/fdi> ls -l /usr/bin/firefox lrwxrwxrwx 1 root root 25 2009-04-18 08:46 /usr/bin/firefox -> ../lib/firefox/firefox.sh
- 08-04-2009 #5Just Joined!
- Join Date
- Aug 2009
- Posts
- 2
/configure file
i write sh file to install the software. they give some steps that are follows
1)tar xvfz myfile.tar.gz
2)cd myfile
3)./configure
4)make
5)make install
please give the explanation of these lines and give some code to a package to install the linux
- 08-04-2009 #6
Hello shunmugasundaram2007
Your post is off topic to the current thread. Please create your own thread detailing your problemLinux User #453176


