Author Topic: "cannot execute binary file"  (Read 3759 times)

bjornbra

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
"cannot execute binary file"
« 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..

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
Re: "cannot execute binary file"
« Reply #1 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?

bjornbra

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
Re: "cannot execute binary file"
« Reply #2 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]#                                 

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
Re: "cannot execute binary file"
« Reply #3 on: March 22, 2007, 08:28:35 pm »
Try:

./PlaneShift_CBV0.3.018.bin --mode text

lirucan

  • Traveller
  • *
  • Posts: 47
    • View Profile
Re: "cannot execute binary file"
« Reply #4 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:
gentoo lovers will laugh at our description :)

If you feel your Question has been answered please edit the original post and add [SOLVED] to the subject line!

bjornbra

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
Re: "cannot execute binary file"
« Reply #5 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?

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
Re: "cannot execute binary file"
« Reply #6 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.

bjornbra

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
Re: "cannot execute binary file"
« Reply #7 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).

lirucan

  • Traveller
  • *
  • Posts: 47
    • View Profile
Re: "cannot execute binary file"
« Reply #8 on: March 23, 2007, 09:54:33 pm »
Don't Run The Updater 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...)
gentoo lovers will laugh at our description :)

If you feel your Question has been answered please edit the original post and add [SOLVED] to the subject line!

Wired_Crawler

  • Hydlaa Citizen
  • *
  • Posts: 429
    • View Profile
Re: "cannot execute binary file"
« Reply #9 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.
"Close the world, txEn eht nepO."

Slayer095

  • Wayfarer
  • *
  • Posts: 4
    • View Profile
Re: "cannot execute binary file"
« Reply #10 on: March 25, 2007, 07:12:59 am »
Im having this same problem,I cannot understand what you guys are saying!

lirucan

  • Traveller
  • *
  • Posts: 47
    • View Profile
Re: "cannot execute binary file"
« Reply #11 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...**
gentoo lovers will laugh at our description :)

If you feel your Question has been answered please edit the original post and add [SOLVED] to the subject line!

Zargoon

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
Re: "cannot execute binary file"
« Reply #12 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,

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: "cannot execute binary file"
« Reply #13 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

Zargoon

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
Re: "cannot execute binary file"
« Reply #14 on: April 04, 2007, 03:43:19 am »
Yes I have.