PDA

View Full Version : How to compile a source?



kapetanski
October 10th, 2005, 06:31 PM
I tested to compile a program for x according the instructions in the source but the executable won't run from a terminal, only when I doubleclick it hehe. I'am really new to linux, so I suppose there are some suitable directory to put the executable in, or should i specify output directory when I compile?

Zelut
October 10th, 2005, 06:57 PM
Well from my understanding Linux puts the /bin & /sbin (?) in the PATH for executables. If you want to run an executable that isn't in those directories you should be able to do it from the command line using ./<filename> or you could copy it to a directory that is in your path.

kapetanski
October 10th, 2005, 07:04 PM
thanx!, the command works