Reputation: 203
THIS HAS BEEN SOLVED READ ANSWER BELOW ON HOW TO DOWNLOAD HEROKU CLI ON RPI3
Just saying. Sorry if this has been asked before - I coudnt find it.
I have a Raspberry PI 3 and I am trying to install Heroku CLI. If I try to do it the normal way, for ubuntu or linux, it fails.Can't install Heroku CLI on Raspbian dosent wokr becasue i get error
wget https://cli-assets.heroku.com/branches/stable/heroku-OS-ARCH.tar.gz
--2018-05-23 17:15:46-- https://cli-assets.heroku.com/branches/stable/heroku-OS-ARCH.tar.gz
Resolving cli-assets.heroku.com (cli-assets.heroku.com)... 54.230.9.187, 54.230.9.194, 54.230.9.84, ...
Connecting to cli-assets.heroku.com (cli-assets.heroku.com)|54.230.9.187|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-05-23 17:15:50
ERROR 404: Not Found.
This post however dosent work either Heroku CLI alternative download location and returns error
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
dpkg: error processing package heroku (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of heroku-toolbelt:
heroku-toolbelt depends on heroku (= 3.99.4); however:
Package heroku is not configured yet.
dpkg: error processing package heroku-toolbelt (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
heroku
heroku-toolbelt
E: Sub-process /usr/bin/dpkg returned an error code (1)
when i run the command
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
Upvotes: 3
Views: 3258
Reputation: 21
Instead of sudo tar -xvzf heroku-OS-ARCH.tar.gz -C /usr/local/lib
as noted in the original post, the correct command should be sudo tar -xvzf **heroku-linux-arm.tar.gz** -C /usr/local/lib
Upvotes: 2
Reputation: 203
OK guys i figured it out. If the posts above didnt work for you this is how to do it This is how you install Heroku CLI onto a raspberry pi 3
Step 1: Make sure you have sudo privilages. The default RPI3 account has sudo so you need not worry about this If you cant get sudo privilages you may still be able to download the CLI .
How to check if you have sudo enabled run these following commands from terminal
sudo su
If you have sudo privileges the terimal should now say
root@ControlUnit:/home/[Your account name]
or something along those lines.
then run exit
then continue with steps
If it does continue with the next steps.
If not- if you own RPI3 then login into the default account(password: raspberry) and do sudo adduser [yourname] -g sudo
. If you do not own it ask the owner to do this
Sudo aside This is how you do the heroku CLI: Run the following commands
wget https://cli-assets.heroku.com/branches/stable/heroku-linux-arm.tar.gz
what this does is it installs a outdated copy(you can update it later) made for the Raspberry Pi. Then run this command
mkdir -p /usr/local/lib /usr/local/bin
This is the part where you have to use sudo. If you cant use sudo still try the commands.
sudo tar -xvzf heroku-OS-ARCH.tar.gz -C /usr/local/lib
sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
Then just make sure you have it run in the terminal
heroku version
or heroku --version
it should come up saying something along the lines of
heroku-cli/5.7.1-c574890 (linux-arm) go1.7.5
then run
heroku update
and your done!
COPY PASTE COMMANDS*
wget https://cli-assets.heroku.com/branches/stable/heroku-linux-arm.tar.gz
mkdir -p /usr/local/lib /usr/local/bin
sudo tar -xvzf heroku-linux-arm.tar.gz -C /usr/local/lib
sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
heroku update
Upvotes: 12