LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How fix "Exec format error"? (https://www.linuxquestions.org/questions/slackware-14/how-fix-exec-format-error-4175648324/)

gregors 02-14-2019 05:02 PM

How fix "Exec format error"?
 
Hi there!

My computer runs Slackware 14.2 and is unable to run the Arduino IDE and Blender:

Code:

gszaktilla@mimi:~/test/blender-2.79b-linux-glibc219-x86_64>./blender
bash: ./blender: cannot execute binary file: Exec format error
gszaktilla@mimi:~/test/blender-2.79b-linux-glibc219-x86_64>~/bin/arduino-1.8.8/arduino
/home/gszaktilla/bin/arduino-1.8.8/arduino: line 35: /home/gszaktilla/bin/arduino-1.8.8/java/bin/java: cannot execute binary file: Exec format error
gszaktilla@mimi:~/test/blender-2.79b-linux-glibc219-x86_64>

What is going wrong here and how can I fix it?

TIA

Gregor

chris.willing 02-14-2019 05:24 PM

What architecture is your cpu? (run uname -m to find out). This problem is often due to running 64bit programs on 32bit machines.

chris

gregors 02-14-2019 05:33 PM

Quote:

Originally Posted by chris.willing (Post 5962165)
What architecture is your cpu? (run uname -m to find out). This problem is often due to running 64bit programs on 32bit machines.

uname -m returns

Code:

i686
Before moving to Slackware my computer ran with Debian - Arduino and Blender were working fine.

Regards,

Gregor

chris.willing 02-14-2019 05:44 PM

Quote:

Originally Posted by gregors (Post 5962169)
uname -m returns

Code:

i686
Before moving to Slackware my computer ran with Debian - Arduino and Blender were working fine.

I guess you installed the 32bit version of Slackware instead of the 64bit version.

chris

gregors 02-14-2019 06:10 PM

Quote:

Originally Posted by chris.willing (Post 5962175)
I guess you installed the 32bit version of Slackware instead of the 64bit version.

I find that very unlikely - but when dealing with computers one never knows ...

Can I check that without explicitly installing the 64 Bit version?

Regards,

Gregor

Didier Spaier 02-14-2019 06:20 PM

Quote:

Originally Posted by gregors (Post 5962184)
Can I check that without explicitly installing the 64 Bit version?

You did already. The output you got of uname -m "i686" says you are running a 32-bit system, else the output would have been "x86_64".

gregors 02-14-2019 06:25 PM

Quote:

Originally Posted by Didier Spaier (Post 5962186)
You did already. The output you got of uname -m "i686" says you are running a 32-bit system, else the output would have been "x86_64".

Uh ... right. Shit.

So I'll have to reinstall Slackware ... and check why I did install the wrong version.

Thanks a lot!

Gregor

montagdude 02-14-2019 06:41 PM

If you installed from the DVD, I believe I heard they are double sided, with 32 bit on one side and 64 on the other. I could be wrong though. I don't have a DVD set to check.

(Incidentally, when Slackware 14.2 came out, I mistakenly ordered the 32 bit CD set instead of the 64 bit one, or someone messed up my order. Doesn't matter now since the store is no more. It was intended as a donation anyway, but that's another story.)

gregors 02-14-2019 06:48 PM

Quote:

Originally Posted by montagdude (Post 5962192)
If you installed from the DVD, I believe I heard they are double sided, with 32 bit on one side and 64 on the other. I could be wrong though. I don't have a DVD set to check.

I installed from an ISO I downloaded. I hope this time I'll pick the right one (https://slackware.nl/slackware/slackware64-current-iso/)

Regards,

Gregor

Gordie 02-14-2019 06:59 PM

Quote:

Originally Posted by gregors (Post 5962196)
I installed from an ISO I downloaded. I hope this time I'll pick the right one (https://slackware.nl/slackware/slackware64-current-iso/)

Regards,

Gregor

https://mirrors.slackware.com/slackw...re64-14.2-iso/

dugan 02-14-2019 07:08 PM

There's a very useful script called "mirror-slackware-current.sh", which you can use to build your own -current ISO:

http://www.slackware.com/~alien/tools/

The documentation is in comments in the script itself.


All times are GMT -5. The time now is 11:29 AM.