无法在 Raspbian 上安装 Heroku CLI [英] Can't install Heroku CLI on Raspbian

查看:67
本文介绍了无法在 Raspbian 上安装 Heroku CLI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用我的 RP3 作为我的开发盒,并且一切正常:Python 3.6,创建了 venv,安装了 posgresql,使用了 Django.一切皆好.除此之外,如果我想使用 Heroku,他们的 CLI(以前的 Toolbelt)将不会安装,并说明该软件包不存在.

I've just started using my RP3 as my development box, and got everything working fine: Python 3.6, created venv's, installed posgresql, working with Django. All is fine. Except that, if I want to work with Heroku, their CLI (former Toolbelt) won't install, stating the package doesn't exist.

我做了什么:

他们的官方网站指出我们应该运行一个脚本:

Their official site states that we should run a script:

wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh

基本上似乎在 apt-get 的源代码中包含 heroku,更新它(apt-get update),然后通过运行 apt-get 进行安装安装heroku.完整输出在这里:

Which basically seems to include heroku on the sources for apt-get, update it (apt-get update) and then install by running apt-get install heroku. Full output is here:

$ sudo wget -qO- https://cli-    assets.heroku.com/install-ubuntu.sh | sh
+ SUDO=
+ id -u
+ [ 1000 != 0 ]
+ SUDO=sudo
+ echo This script requires superuser access to install apt packages.
This script requires superuser access to install apt packages.
+ echo You will be prompted for your password by sudo.
You will be prompted for your password by sudo.
+ sudo -k
+ sudo sh
+ dpkg -s apt-transport-https
+ echo deb https://cli-assets.heroku.com/branches/stable/apt ./
+ dpkg -s heroku-toolbelt
+ true
+ apt-key add -
+ wget -qO- https://cli-assets.heroku.com/apt/release.key
OK
+ apt-get update
Get:1 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
Hit https://cli-assets.heroku.com ./ InRelease
Hit https://cli-assets.heroku.com ./ Packages
Get:2 http://mirrordirector.raspbian.org jessie/main armhf Packages [9,533 kB]
Get:3 https://cli-assets.heroku.com ./ Translation-en_GB [364 B]
Hit http://archive.raspberrypi.org jessie InRelease
Get:4 https://cli-assets.heroku.com ./ Translation-en [361 B]
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Get:5 https://cli-assets.heroku.com ./ Translation-en_GB [364 B]
Get:6 https://cli-assets.heroku.com ./ Translation-en [361 B]
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Get:7 https://cli-assets.heroku.com ./ Translation-en_GB [364 B]
Get:8 https://cli-assets.heroku.com ./ Translation-en [361 B]
Get:9 https://cli-assets.heroku.com ./ Translation-en_GB [364 B]
Get:10 https://cli-assets.heroku.com ./ Translation-en [361 B]
Get:11 https://cli-assets.heroku.com ./ Translation-en_GB [364 B]
Ign https://cli-assets.heroku.com ./ Translation-en_GB
Get:12 https://cli-assets.heroku.com ./ Translation-en [361 B]
Ign https://cli-assets.heroku.com ./ Translation-en
Get:13 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [43.3     kB]
Get:14 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [84.2     kB]
Get:15 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9,677 kB in 21s (450 kB/s)
Reading package lists... Done
+ apt-get install -y heroku
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package heroku

安装他们所谓的独立"程序也没有似乎它会工作,因为只有 x86 和 x64 的构建,而不是 ARM,这是 RPI 的架构.

Installing what they call the "Standalone" program also doesn't seem it would work, since there are builds for x86 and x64 only, not ARM, which is the RPI's architecture.

有人成功过吗?我在网上找到了其他类似的问题,但没有答案!

Has anyone succeeded in doing this? I found other questions like this online, but no answer!

推荐答案

你可以像这里描述的那样为 linux arm 安装独立的 heroku 工具带:https://devcenter.heroku.com/articles/getting-started-with-php#set-up(选择下载Heroku CLI 的独立版本")

You could install the standalone heroku toolbelt for linux arm like it is described here: https://devcenter.heroku.com/articles/getting-started-with-php#set-up (select "Download standalone version of the Heroku CLI")

# Run this from your terminal.
# Replace OS with one of "linux", "darwin", "windows", "freebsd", "openbsd"
# Replace ARCH with one of "amd64", "386" or "arm"
wget https://cli-assets.heroku.com/branches/stable/heroku-OS-ARCH.tar.gz
mkdir -p /usr/local/lib /usr/local/bin
tar -xvzf heroku-OS-ARCH.tar.gz -C /usr/local/lib
ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku
# ensure that /usr/local/bin is in the PATH environment variable

我用 raspbian jessie 在我的 RP3 上运行它

I have it running on my RP3 with raspbian jessie

$ heroku --version
heroku-cli/5.7.1-c574890 (linux-arm) go1.7.5

这篇关于无法在 Raspbian 上安装 Heroku CLI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆