setting path, cant compile in C

Asked by Kinuthia

I have an executable file in /home/username/Shell_Scripts/bin and I want to use it without having to type the path name or cd to the bin directory. So I add PATH =$PATH:/home/username/Shell_Scripts/bin
export PATH to my .bashrc file. When I restart the terminal, it echoes PATH command not found. Then I try PATH = ${PATH}:/usr/Shell_Script/bin with the same results. Where am I going wrong? Help, please,please! By the way, am using the Gutsy. And still on the Gibbon why am not able to compile C programs through gcc samp.c -o samp ?Or when I run ./configure on shell scripts am told ' cannot create executables' ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Kinuthia
Solved:
Last query:
Last reply:
Revision history for this message
Albert Damen (albrt) said :
#1

For the PATH setting, please make sure there is no space between PATH and the = sign. So you should use PATH=$PATH:/home/username/Shell_Scripts/bin

To compile C programs, you will need to install package build-essential.

Hope it helps,
Albert

Revision history for this message
Kinuthia (qmuchane) said :
#2

Thanks a heap, Albert ! That worked like magic! Thanks again!