Re: Re: Linux bash script to setup compiling environment

Home › Forums › Development › Linux bash script to setup compiling environment › Re: Re: Linux bash script to setup compiling environment

#28427
hello2000
Member

I tried this script, it downloaded all the packages and then…

2011-05-01 22:28:30 (111 KB/s) – “gamecube-examples-20100930.tar.bz2” salvo [765734/765734]

./install.sh: 67: Syntax error: “}” unexpected

And if I try to run install.sh again:

root@GabrielUbuntuDesktop:/home/gabriel# sh ./install.sh
./install.sh: 14: function: not found
./install.sh: 67: Syntax error: “}” unexpected

Note: I was running as root (notice the # in the shell).

Any ideas? Removing the } only makes the situation worse, with more errors. I tried setting up the dev environment manually before I discovered this script, and I wasn’t managing to get it compiling, so I tried this.

Running Ubuntu 10.10 32bit.

EDIT: Forget it: I was using sh to run the script. I chmod’ed it to 777 and ran it using ./install.sh, now seems to work nicely (still running).