It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Hi all,

Sorry if this has already been asked. I just downloaded and installed Indiana Jones and the Fate of Atlantis on my Xubuntu 14.04 following the instructions on the game page. I locate bash script start.sh in /opt/GOG Games/Indiana..., but when I try to run it, I get the following error report:

start.sh: 6: start.sh: declare: not found
start.sh: 7: start.sh: declare: not found
start.sh: 8: start.sh: declare: not found
start.sh: 9: start.sh: declare: not found
start.sh: 12: start.sh: Bad substitution
start.sh: 12: start.sh: declare: not found
start.sh: 18: start.sh: source: not found
start.sh: 35: start.sh: define_option: not found
start.sh: 38: start.sh: standard_options: not found

Reinstalling the game doesn't help. The only thing during the installation that seems out of normal is the following message:
** (zenity:16412): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-oLklu3jvK5: Connection refused

Any thoguhts?
No posts in this topic were marked as the solution yet. If you can help, add your reply
avatar
MarkoF: Any thoguhts?
It's a BASH script, not Bourne shell or DASH.

./start.sh or bash start.sh
Post edited June 11, 2015 by Gydion
avatar
Gydion: It's a BASH script, not Bourne shell or DASH.

./start.sh or bash start.sh
Huh, didn't realize that there was a difference (I'm quite a Linux n00b).
sh start.sh was the first hit on search query "how to run a bash script", so that was the only thing I tried. Thanks for the help, it works now!
Post edited June 11, 2015 by MarkoF
avatar
MarkoF: sh start.sh was the first hit on search query "how to run a bash script", so that was the only thing I tried. Thanks for the help, it works now!
A lot of distros have or had sh linked to BASH, but Ubuntu switched to DASH years ago. There was never any guarantee it would be BASH anyway. Best way to run any script is with ./script as this will launch whichever interpreter is defined, assuming one is defined, in the script. Only time you would need to explicitly call bash script is if the execute permissions are off or the script doesn't specify which shell to use.

Anyway, cheers.
Post edited June 11, 2015 by Gydion
avatar
MarkoF: sh start.sh was the first hit on search query "how to run a bash script", so that was the only thing I tried. Thanks for the help, it works now!
avatar
Gydion: A lot of distros have or had sh linked to BASH, but Ubuntu switched to DASH years ago. There was never any guarantee it would be BASH anyway. Best way to run any script is with ./script as this will launch whichever interpreter is defined, assuming one is defined, in the script. Only time you would need to explicitly call bash script is if the execute permissions are off or the script doesn't specify which shell to use.

Anyway, cheers.
Thanks again for the explanation, I appreciate it!

Cheers!