Can't execute outfiles
Im using rh9 and when i compile programs with both g++ i cannot execute the outfiles afterward, i.e.
$ g++ -o vacation vacation.cpp it compiles fine and produces a vacation outfile. When i try to run vacation it tells me vacation is not a command $ vacation bash: vacation: not a command I know that the program itself works since i can run it on my school rh9 and fedora core. I am curious if there is anything i need to do to make the executables run. Thanks |
well i am not sure why you would have to if you are in the folder that it exists in, but did you try typing :
./vacation ? |
by default (on my slack system)..if you're root, the current directoy is not in the search path. standard users should generally contain '.' in the search path tho...
you can create a ~/.bash_profile, ~/.bash_login or a ~/.profile with the contents of Code:
#!/bin/sh --jeremy |
All times are GMT -5. The time now is 12:23 PM. |