Cannot execute binary file on linux.

General help and assistance forum.
Post Reply
Aleksanderus
New User
Posts: 14
Joined: Sat May 21, 2016 6:02 pm

Cannot execute binary file on linux.

#1

Post by Aleksanderus » Wed Jun 15, 2016 8:29 am

When I try to open zandronum on terminal I get this error: ".: zandronum: cannot execute binary file"

Btw. I followed install instructions correctly.

User avatar
Dusk
Developer
Posts: 581
Joined: Thu May 24, 2012 9:59 pm
Location: Turku

Re: Cannot execute binary file on linux.

#2

Post by Dusk » Wed Jun 15, 2016 9:54 am

My guess is you installed the 64-bit version on a 32-bit system. Please post the full command used to run zandronum, and the full error message or the best we can do is guess.

Aleksanderus
New User
Posts: 14
Joined: Sat May 21, 2016 6:02 pm

Re: Cannot execute binary file on linux.

#3

Post by Aleksanderus » Wed Jun 15, 2016 10:16 am

I don't have got 32-bit system and I even tried the 32-bit version of Zandronum and still nothing.
Here's the full error message:
[aleksanderus@aleksanderus-pc zandronum2.1.2-linux-x86_64.tar-1]$ . zandronum
bash: .: zandronum: cannot execute binary file
[aleksanderus@aleksanderus-pc zandronum2.1.2-linux-x86_64.tar-1]$

And I'm not kidding that's EVERYTHING it says, belive me.

User avatar
Sean
IRC Operator
Posts: 975
Joined: Thu Jan 16, 2014 9:09 pm
Location: United Kingdom
Clan: Zandronum
Clan Tag: [Za]
Contact:

Re: Cannot execute binary file on linux.

#4

Post by Sean » Thu Jun 16, 2016 6:15 am

What's the output of uname -a?
<capodecima> i dont say any more word without my loyer jenova

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

Re: Cannot execute binary file on linux.

#5

Post by Klofkac » Thu Jun 16, 2016 9:22 am

Aleksanderus wrote:[aleksanderus@aleksanderus-pc zandronum2.1.2-linux-x86_64.tar-1]$ . zandronum
bash: .: zandronum: cannot execute binary file
I see the problem, you are trying to execute command called "." with parameter zandronum.

Try running it using "./zandronum". Linux doesn't have the working directory in PATH for safety reasons. But if you want, you can add "." to PATH (using PATH=$PATH:.) and then be able to execute anything that is within current directory by just typing its command.

The dot as a command is a bash alias for the builtin command "source", which lets you run shell scripts within the same process.

Aleksanderus
New User
Posts: 14
Joined: Sat May 21, 2016 6:02 pm

Re: Cannot execute binary file on linux.

#6

Post by Aleksanderus » Thu Jun 16, 2016 12:52 pm

Klofkac wrote:
Aleksanderus wrote:[aleksanderus@aleksanderus-pc zandronum2.1.2-linux-x86_64.tar-1]$ . zandronum
bash: .: zandronum: cannot execute binary file
I see the problem, you are trying to execute command called "." with parameter zandronum.

Try running it using "./zandronum". Linux doesn't have the working directory in PATH for safety reasons. But if you want, you can add "." to PATH (using PATH=$PATH:.) and then be able to execute anything that is within current directory by just typing its command.

The dot as a command is a bash alias for the builtin command "source", which lets you run shell scripts within the same process.
Tried that and now there's a new error:

./zandronum: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory

Atleast I'm making progres!

User avatar
Sean
IRC Operator
Posts: 975
Joined: Thu Jan 16, 2014 9:09 pm
Location: United Kingdom
Clan: Zandronum
Clan Tag: [Za]
Contact:

Re: Cannot execute binary file on linux.

#7

Post by Sean » Thu Jun 16, 2016 2:43 pm

What distro are you running? You need to install it's relevant package for libjpeg 6.2.
<capodecima> i dont say any more word without my loyer jenova

User avatar
Dark-Assassin
Maintenence Crew
Posts: 968
Joined: Fri May 25, 2012 4:25 am

Re: Cannot execute binary file on linux.

#8

Post by Dark-Assassin » Thu Jun 16, 2016 2:48 pm

Is there a quirk or problem with the license that prohibits libjpeg being packed with zandronum?

Also, if using Debian or Ubuntu or Mint, just install it via the drdteam repo.

Aleksanderus
New User
Posts: 14
Joined: Sat May 21, 2016 6:02 pm

Re: Cannot execute binary file on linux.

#9

Post by Aleksanderus » Thu Jun 16, 2016 3:11 pm

I have got manjaro distribution. So... Am I fucked?

User avatar
Sean
IRC Operator
Posts: 975
Joined: Thu Jan 16, 2014 9:09 pm
Location: United Kingdom
Clan: Zandronum
Clan Tag: [Za]
Contact:

Re: Cannot execute binary file on linux.

#10

Post by Sean » Thu Jun 16, 2016 3:16 pm

Not really. But seeing as you're running an Arch Linux-based distro you need to install libjpeg6-turbo from the AUR.
<capodecima> i dont say any more word without my loyer jenova

Aleksanderus
New User
Posts: 14
Joined: Sat May 21, 2016 6:02 pm

Re: Cannot execute binary file on linux.

#11

Post by Aleksanderus » Thu Jun 16, 2016 3:28 pm

I installed it and still the same error. I think I need to move it somewhere... Maybe in the zandronum folder?

EDIT: Not working, I also tried pasting the file into share folder and lib folder and still nothing

User avatar
Sean
IRC Operator
Posts: 975
Joined: Thu Jan 16, 2014 9:09 pm
Location: United Kingdom
Clan: Zandronum
Clan Tag: [Za]
Contact:

Re: Cannot execute binary file on linux.

#12

Post by Sean » Thu Jun 16, 2016 3:47 pm

Try installing zandronum2. I think the official binary distributions of Zandronum use the Debianisms of libraries.
<capodecima> i dont say any more word without my loyer jenova

Aleksanderus
New User
Posts: 14
Joined: Sat May 21, 2016 6:02 pm

Re: Cannot execute binary file on linux.

#13

Post by Aleksanderus » Thu Jun 16, 2016 5:09 pm

Unfortunately I'm new to linux and I don't know how to install it.
Sorry for being so retarded!

User avatar
Sean
IRC Operator
Posts: 975
Joined: Thu Jan 16, 2014 9:09 pm
Location: United Kingdom
Clan: Zandronum
Clan Tag: [Za]
Contact:

Re: Cannot execute binary file on linux.

#14

Post by Sean » Thu Jun 16, 2016 5:14 pm

<capodecima> i dont say any more word without my loyer jenova

Aleksanderus
New User
Posts: 14
Joined: Sat May 21, 2016 6:02 pm

Re: Cannot execute binary file on linux.

#15

Post by Aleksanderus » Thu Jun 16, 2016 5:47 pm

FINALLY! Thank you, I can finally play zandronum again!

Post Reply