WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Installed bash but now getting /bin/bash: bad interpreter ??  (Read 2653 times)

Offline magicpio

  • Newbie
  • *
  • Posts: 6
Installed bash but now getting /bin/bash: bad interpreter ??
« on: December 18, 2010, 06:23:30 PM »
Hi,
I want to install Xampp.
For this I installed the bash extension first.

1. Do I have to start bash manually or is it started automatically afetr next bootup?
(In fact, I entered "bash" as su).

I installed xampp.
Starting xampp gives following error:

bash: /opt/lampp/lampp: /bin/bash: bad interpreter: No such file or directory

Could anyone please tell me what I´m missing here?

Thanks
Pio

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Installed bash but now getting /bin/bash: bad interpreter ??
« Reply #1 on: December 18, 2010, 07:23:07 PM »
Bash is not in /bin.
'which bash' will give you the path.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Installed bash but now getting /bin/bash: bad interpreter ??
« Reply #2 on: December 18, 2010, 08:23:20 PM »
/bin/bash is included in the extension as a symlink to /usr/local/bin/bash as that is where it is expected in most scripts, so it should work as expected unless that symlink is broken or another similar file issue.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Installed bash but now getting /bin/bash: bad interpreter ??
« Reply #3 on: December 18, 2010, 08:39:00 PM »
Jason is correct.
Perhaps bash.tcz is not actually loaded.

Offline magicpio

  • Newbie
  • *
  • Posts: 6
Re: Installed bash but now getting /bin/bash: bad interpreter ??
« Reply #4 on: December 19, 2010, 05:00:00 AM »
which bash gives
/usr/local/bin/bash

in /bin is definitely no bash.

I created a symlink in /bin to /usr/loc.......
and now it works. (but gives errors related to ipv6 I guess, so I will install this package as well.)

But I had to start bash twice in a console window as su??

Thanks for your help guys!
Pio

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Installed bash but now getting /bin/bash: bad interpreter ??
« Reply #5 on: December 19, 2010, 08:18:01 AM »
It sounds like the startup script did not run, it is what creates the /bin/bash symlink as well as a few other things.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Installed bash but now getting /bin/bash: bad interpreter ??
« Reply #6 on: December 19, 2010, 08:25:42 AM »
which bash gives
/usr/local/bin/bash

As expected!
Same on my system where there are no issues of 'missing link'   ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline TaoTePuh

  • Full Member
  • ***
  • Posts: 172
Re: Installed bash but now getting /bin/bash: bad interpreter ??
« Reply #7 on: December 19, 2010, 09:02:06 AM »
For this I installed the bash extension first.

1.) In what way have you installed bash.tcz (AppBrwoser, tce-load) ?
2.) Do you have the script "/usr/local/tce.installed/bash" ? This script creates the link "/bin/bash -> /usr/local/bin/bash". What happens if you manually execute this script?
« Last Edit: December 19, 2010, 09:09:53 AM by TaoTePuh »