我已经在Ubuntu14.04上使用npm install osrm安装了node osrm。它已经安装了OSRM v4.9。下一步是设置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造成的
我已经安装了所有需要的库,并且拥有node v0.12
如何才能成功运行https://github.com/Project-OSRM/node-osrm/blob/develop/Makefile文件?
发布于 2016-07-24 15:44:53
我在macos上也遇到了同样的问题。我发现需要安装pkg-config。尝试运行sudo apt-get install pkg-config安装它
https://stackoverflow.com/questions/34857483
复制相似问题