Phantomjs 幻影:获得;死亡人数:9“;无论我做什么';我在努力
刚刚安装了phantomjs,mac os x yosemite。每当我使用任何参数运行/bin/phantomjs时,我都会被Phantomjs 幻影:获得;死亡人数:9“;无论我做什么';我在努力,phantomjs,osx-yosemite,Phantomjs,Osx Yosemite,刚刚安装了phantomjs,mac os x yosemite。每当我使用任何参数运行/bin/phantomjs时,我都会被杀死:9。有什么想法吗?关于:在osx yosemite上运行phantomjs,请下载位于以下位置的构建/修复程序: 原版: 安装UPX。UPX是一个可执行的打包和解包程序 $ brew install upx 解压phantomjs可执行文件 $ upx -d phantomjs-2.0.0-macosx/bin/phantomjs $ ./phantom
杀死:9
。有什么想法吗?关于:在osx yosemite上运行phantomjs,请下载位于以下位置的构建/修复程序:
原版:
$ brew install upx
phantomjs
可执行文件
$ upx -d phantomjs-2.0.0-macosx/bin/phantomjs
$ ./phantomjs-2.0.0-macosx/bin/phantomjs
phantomjs
可执行文件
$ upx -d phantomjs-2.0.0-macosx/bin/phantomjs
$ ./phantomjs-2.0.0-macosx/bin/phantomjs
eugene1g版本和UPX安装在El Capitan上对我不起作用。使用phantomjs2 NPM包安装PhantomJS对我有效:
npm install phantomjs2
# Optional: symlink in a dir that's on my PATH:
ln -s /usr/local/lib/node_modules/phantomjs2/lib/phantom/bin/phantomjs /usr/local/bin/phantomjs
使用brew重新安装
/usr/local/bin/phantomjs
中的任何内容都已停止为您工作
如果您有30分钟的空闲时间,可以使用brew重新安装和重新链接:
# unlink old version
brew unlink phantomjs
# reinstall phantomjs
brew update && brew install phantomjs
# (You may wish to make a refreshing herbal tea or similar beverage here...)
# Update link to usr/local/bin
brew link --overwrite phantomjs
如果要测试brew将如何使用覆盖
,可以运行
brew link --overwrite --dry-run phantomjs
$npm安装-g phantomjs
在El Capitan上为我工作
npm包不是“官方的”,它由一个贡献者维护,但它可以工作 当当前shell进程被终止时,有时会发生这种情况
我在
tmux
中使用brew update
,brew
updatedtmux
和bash
,然后砰的一声!tmux
中的所有内容都返回Killed:9
谢谢。非常有用。所以基本上它不是上面的这个链接,而是上面链接(lol)中的链接,它是在e中提取的phantomjs
脚本。g/usr/local/bin
或其他$PATH
相关文件夹。有人知道为什么尚未将其合并到主回购中吗?谢谢,非常适合我@安德烈。upx是一个可执行文件打包器,运行upx-d会反转可执行文件的打包,并将其恢复为原始形式(有点像解压缩文件)。请注意:到phantomjs的路径可能不同。我一直将二进制文件保存在/usr/bin/phantoms中这是正确的答案。另一个应该去掉它的复选标记,并且应该放在这个答案上。在OS 10上工作得非常好。11@Ram谢谢,它起作用了。但是怎么做呢?我们为什么要打开它?