You are not logged in.
Pages: 1
I am operating ASCII software of Devuan.
And I am getting this error:
cannot execute binary file: Exec format error
when I try to execute a file I need to run,.
I cant find a fix?
Any help?
Offline
more info perhaps... (?) what file? ascii 64/32 ?
Offline
asc11 64. And its any file I make up and make bootable. It wont work.
I get this error.
What a life, eh? Must be a fix out there somewhere.
Offline
still not helping to find a fix.
post here the output of :
uname -a
file /path/to/executable_file
and how you try to run it ...
Offline
asc11 64. And its any file I make up and make bootable.
Make bootable? Or did you mean "make executable"?
Are you trying to boot a 64-bit OS on a 32-bit system?
Offline
What a life, eh? Must be a fix out there somewhere.
Quite sure Keep sending us information.
Offline
still not helping to find a fix.
post here the output of :
uname -a
file /path/to/executable_fileand how you try to run it ...
Here is what uname -a shows:
Linux ve1drg 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64 GNU/Linux
And the file is any file I decide to make up and execute... or boot as I said. No file will run or execute. I get that error with any file that I set up and give it a chmod value of 755. Chown is ve1drg.ve1drg
Hope this helps..
Offline
And the file is any file I decide to make up and execute... or boot as I said. No file will run or execute.
^ This is far too vague. Please give us a concrete example and include the entire contents of the file along with the exact method(s) you used to "run or execute" it. Also provide the output of the requested file command when run on your example executable.
Brianna Ghey — Rest In Power
Offline
OK. Here is the file I would like to execute. Or run. Or whatever..
It is the file called linbpq found in the g8bpq directory. I can't post it here because I dont know how to attach it to this message. Must be a way. But cant figure it out.
It is an executable file and is normally run using ./linbpq.
Of course when that file runs it brings up a G8BPQ BBS.
I even tried using 'source linbpq' and that gave me the same error.
The file will not run.
But a few days ago it ran just fine. I had that program on another distribution (Jessie) and it worked there.
Maybe Ascii is just too tough for this little file, eh?
Offline
Just further to the above....here is what I see when I run this file. It is a binary file.
bash: source: linbpq: cannot execute binary file
-rwxr-xr-x 1 root root 3487264 Oct 9 10:58 linbpq
Offline
It is rather frustrating that we have to ask this three times but can we please see the output of
file linbpq
And also explain from where you obtained this mysterious binary file.
EDIT: the output of this command would also be useful:
ldd linbpq
Last edited by Head_on_a_Stick (2020-10-20 05:36:25)
Brianna Ghey — Rest In Power
Offline
-rwxr-xr-x 1 root root 3487264 Oct 9 10:58 linbpq
Please forgive me if I'm asking a stupid question (it wouldn't be the first time), but does that line mean that the file is owned/must be run by root?
ComputerBob - Making Geek-Speak Chic (TM)
ComputerBob.com - Nearly 6,000 Posts and 22 Million Views since 1998
My Massive Stroke
Help! (off-topic)
Offline
-rwxr-xr-x 1 root root 3487264 Oct 9 10:58 linbpq
Please forgive me if I'm asking a stupid question (it wouldn't be the first time), but does that line mean that the file is owned/must be run by root?
Nope, the 'x' at the end means that 'others' have execution privileges. rwxr-xr-x means owner has full privileges, group has read/execute, and other has read/execute.
Offline
if the below is what you're trying to run, its 32bit only.. so install a ascii i386 (could also do that in a vm) and retry.. it won't run on x86_64.
https://www.cantab.net/users/john.wisem … INBPQ.html
Offline
@ve1drg: Do you understand what you're being asked to do?
Enter "file linbpq" at the command line prompt and post output here.
Offline
It is rather frustrating that we have to ask this three times but can we please see the output of
file linbpq
And also explain from where you obtained this mysterious binary file.
EDIT: the output of this command would also be useful:
ldd linbpq
root@ve1drg:/BPQbbs/ve3bwm# ldd linbpq
not a dynamic executable
??? what does that mean? Other than, is this why the program is not executable..
Offline
@ve1drg: Do you understand what you're being asked to do?
Enter "file linbpq" at the command line prompt and post output here.
root@ve1drg:/BPQbbs/ve3bwm# file linbpq
linbpq: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=4634defa908c142e8292a701a0babd769a381cea, not stripped
Does this say that this is a 32 bit file?
I just downloaded it. Saying this was a 64bit file??
How.. how can I run a 32 bit file in a 64 bit machine?
Offline
Finally! That was like getting blood out of a stone
Does this say that this is a 32 bit file?
Yes.
how can I run a 32 bit file in a 64 bit machine?
Use a VM or multiarch but for the latter you will need to know which 32-bit libraries are needed to run the executable so see https://superuser.com/questions/908377/ … ont-report for a way to get ldd working so you can find those.
Brianna Ghey — Rest In Power
Offline
I tried that line:
RTLDLIST="/lib/ld-linux.so.2 /lib64/ld-linux-x86-64.so.2 /libx32/ld-linux-x32.so.2"
and with the 32 bit change:
RTLDLIST="/lib32/ld-linux.so.2 /lib64/ld-linux-x86-64.so.2 /libx32/ld-linux-x32.so.2"
No change.
Those / that file will still not run,
<>
Offline
So did you enable multiarch and install the 32-bit version of the libc-bin package? Those lines won't work if the files it references are not present in your system.
Brianna Ghey — Rest In Power
Offline
ComputerBob wrote:-rwxr-xr-x 1 root root 3487264 Oct 9 10:58 linbpq
Please forgive me if I'm asking a stupid question (it wouldn't be the first time), but does that line mean that the file is owned/must be run by root?
Nope, the 'x' at the end means that 'others' have execution privileges. rwxr-xr-x means owner has full privileges, group has read/execute, and other has read/execute.
Thank you! That makes sense!
ComputerBob - Making Geek-Speak Chic (TM)
ComputerBob.com - Nearly 6,000 Posts and 22 Million Views since 1998
My Massive Stroke
Help! (off-topic)
Offline
@ve1drg: Do you understand what you're being asked to do?
Enter "file linbpq" at the command line prompt and post output here.
linbpq: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=0d6a50412cd7cfe0f477184bfb233016e360f5e4, not stripped
Offline
Good. Now what is the output of "uname -m"? On my machine:
[6] bryan: uname -m
x86_64
[7] bryan:
If it turns out you have a 64 bit machine like mine, then I think you need to either get a 64 bit version of your file or install a multiarch capability - i.e the files and libraries needed to support 32 bit code on a 64 bit machine.
Good luck
Offline
Pages: 1