Click to See Complete Forum and Search --> : C++
I'm extremely new to Linux. But I made it through my first install and now I am trying to get some dev type of stuff setup. Here is my problem. I can compile my code fine...but I can't seem to get any of my apps to execute. I get no error or nothing. Just when I run the executable nothing happens. I don't know if this is the right forum but can anyone help this poor newbie.
MadK
Malakin
09-10-2001, 03:25 PM
I'll take a guess, stick a "\n" on the end of your output. If this solves it, this isn't the normal behavior in Linux just under the specific terminal you're using.
LinuxAnt
09-10-2001, 03:28 PM
you should probably post this in the
Programming, Script Depot but,
make sure the permissions on the file are set to execute
try ls -l
you should see something like
anthony@jester.cert.ucr.edu[12:26pm]~/bin
==>ls -l
total 4
-rwxr--r-- 1 anthony admin 225 Sep 7 16:54 reqsys
pay attention to the
-rwxr--r--
make sure your executable has and an x in the fourth position from the left
if it doesn't
type
==>chmod 744 /your_exec_name.ext
Hope this helps
lilrabbit129
09-10-2001, 03:30 PM
try this... if your executable is named "run"
instead of just typing run... try
"./run"
Thanks a lot. The "./" thing worked like a charm. Not one more thing...could someone explain why and or how this is? What does ./ do? Thanks in advance.
MaDK
bdg1983
09-12-2001, 04:03 AM
Linux unlike Dos will not search the current working directory for the command as it only searches what is defined in your $PATH.
./ tells the shell to search the current directory.
Dos searches what is defined in $PATH and also the current working directory.
As a side note. There is also ~/, which uses users home directory in path.