Hallo zusammen,
ich bin mit Computern eingentlich recht vertraut, und Programier nun schon seit mehreren Jahren professionel Software für Windows unter VB, bzw VB.NET. Da ich aber Privat nur noch Linux (genauer Debian und Ubuntu) nutz, wollt ich nun endlich mal C und später C++ richtig lernen. Natürlich auf meinem Lieblings OS. Also hab ich mich mal auf blöd hingesetzt und ein kleines hello-world gebastelt. Und das kam dabei raus:
tobi@ubuntu-work:/media/localdata/TobiLerntC/HelloWorld$ cat hallo.c #include <stdio.h> int main(void) { printf("Hello World\n"); return 0; } tobi@ubuntu-work:/media/localdata/TobiLerntC/HelloWorld$ gcc -Wall -ggdb hallo.c -o hallo tobi@ubuntu-work:/media/localdata/TobiLerntC/HelloWorld$ ./hallo bash: ./hallo: Permission denied tobi@ubuntu-work:/media/localdata/TobiLerntC/HelloWorld$ chmod a+x hallo tobi@ubuntu-work:/media/localdata/TobiLerntC/HelloWorld$ ls -l insgesamt 12 -rwxr-xr-x 1 tobi tobi 7250 2008-01-03 22:48 hallo -rw-r--r-- 1 tobi tobi 76 2008-01-03 22:47 hallo.c -rw-r--r-- 1 tobi tobi 0 2008-01-03 22:44 hallo.c~ tobi@ubuntu-work:/media/localdata/TobiLerntC/HelloWorld$ ./hallo bash: ./hallo: Permission denied tobi@ubuntu-work:/media/localdata/TobiLerntC/HelloWorld$
Ok und wo liegt nun der Fehler? das Ausführen Flag is doch auf der Datei gesetz! Wieso "Permission denied"?!
Ich versteh das grad nicht. Zugegeben es ist spät, und ich bin müde, aber sowas?
Wer weiß da weiter?
Gruß
imker