LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   installing problem (https://www.linuxquestions.org/questions/linux-software-2/installing-problem-595785/)

anillinx 10-30-2007 09:19 AM

installing problem
 
when i try to run ./configure command i get "bash:'./configure' not a command" ... can anyone pls help me out. i have suse linux10.2 system.

indienick 10-30-2007 09:47 AM

When you specify the "./" before configure, that equates to "Don't look at the $PATH environment variable; only look in the current directory".

So, when you type "./configure" it's trying to find an executable ("chmod 755 file") file named "configure" in the current directory. If there is a file called "configure" in the current directory and it's not marked executable, you can be lazy and not chmod it: "sh configure" - which just passes it through the shell (NOTE: 99% of the time, "sh" is symlinked to "bash") as an interpreted script.

anillinx 11-02-2007 10:54 PM

[QUOTE=indienick;2942278]When you specify the "./" before configure, that equates to "Don't look at the $PATH environment variable; only look in the current directory".

So, when you type "./configure" it's trying to find an executable ("chmod 755 file") file named "configure" in the current directory. If there is a file called "configure" in the current directory and it's not marked executable, you can be lazy and not chmod it: "sh configure" - which just passes it through the shell (NOTE: 99% of the time, "sh" is symlinked to "bash") as an interpreted script.[/QUote/]



thank u for the help...i'll try that

indienick 11-06-2007 01:17 PM

:) You're very welcome. You will be able to tell immediately if the directory you're currently in has a file called "configure" in it. Just type "ls" (without the quotes) and you'll see all of the files in the PWD (Present Working Directory - ie. the current directory).

If you have colouring turned on with ls, this makes it even easier as executable files are highlighted green! Although this is completely beyond the original question, to turn colouring on with ls:
Code:

$ echo "alias ls=\'ls --color=auto\'" >> ~/.bashrc
I hope that's right...(I'm at work right now, and can't test it).
Alternately, just add a line to the end of your .bashrc file in your home directory (~):
Code:

alias ls='ls --color=auto'


All times are GMT -5. The time now is 03:30 AM.