简体   繁体   English

在OS X Mountain Lion上安装Pow 0.4.1:非法说明4

[英]Installing Pow 0.4.1 on OS X Mountain Lion: Illegal Instruction 4

First post here. 在这里的第一篇文章。

I have POW version 0.3.2 installed and working seamlessly, which it has been for a long time. 我已经安装了POW版本0.3.2并且可以无缝运行,这已经有很长时间了。 For the first time I have the need of accessing my POW virtual hosts from another machine on the network (an iPad), which requires POW version 0.4.0 or higher. 第一次,我需要从网络上的另一台计算机(iPad)上访问我的POW虚拟主机,该计算机要求POW版本为0.4.0或更高版本。 When I try to install (upgrade) PO using curl get.pow.cx | sh 当我尝试使用curl get.pow.cx | sh安装(升级)PO时curl get.pow.cx | sh curl get.pow.cx | sh it starts the installation but eventually comes back with an error like so: curl get.pow.cx | sh它开始安装,但最终返回错误,如下所示:

*** Installing Pow 0.4.1...
*** Installing local configuration files...
sh: line 95: 3513 Illegal instruction: 4 "$NODE_BIN" "$POW_BIN" --install-local

I have the latest Xcode installed with the command line tools; 我已经安装了最新的Xcode和命令行工具。 I have node.js installed via the packaged installer, originally it was v. 0.8.21, but in trying to get this fixed I installed the latest version; 我已经通过打包安装程序安装了node.js,最初是v。0.8.21,但是为了获得此修复,我安装了最新版本。 As mentioned in the title I have OS X Mountain Lion (10.8.4). 如标题中所述,我有OS X Mountain Lion(10.8.4)。 Please let me know if more info is needed. 请让我知道是否需要更多信息。 Any suggestions will be greatly appreciated. 任何建议将不胜感激。 Thanks! 谢谢!

I had the same problem on OS X Lion. 我在OS X Lion上遇到了同样的问题。 I haven't figured out what is wrong, so I used Homebrew. 我还没有弄清楚出什么问题了,所以我使用了Homebrew。 First, install Homebrew if you didn't: 首先,如果没有安装Homebrew,请执行以下操作:

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Than run: 比运行:

$ brew install pow

And follow these instructions: 并按照以下说明进行操作:

$ sudo pow --install-system
$ pow --install-local
$ sudo launchctl load -w /Library/LaunchDaemons/cx.pow.firewall.plist
$ launchctl load -w ~/Library/LaunchAgents/cx.pow.powd.plist

Also, you always can install Pow from source. 另外,您始终可以从源代码安装Pow。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM