linux – 节点osrm安装失败

我在Ubuntu 14.04上使用npm install osrm安装了节点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

我已安装所有必需的库并具有节点v0.12

如何成功运行https://github.com/Project-OSRM/node-osrm/blob/develop/Makefile文件?

解决方法

我在macos上遇到了同样的问题.我发现需要安装pkg-config.尝试安装它运行sudo apt-get install pkg-config

相关文章

linux常用进程通信方式包括管道(pipe)、有名管道(FIFO)、...
Linux性能观测工具按类别可分为系统级别和进程级别,系统级别...
本文详细介绍了curl命令基础和高级用法,包括跳过https的证书...
本文包含作者工作中常用到的一些命令,用于诊断网络、磁盘占满...
linux的平均负载表示运行态和就绪态及不可中断状态(正在io)的...
CPU上下文频繁切换会导致系统性能下降,切换分为进程切换、线...