PlaneShift

Support => Linux Specific Issues => Topic started by: bjornbra on March 22, 2007, 07:37:48 pm

Title: "cannot execute binary file"
Post by: bjornbra on March 22, 2007, 07:37:48 pm
Hi there!

I'm quite eager to try PlaneShift, but being a linux-newbie has left me stuck with a problem trying to install it.

I have downloaded PlaneShift_CBV0.3.018.bin and checked that the md5 sum is correct.
I have set "chmod +x PlaneShift_CBV0.3.018.bin" and double-checked via the "right-click->properties" window in KDE to verify that the "is executable" box is checked.

This is what happens when I try to run the bin:

[root@home torrent]# sh ./PlaneShift_CBV0.3.018.bin
./PlaneShift_CBV0.3.018.bin: ./PlaneShift_CBV0.3.018.bin: cannot execute binary file
[root@home torrent]# ./PlaneShift_CBV0.3.018.bin

As you can see, when I try to run it via sh it yields that error message. When I try to run it directly with "./" nothing happens (I have waited a long time several times, every time ending up with doing a ctrl-C to end it).

What am I doing wrong?
Thanks for any hints..
Title: Re: "cannot execute binary file"
Post by: Xordan on March 22, 2007, 07:42:03 pm
Can you run it like:

./PlaneShift_CBV0.3.018.bin --help

and see if it outputs anything?
Title: Re: "cannot execute binary file"
Post by: bjornbra on March 22, 2007, 07:52:04 pm
Actually - YES!

[root@home torrent]# ./PlaneShift_CBV0.3.018.bin --help
PlaneShift 0.3.018
Usage:

 --help                         Display the list of valid options

 --version                      Display product information

[....]

[root@home torrent]#                                 
Title: Re: "cannot execute binary file"
Post by: Xordan on March 22, 2007, 08:28:35 pm
Try:

./PlaneShift_CBV0.3.018.bin --mode text
Title: Re: "cannot execute binary file"
Post by: lirucan on March 22, 2007, 10:25:02 pm
/Begin :offtopic:

Just a side note and a little friendly advice...

I noticed that you;

A) said you are new to linux and
B) are running the file as root

You do not have to be root to install this game, and it is highly in-advisable to be loged in as root by default
anyway, Linux isn't as forgiving as All other OS's designed for the home market, and most tasks can be done
in linux by non-root personell, but for the few things that can't be done non-root style there is always the "su"
and "sudo" commands.

I am not trying to say "hey noob your doin it wrong" I am saying this so you don't make the same mistakes I
did starting out in linux and either killing a hdd (luckily only one) or  having to re-format several times over
(especially painfull if like me you install gentoo from the 2006.0 release and then have to up-date EVERYTHING
including the kernel).

/End :offtopic:
Title: Re: "cannot execute binary file"
Post by: bjornbra on March 23, 2007, 12:18:44 am
Try:

./PlaneShift_CBV0.3.018.bin --mode text

That worked!

What might be the reason for this? Some gfx problems?
Title: Re: "cannot execute binary file"
Post by: Xordan on March 23, 2007, 05:19:17 am
Try:

./PlaneShift_CBV0.3.018.bin --mode text

That worked!

What might be the reason for this? Some gfx problems?

I'm not sure, for some reason there no error output. Possibly because you don't have gtk installed and for some reason the X backup is failing too.

lirucan: Well if he's using su then the console would possibly appear as root@home. But yeah, not a good idea to run as root generally.
Title: Re: "cannot execute binary file"
Post by: bjornbra on March 23, 2007, 10:58:37 am
Right, so now I've encountered another problem.

Trying to execute ./updater yields this message:

[root@home planeshift]# ./updater
./up: error while loading shared libraries: libstdc++.so.6: cannot handle TLS data
[root@home planeshift]#

(and I'm only logged in as root while installing new packages and things like that).
Title: Re: "cannot execute binary file"
Post by: lirucan on March 23, 2007, 09:54:33 pm
Don't Run The Updater (http://hydlaa.com/smf/index.php?topic=27969.msg320666#msg320666) running it at the moment may cause problems the require you to re-install the game...

May I ask what distro you are using BTW???

(This works on ALL distro's... Rather than logging into the OS as root log in as normal, open a terminal and type su then press enter and submit the root password viola you are running the terminal as root without opening the whole system up as root...)
Title: Re: "cannot execute binary file"
Post by: Wired_Crawler on March 24, 2007, 01:26:16 pm
[root@home planeshift]# ./updater
./up: error while loading shared libraries: libstdc++.so.6: cannot handle TLS data
[root@home planeshift]#

It looks like incompatibility with components installed in Your system (kernel, glibc or other libraries).
Try to remove (or rename) file libstdc++.so.6 in <planeshift_base_dir>/libs. I doubt it will help, just try if it changes anything.

May I ask what distro you are using BTW???

You are right, this information might give best clue.
Title: Re: "cannot execute binary file"
Post by: Slayer095 on March 25, 2007, 07:12:59 am
Im having this same problem,I cannot understand what you guys are saying!
Title: Re: "cannot execute binary file"
Post by: lirucan on March 26, 2007, 09:44:54 pm
error while loading shared libraries: libstdc++.so.6: cannot handle TLS data

Bjornbra:
Are you still having problems?
and does it occur when you try to run the game aswell?




Im having this same problem,I cannot understand what you guys are saying!

Slayer095: Please be more specific with your problem, generally when posting you should include;

Distro:
Version:
Kernel Version:
Kernel Architecture:
Actuall PC Achitecture:
Exact Error Message:
Breif Description of the problem:
Steps taken to resolve the problem:


For Example for my system at time of writing...

Code: [Select]
Distro: Gentoo
Version: 2006.0 (updated a few times)
Kernel Version: 2.6.19-Gentoo-r5
Kernel Architecture: 32bit Athlon
Actuall PC Achitecture: 32bit Athlon
Exact Error Message: none at present :)
Breif Description of the problem: none at present :)
Steps taken to resolve the problem: none at present :)

**However if you were having a problem with your gfx card you would include card make and model,
as well as driver set used...**
Title: Re: "cannot execute binary file"
Post by: Zargoon on April 04, 2007, 03:04:19 am
I'm having the exact same issue.  Even when I run

./PlaneShift_CBV0.3.018.bin --help

I get this

bash: ./PlaneShift_CBV0.3.018.bin: cannot execute binary file

Very annoying as I really want to play this game.  I'm running SuSE 10.2 BTW,
Title: Re: "cannot execute binary file"
Post by: Caarrie on April 04, 2007, 03:28:15 am
have you done this first "chmod +x PlaneShift_CBV0.3.018.bin "then try to run it
Title: Re: "cannot execute binary file"
Post by: Zargoon on April 04, 2007, 03:43:19 am
Yes I have.
Title: Re: "cannot execute binary file"
Post by: Zargoon on April 09, 2007, 01:19:26 am
Doing a chmod 744 planeshiftfile.bin  did the trick.  Must be different on Suse.
Title: Re: "cannot execute binary file"
Post by: bilbous on April 09, 2007, 03:33:41 pm
Each flavor of Linux has it idiosyncrasies. Ubuntu, if it hasn't changed since I last looked at it comes with either no root password or an undisclosed default root password, their idea being the first user is a sudoer. I never liked this so the first thing I always did in a new Ubuntu was
Code: [Select]
sudo passwd root so that I could su root and my root password would be mine only.
Some distributions may require you to execute binaries using sh others do not, the use of the ./ is generally required because the folder may not be in the execution path, it is a short form for "the current directory" so if you are not currently in the directory where the program was downloaded it will not run. You can instead refer to it by the full path and your command might look like
Code: [Select]
sh /home/Geckus/download/Plane* Of course using the wildcard may be undesirable in the event you have more than one Plane.... files.

I personally like to install the game as root and then assign the games ownership to my user:group during the install. If you are not installing as root check the ownership of the download if it does not belong to your user you may have to chown it. I am not sure about this games download but I have had other downloads which retained ownership by users not on my system. This is typically a problem when compression software is used and it decompresses with the original ownerships. I do not think this is the case with the PS binary though.
Title: Re: "cannot execute binary file"
Post by: crashedata on May 05, 2007, 09:33:15 am
I had the same problem, however when I typed chmod a+x instead of chmod +x, i got it working.