Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
For unknown reasons I am no longer able to compile programs. When I run
Code:
./configure
script from _ANY_ project i get only:
Code:
bash: ./configure: /bin/sh: bad interpreter: Permission denied
So I run it through:
Code:
sh ./configure
but it ends at:
Code:
checking whether the C compiler works... configure: error: cannot run C compiled programs.
I've checked config.log, and found:
Code:
configure:2823: checking whether the C compiler works
configure:2829: ./a.out
./configure: line 2830: ./a.out: Permission denied
configure:2832: $? = 126
configure:2841: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
Same is when running as root. Any ideas?
suse 9.2 prof
gcc version 3.3.4 (pre 3.3.5 20040809)
I've compiled many apps on this machine just few weeks ago...
ljubomir@Fidel:~> gcc --version
gcc (GCC) 3.3.4 (pre 3.3.5 20040809)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ljubomir@Fidel:~>
it might. Also worth updating: the C library (`glibc[something]', iirc). I expected `echo $?' to return `0'; why it doesn't fails me, but I think it might be the C library. Post the output of `gcc -S foo.c && cat foo.s'
Also, it struck me: why is /bin/sh a bad interpreter? Not present? bad chmod?
I have this problem myself if I try to compile out of my "storage" partition. If I move the source back into my root partition, problem goes away. I've never really investigated it so I'm not sure what it is, but ( in my case) it must be something with how I'm mounting my storage partition
This problem can be caused by trying to execute code residing on a partition which has been mounted with 'noexec' set.
To check issue the mount command and check for the 'noexec' option against the partition your code is on :
e.g. etlnhl@Roland:~> mount
proc on /proc type proc (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda1 on /Data_120_C type reiserfs (rw,noexec,acl,user_xattr)
To fix, unmount the partition - umount /Data_120_C (make sure that nothing is using the partition i.e check that no shell or filemanager is currently open at a directory on that partition) and then remount it with the noexec option
e.g. etlnhl@Roland:~> mount /dev/hda1 /Data_120_C -o noexec
If you get an error such as the command complaining that you do not have permission or are not root then you will either have to mount the partition as root or change the /etc/fstab entry to include the option 'users'
Regardless you will need to edit your /etc/fstab file to create a permanent fix.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.