Failed to install Heroku Toolkit on Ubuntu AWS instance

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 
+8
heroku
source share
5 answers

I think your sh not a symbolic link to bash . Try

 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:

  • Download the install.sh file
  • Change the line that says sudo sh to say sudo /bin/bash
  • Run it with /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.

+2
source share

I solved this problem by following these steps:

 $ wget https://toolbelt.heroku.com/install.sh $ sudo sh install.sh 

Hope this helps.

+2
source share

Try the following:

 $ sudo wget https://toolbelt.heroku.com/install-ubuntu.sh $ sudo sh install-ubuntu.sh 
+2
source share

Does this work for you?

 wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh 
0
source share

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

0
source share

All Articles