Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
heroku命令在raspbian上失败_Heroku_Raspberry Pi_Raspbian_Heroku Toolbelt - Fatal编程技术网

heroku命令在raspbian上失败

heroku命令在raspbian上失败,heroku,raspberry-pi,raspbian,heroku-toolbelt,Heroku,Raspberry Pi,Raspbian,Heroku Toolbelt,我将heroku工具带安装到raspbian。 但是heroku命令失败了 heroku工具带安装: $ wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh heroku命令在以下情况下失败: $ heroku login Illegal instruction ! error getting commands pid 6630 exit 132 $ uname -a Linux raspberrypi 3.12.2

我将heroku工具带安装到raspbian。 但是heroku命令失败了

heroku工具带安装:

$ wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
heroku命令在以下情况下失败:

$ heroku login
Illegal instruction
 !    error getting commands pid 6630 exit 132

$ uname -a
Linux raspberrypi 3.12.22+ #691 PREEMPT Wed Jun 18 18:29:58 BST 2014 armv6l GNU/Linux
$ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [arm-linux-eabihf]

你描述了一种情况,但实际上没有提出问题。我将你文章中的问题解释为“为什么heroku命令会以‘非法指令’错误退出?”

debian官方的“armhf”端口以ARMv7体系结构为目标(c.f.“目前debian armhf端口至少需要一个带有Thumb-2和VFP3D16的ARMv7 CPU”)

第一款Raspberry Pi具有ARMv6 CPU。树莓PI基金会,以及后来的Rasbian创建者,从源代码中重新编译了所有的Debian软件包。 但他们决定保留相同的“armhf”名称。可能是因为在debian构建系统中引入一个新名称需要更多的努力

只要您不混合使用软件包存储库,这就可以正常工作。Raspbian installations'/etc/apt/sources.list文件指向Raspberry Pi特定的软件包下载服务器,该服务器使用为ARMv6编译的二进制文件“armhf”名称

如果您尝试为常规debian发行版安装armhf包,那么当CPU被要求执行不属于ARMv6的ARMv7指令时,就会看到此非法指令错误


对于为“armhf”的规范含义编译的第三方armhf包也是如此,如heroku工具带。

这是一个老问题,但可能对其他人有所帮助: 您可以安装独立的heroku toolbelt for linux arm,如下所述:(选择“下载heroku CLI的独立版本”)

#从终端运行此操作。
#将操作系统替换为“linux”、“darwin”、“windows”、“freebsd”、“openbsd”之一
#用“amd64”、“386”或“臂”中的一个替换拱
wgethttps://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
#确保/usr/local/bin位于PATH环境变量中

谢谢您回答我的问题。