linux - Node osrm 设置失败

标签 linux node.js makefile installation osrm

我在 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/

相关文章:

linux - 以太网校验和是否通过 AF_PACKET 公开?

c++ - 在 Linux x86_64 上使用单例 C++ 进行多处理

c++ - Makefile,根据OS修改命令

在 GNU make 中一次编译多个 **changed** 源文件

linux - 使用 linux 命令行识别文件中具有 2 个字段的重复行

Java:Linux 中的图形

node.js - 为什么 Node SerialPort Readline 解析器不工作?

node.js - 使用 Node.js 通过自定义 API 向设备(ios 或 android)发送通知

javascript - 使用 lodash 在对象数组中展平数组

java - 如何编译并运行子目录中的java文件