Page 1 of 1
Cannot execute binary file on linux.
Posted: Wed Jun 15, 2016 8:29 am
by Aleksanderus
When I try to open zandronum on terminal I get this error: ".: zandronum: cannot execute binary file"
Btw. I followed install instructions correctly.
Re: Cannot execute binary file on linux.
Posted: Wed Jun 15, 2016 9:54 am
by Dusk
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.
Re: Cannot execute binary file on linux.
Posted: Wed Jun 15, 2016 10:16 am
by Aleksanderus
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.
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 6:15 am
by Sean
What's the output of uname -a?
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 9:22 am
by Klofkac
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.
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 12:52 pm
by Aleksanderus
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!
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 2:43 pm
by Sean
What distro are you running? You need to install it's relevant package for libjpeg 6.2.
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 2:48 pm
by Dark-Assassin
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.
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 3:11 pm
by Aleksanderus
I have got manjaro distribution. So... Am I fucked?
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 3:16 pm
by Sean
Not really. But seeing as you're running an Arch Linux-based distro you need to install
libjpeg6-turbo from the AUR.
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 3:28 pm
by Aleksanderus
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
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 3:47 pm
by Sean
Try installing
zandronum2. I think the official binary distributions of Zandronum use the Debianisms of libraries.
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 5:09 pm
by Aleksanderus
Unfortunately I'm new to linux and I don't know how to install it.
Sorry for being so retarded!
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 5:14 pm
by Sean
Re: Cannot execute binary file on linux.
Posted: Thu Jun 16, 2016 5:47 pm
by Aleksanderus
FINALLY! Thank you, I can finally play zandronum again!