我在Ubuntu 14.04上使用npm install osrm安装了节点osrm.这已经安装了OSRM v4.9.下一步是设置OSRM.我正在尝试按照维基中给出的步骤进行设置 –
https://github.com/Project-OSRM/node-osrm
https://github.com/Project-OSRM/node-osrm
当我运行make时,我得到以下错误
/bin/sh: 1: [[: not found /bin/sh: 1: echo you need pkg-config installed: not found make: *** [pkgconfig] Error 127
当我运行./Makefile时,我得到以下错误
./Makefile: line 3: shell: command not found ./Makefile: line 3: TOOL_ROOT?=/lib/binding: No such file or directory ./Makefile: line 4: TOOL_ROOT: command not found
我甚至添加了一个shebang来使用bash,因为错误似乎是由于没有使用bash
我已安装所有必需的库并具有节点v0.12
如何成功运行https://github.com/Project-OSRM/node-osrm/blob/develop/Makefile文件?
解决方法
我在macos上遇到了同样的问题.我发现需要安装pkg-config.尝试安装它运行sudo apt-get install pkg-config