The officially official Devuan Forum!

You are not logged in.

#1 2020-10-19 01:26:45

ve1drg
Member
Registered: 2020-04-29
Posts: 38  

Execuable files not running...

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

#2 2020-10-19 08:49:34

xinomilo
Unknown
Registered: 2017-07-02
Posts: 315  

Re: Execuable files not running...

more info perhaps... (?) what file?  ascii 64/32 ?

Offline

#3 2020-10-19 13:03:07

ve1drg
Member
Registered: 2020-04-29
Posts: 38  

Re: Execuable files not running...

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

#4 2020-10-19 13:22:16

xinomilo
Unknown
Registered: 2017-07-02
Posts: 315  

Re: Execuable files not running...

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

#5 2020-10-19 15:08:33

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: Execuable files not running...

ve1drg wrote:

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

#6 2020-10-19 16:23:46

PedroReina
Member
From: Madrid, Spain
Registered: 2019-01-13
Posts: 267  
Website

Re: Execuable files not running...

ve1drg wrote:

What a life, eh?  Must be a fix out there somewhere.

Quite sure smile Keep sending us information.

Offline

#7 2020-10-19 18:45:54

ve1drg
Member
Registered: 2020-04-29
Posts: 38  

Re: Execuable files not running...

xinomilo wrote:

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 ...

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

#8 2020-10-19 19:31:53

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Execuable files not running...

ve1drg wrote:

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

#9 2020-10-19 23:10:25

ve1drg
Member
Registered: 2020-04-29
Posts: 38  

Re: Execuable files not running...

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

#10 2020-10-19 23:17:18

ve1drg
Member
Registered: 2020-04-29
Posts: 38  

Re: Execuable files not running...

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

#11 2020-10-20 05:35:21

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Execuable files not running...

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

#12 2020-10-20 11:38:49

ComputerBob
Member
From: The Sunshine State
Registered: 2018-10-11
Posts: 81  
Website

Re: Execuable files not running...

-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)

Online

#13 2020-10-20 12:03:03

sgage
Member
Registered: 2016-12-01
Posts: 339  

Re: Execuable files not running...

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.

Offline

#14 2020-10-20 12:40:50

xinomilo
Unknown
Registered: 2017-07-02
Posts: 315  

Re: Execuable files not running...

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

#15 2020-10-20 17:31:09

bbatten
Member
Registered: 2017-07-02
Posts: 54  

Re: Execuable files not running...

@ve1drg: Do you understand what you're being asked to do?

Enter "file linbpq"  at the command line prompt and post output here.

Offline

#16 2020-10-20 17:32:49

ve1drg
Member
Registered: 2020-04-29
Posts: 38  

Re: Execuable files not running...

Head_on_a_Stick wrote:

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

#17 2020-10-20 17:34:50

ve1drg
Member
Registered: 2020-04-29
Posts: 38  

Re: Execuable files not running...

bbatten wrote:

@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

#18 2020-10-20 17:54:53

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Execuable files not running...

Finally! That was like getting blood out of a stone roll

ve1drg wrote:

Does this say that this is a 32 bit file?

Yes.

ve1drg wrote:

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

#19 2020-10-20 18:03:54

ve1drg
Member
Registered: 2020-04-29
Posts: 38  

Re: Execuable files not running...

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

#20 2020-10-20 18:19:45

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Execuable files not running...

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

#21 2020-10-20 21:20:27

ComputerBob
Member
From: The Sunshine State
Registered: 2018-10-11
Posts: 81  
Website

Re: Execuable files not running...

sgage wrote:
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!  wink


ComputerBob - Making Geek-Speak Chic (TM)
ComputerBob.com - Nearly 6,000 Posts and 22 Million Views since 1998
My Massive Stroke
Help! (off-topic)

Online

#22 2020-10-21 12:32:41

ve1drg
Member
Registered: 2020-04-29
Posts: 38  

Re: Execuable files not running...

bbatten wrote:

@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

#23 2020-10-21 19:19:41

bbatten
Member
Registered: 2017-07-02
Posts: 54  

Re: Execuable files not running...

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

Board footer