Tag: pkg config

在OS X和Heroku上编译节点插件w / opencv

我有一个问题在os x和heroku上用opencv编译节点添加。 然而,在Ubuntu上它工作正常。 我正在使用vagrant文​​件: Vagrant.configure("2") do |config| config.vm.box = "ubuntu/trusty64" config.vm.provision :shell, :inline => $BOOTSTRAP_SCRIPT # see below end $BOOTSTRAP_SCRIPT = <<EOF set -e # Stop on any error # Make vagrant automatically go to /vagrant when we ssh in. echo "cd /vagrant" | sudo tee -a ~vagrant/.profile sudo apt-get update -y sudo apt-get install […]

在npm安装期间,在mac 10.5.8上findnode-gyp'pkg-config:command not found'

试图在github项目的mac-osx上进行npm安装。 不要在packages.json中看到pkg-config为什么node-gyp期望这样? 好像node-gyp应该包含pkg-config。 我认为这是节点工作的方式。 安装一个软件包,它可以根据需要进行安装。 我想这是不同的。 也想知道哪个版本的pkg-config其寻找。 是的,我一直在那里下载压缩包,但它的mac安装说明真的是无稽之谈。 它保持./configure然后进行安装。 但是,makefile不可用,一切都在同一目录级别,但它说cd到代码目录等 > node-gyp重build / bin / sh:找不到pkg-config:命令 gyp:调用'pkg-config libzmq –libs'返回退出状态127.试图加载binding.gyp gyp ERR! configuration错误 gyp ERR! 堆栈错误:`gyp`失败,退出代码:1 gyp ERR! 在ChildProcess.onCpExit(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16) gyp ERR! 在ChildProcess.emit(events.js:98:17) gyp ERR! 在Process.ChildProcess._handle.onexit(child_process.js:820:12) gyp ERR! 系统达尔文12.5.0 gyp ERR! 命令“node”“/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“rebuild” gyp ERR! cwd / Users / Mac1 / Downloads / projdirectory / node_modules / zmq […]