Author Topic: Install error: "/bin/sh: bad interpreter"  (Read 2444 times)

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Install error: "/bin/sh: bad interpreter"
« on: October 10, 2005, 05:56:35 pm »
I just downloaded the PlaneShift installer selfexecutor and tried to install it under SuSE 9.3 Pro german, by opening a console and starting it as a shell script; this is the result:

Code: [Select]
bash: ./PlaneShift_CBV0.3.011.linux.x86-2.run: /bin/sh: bad interpreter: Keine Berechtigung

(\"Keine Berechtigung\" ~ \"access denied\" or \"you don\'t have the required rights\").

I even started a root session (su) but this didn\'t help. The interpreter \"sh\" exists as /bin/sh. The file has the attributes \"u=rwx g=rwx o=r-x\".

Any other ideas where the reason could be?
« Last Edit: October 10, 2005, 05:58:18 pm by LigH »

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

Induane

  • Veteran
  • *
  • Posts: 1287
  • What should I put here?
    • View Profile
    • Vaalnor Inc.
(No subject)
« Reply #1 on: October 11, 2005, 02:24:02 am »
this might be extreme but try this - make a backup copy of the file /bin/sh and then delete it
then make a symbolic link from bash to sh like link -s /bin/bash /bin sh or something like that.  Then see if the error persists

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
(No subject)
« Reply #2 on: October 11, 2005, 10:52:11 am »
:O

I only checked the existence, not the details...

\"/bin/sh\" is implemented as a symbolic link on \"/bin/bash\" already. Let\'s see if SuSE 9.3 supports the \"outdated\" interpreter natively at all - but I doubt a bit if it is available for online update.
__

P.S.: No, \"sh\" as a binary is not available for installation.

I\'ll try ith with Ubuntu now, too.
« Last Edit: October 11, 2005, 10:59:53 am by LigH »

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

lanser

  • Hydlaa Citizen
  • *
  • Posts: 447
  • No Longer Mordraugion Settings AD
    • View Profile
(No subject)
« Reply #3 on: October 11, 2005, 12:35:02 pm »
I use 9.3 pro and the installer works well (get a seg fault when trying to run the game but thats another issue.)

Haven\'t made any changes to bash all I did was chmod the installer to 777 and ran as user.


*oh and made sure that user was a member of the \"game\" group
« Last Edit: October 11, 2005, 12:36:50 pm by lanser »
Hokinon Korere
Wandering Yliakum searching for lost memories...

Zinnius Zann
Right hand to a Queen

Bereror

  • Hydlaa Notable
  • *
  • Posts: 773
    • View Profile
    • Planeshift API
(No subject)
« Reply #4 on: October 11, 2005, 01:01:49 pm »
Code: [Select]

chmod a+x PlaneShift_CBV0.3.011.linux.x86-2.run


Without that I get the same error message:
bash: ./PlaneShift_CBV0.3.011.linux.x86-2.run: Permission denied

EDIT: Well, \"/bin/sh\" is missing in the error message, but I might have a slightly different version of bash.
« Last Edit: October 11, 2005, 01:03:19 pm by Bereror »
PlaneShift Sources
PlaneShift API
"Words never spoken
Are the strongest resounding"

urlauber

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #5 on: October 11, 2005, 01:07:53 pm »
I just restarted linux (debian/kanotix) and it worked ...

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
(No subject)
« Reply #6 on: October 11, 2005, 05:40:38 pm »
@ lanser:

\"game\" group? What \"game\" group? I never created a group named \"game\". I didn\'t know that an installer prefers a group called \"game\" over being logged in as root when installing...
__

@ Bereror:

I already documented the attributes, they were sufficient (775 -- \"others\" shouldn\'t need write access).
__

In general:

Under Ubuntu, I was able to install the game (after installing the \"dialog application\"). And afterwards, I could play it under SuSE - next step: checking the nVidia driver installation under Ubuntu...

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

lanser

  • Hydlaa Citizen
  • *
  • Posts: 447
  • No Longer Mordraugion Settings AD
    • View Profile
(No subject)
« Reply #7 on: October 12, 2005, 12:07:25 am »
Quote
Originally posted by LigH
@ lanser:

\"game\" group? What \"game\" group? I never created a group named \"game\". I didn\'t know that an installer prefers a group called \"game\" over being logged in as root when installing...



On running the installer you get the following:
well I do anyway so I made sure that my $user is a member of games as well as chmod 777 :)

**edit:  most wierd I\'ve just tried again and it will even run from a double click in Konqueror
« Last Edit: October 12, 2005, 12:23:14 am by lanser »
Hokinon Korere
Wandering Yliakum searching for lost memories...

Zinnius Zann
Right hand to a Queen

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
(No subject)
« Reply #8 on: October 12, 2005, 12:16:17 am »
I did not even get that far. SuSE Linux did not even start the installer shellscript part at all, it looks to me. And I ran the installer as user \"root\".

Or maybe, I could try to run the installer with some \"extra-verbose\" option to get a maximum of debugging messages?
« Last Edit: October 12, 2005, 12:17:01 am by LigH »

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

jonmack

  • Hydlaa Resident
  • *
  • Posts: 63
    • View Profile
(No subject)
« Reply #9 on: October 12, 2005, 03:10:47 pm »
I think people are getting confused between the various Linux installers going around. Platyna\'s one was a *.run, whereas Xordans new one is a *.bin.

I\'ve never tried Platyna\'s installer, but it seems to be unmaintained anyway (I guess it should still work until the next update though). Xordans is the new one to use, although at the moment I think it\'s too new - the CVS snapshot it is based on is a little unstable for most people.

The screenshot in lansers post is Xordans, which gives much more options (system wide install or not, game group options, etc).
jonmack

lanser

  • Hydlaa Citizen
  • *
  • Posts: 447
  • No Longer Mordraugion Settings AD
    • View Profile
(No subject)
« Reply #10 on: October 12, 2005, 04:27:32 pm »
Sorry if I confused the issue but my current set up uses Platyna\'s installer (because of the fore mentioned segfault) which i also chmoded to 777 before running as user :)
Hokinon Korere
Wandering Yliakum searching for lost memories...

Zinnius Zann
Right hand to a Queen

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
(No subject)
« Reply #11 on: October 12, 2005, 05:09:34 pm »
I don\'t know about \"the one\'s installer\" or \"the other one\'s installer\"; I downloaded the only installer I know, from the italian PlaneShift website.
« Last Edit: October 12, 2005, 05:10:03 pm by LigH »

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

lanser

  • Hydlaa Citizen
  • *
  • Posts: 447
  • No Longer Mordraugion Settings AD
    • View Profile
(No subject)
« Reply #12 on: October 12, 2005, 05:51:35 pm »
That would be Platyna\'s old second version I prefer to use her first and Xordans is Here


* pm and I\'ll email or host her first version
« Last Edit: October 12, 2005, 05:52:23 pm by lanser »
Hokinon Korere
Wandering Yliakum searching for lost memories...

Zinnius Zann
Right hand to a Queen

CelticAngel

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #13 on: October 17, 2005, 05:23:12 pm »
Ok I am a new linux user, i am using fedora core 3, kde.....i have Planeshift installed, but i dont have any idea as to how to type the commands in the terminal,  if someone would help i would greatly appreciate it, (i am not a new PS player)

Orior de Atrum
From the darkness we shall rise!

CelticAngel

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
(No subject)
« Reply #14 on: October 17, 2005, 05:24:18 pm »
sorry i mean ps downloaded, and i am trying to install
From the darkness we shall rise!