You are not logged in.

#1 2008-06-02 15:46:59

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

[solved] Annoying executable problem

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

#2 2008-06-02 16:33:41

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [solved] Annoying executable problem

I assume you've checked the permissions: 'ls -l foo' and that the executable flag is still on.

Offline

#3 2008-06-02 19:50:54

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: [solved] Annoying executable problem

yeah, it was a permission problem

protip: make sure you build in a directory/partition that has executable permission

Offline

#4 2008-06-02 22:54:41

Zepp
Member
From: Ontario, Canada
Registered: 2006-03-25
Posts: 334
Website

Re: [solved] Annoying executable problem

NoOneImportant wrote:

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

Board footer

Powered by FluxBB