加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 节点osrm安装失败

发布时间:2020-12-14 01:44:00 所属栏目:Linux 来源:网络整理
导读:我在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:
我在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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读