When trying to install the Heroku toolchain in the original Ubuntu AWS 12.04 AMI instance, the following error is used by default:
ubuntu @ ip-11-121-123-115: ~ $ wget -qO - https://toolbelt.heroku.com/install.sh | w
This script requires root access to install the software. You will be prompted for the sudo password.
sh: 7: [[: not found sh: 29: [[: not found Installation complete
I think your sh not a symbolic link to bash . Try
sh
bash
wget ...blah... | /bin/bash
and see if that helps.
- EDIT -
Ha! You will believe! 5 minutes after the answer, I had the same problem. Here's the fix:
sudo sh
sudo /bin/bash
/bin/bash install.sh
The reason is that on some Ubuntu /bin/sh is actually a link to /bin/dash (not bash ). And the installation script uses some bash -isms without checking if you really use bash or not.
/bin/sh
/bin/dash
I solved this problem by following these steps:
$ wget https://toolbelt.heroku.com/install.sh $ sudo sh install.sh
Hope this helps.
Try the following:
$ sudo wget https://toolbelt.heroku.com/install-ubuntu.sh $ sudo sh install-ubuntu.sh
Does this work for you?
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
If not registered as root, AWS buggs to match the hostname, try
$ wget https://toolbelt.heroku.com/install.sh --no-check-certificate $ chmod +x install.sh` first) $ ./install.sh
In the first line you will find install.sh