Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: magicpio on December 18, 2010, 06:23:30 PM

Title: Installed bash but now getting /bin/bash: bad interpreter ??
Post by: magicpio 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
Title: Re: Installed bash but now getting /bin/bash: bad interpreter ??
Post by: gerald_clark on December 18, 2010, 07:23:07 PM
Bash is not in /bin.
'which bash' will give you the path.
Title: Re: Installed bash but now getting /bin/bash: bad interpreter ??
Post by: Jason W 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.
Title: Re: Installed bash but now getting /bin/bash: bad interpreter ??
Post by: gerald_clark on December 18, 2010, 08:39:00 PM
Jason is correct.
Perhaps bash.tcz is not actually loaded.
Title: Re: Installed bash but now getting /bin/bash: bad interpreter ??
Post by: magicpio 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
Title: Re: Installed bash but now getting /bin/bash: bad interpreter ??
Post by: Jason W 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.
Title: Re: Installed bash but now getting /bin/bash: bad interpreter ??
Post by: tinypoodle 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'   ;)
Title: Re: Installed bash but now getting /bin/bash: bad interpreter ??
Post by: TaoTePuh 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?