我在 Ubuntu 14.04 上使用 npm install osrm
安装了 node osrm。这已经安装了 OSRM v4.9。下一步是设置 OSRM。我正在尝试按照 wiki 中给出的步骤进行设置-
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归档成功?
最佳答案
我在 macOS 上遇到了同样的问题。我发现需要安装 pkg-config。尝试运行 sudo apt-get install pkg-config
安装它关于linux - Node osrm 设置失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34857483/