LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-24-2004, 04:32 PM   #1
abs
Member
 
Registered: Oct 2003
Posts: 203

Rep: Reputation: 30
can't run binary files


i think i might have messed up something while recompiling the 2.6.8.1 kernel. alot of programs won't run (in bash) with the ./ notation. i have to do $ sh file. i can't run binaries like the shogo demo but i can run firefox.

the message is typically 'permission denied' (from bash)

i guess it's coz i didn't support a.out binaries? even if that's why, thought i'd post this in case someone has a similar problem. they'll know why.

does anyone know how to compie just a single module in 2.6.x?. (assume make mrproper has been done). i ask coz the usual method of changing the SRCDIR var in the Makefile isn't really possible since that isn't really used. when i did try it (with the M= option) i got way too many errors. the steps for this would make a good tutorial since i know this is asked alot.

abs
 
Old 08-24-2004, 05:07 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
The executable permissions are not set for that file.
Post the permissions of the files your trying to execute.
 
Old 08-24-2004, 05:46 PM   #3
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
I would first suspect what michael is suggesting.
To answer your other question, I don't think you can recompile only one kernel module. You can though install modules and then have them included with the depmod command. This is common in some proprietary drivers.
 
Old 08-25-2004, 07:02 AM   #4
abs
Member
 
Registered: Oct 2003
Posts: 203

Original Poster
Rep: Reputation: 30
actually i should have metioned this earlier. the files have executable rights for user, owner is me, group is users. does it need to have group and or world exec rights? i.e. does it have to be 555 or 755?

isn't it supposed to be possible to compile just a single kernel module? situations where u forgot to add one and have finished bzImage and modules_install and make clean; all u have left is ur config file?

ty
abs
 
Old 08-25-2004, 01:37 PM   #5
abs
Member
 
Registered: Oct 2003
Posts: 203

Original Poster
Rep: Reputation: 30
one of the files is -r-x------ (500) and the other two are -rwxr-xr-x (755) owned by me(.users). can't run as myself or as root. getting that problem with some system binaries also, like 'watch'
 
Old 08-25-2004, 04:44 PM   #6
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Re: can't run binary files

Quote:
Originally posted by abs
i guess it's coz i didn't support a.out binaries? even if that's why, thought i'd post this in case someone has a similar problem. they'll know why.
This is possible but a.out binaries are fairly rare things; ELF has been far more common for quite a few years now. You can find out if a file is a.out or ELF (or what) by using the
Code:
file filename
command, assuming that you can get it to work.
 
Old 08-25-2004, 05:25 PM   #7
abs
Member
 
Registered: Oct 2003
Posts: 203

Original Poster
Rep: Reputation: 30
Re: Re: can't run binary files

Quote:
Originally posted by rjlee
assuming that you can get it to work.
lol. yeah. two files were bash scripts and the other was
Code:
setup: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
when i compiled my kernel, i used march=athlon-tbird. i know it's the equivalent of i686 but aren't there synonyms that handle that?

abs
 
Old 08-28-2004, 12:29 PM   #8
abs
Member
 
Registered: Oct 2003
Posts: 203

Original Poster
Rep: Reputation: 30
still not managed to get this working. any ideas what's causing this. i'm close to doing a re-install.
 
Old 08-28-2004, 02:10 PM   #9
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
What is your output for :

cat /usr/src/linux/.config | grep -i bin
 
Old 09-07-2004, 03:03 PM   #10
abs
Member
 
Registered: Oct 2003
Posts: 203

Original Poster
Rep: Reputation: 30
i'm guessing u're asking about this:
#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_AOUT=m
CONFIG_BINFMT_MISC=m

(sorry for the delayed reponse)

abs
 
Old 09-07-2004, 03:41 PM   #11
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
According to that, you have a.out support compiled as a module. Which means you just have to load the module. I guess that should be one of these commands:
Code:
modprobe binfmt_aout
Code:
modprobe aout
a.out binaries should work after doing that.

Hope that helps,

— Robert J. Lee
 
Old 01-20-2005, 06:24 PM   #12
abs
Member
 
Registered: Oct 2003
Posts: 203

Original Poster
Rep: Reputation: 30
is 'modprobe' an a.out binary? or is it na elf bin? if it is a.out, then i can't load the module required to run the command that loads the module :P

ty
abs
 
Old 01-21-2005, 01:56 AM   #13
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Code:
root@vbot mike # file /sbin/modprobe
/sbin/modprobe: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), stripped
It's an elf.
Why don't you just try it?

--Shade
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can we run the binary file directly kamesh156 Linux - General 1 10-17-2005 07:57 AM
Binary files sodaforce Linux - Software 1 09-07-2003 05:31 PM
Using binary files KDE4me Linux - Newbie 1 04-24-2003 08:00 AM
Why won't this binary run? islandkid Linux - General 15 09-01-2002 02:51 PM
How to run binary at booting time hai_rajneesh Linux - Software 2 06-23-2002 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration