You are not logged in.
Pages: 1
It seems that ever since I switched to zsh (from bash) I have not been able to execute apps that I have coded and compiled with gcc.
For example, if I run ./foo I get "permission denied" and if I run with sudo I get "command not found." I can't even run the app from gdb.
Is anyone familiar with this problem?
[edit]: by the way, apps that I have installed with pacman work just fine. for example, if I go to /usr/bin and enter ./vim then vim starts up
[edit]2: the same problem happens with bash
Last edited by NoOneImportant (2008-06-02 19:51:07)
Offline
I assume you've checked the permissions: 'ls -l foo' and that the executable flag is still on.
Offline
yeah, it was a permission problem
protip: make sure you build in a directory/partition that has executable permission
Offline
yeah, it was a permission problem
protip: make sure you build in a directory/partition that has executable permission
You can't even cd to a directory that does not have execute permission, kind of odd that your directory would not have it. Also I thought gcc usually set executables it generated to executable?
Offline
Pages: 1