【问题标题】:Node osrm setup failure节点 osrm 设置失败
【发布时间】:2016-04-23 18:52:51
【问题描述】:

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

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

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

【问题讨论】:

    标签: linux node.js makefile installation osrm


    【解决方案1】:

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

    安装它

    【讨论】:

      猜你喜欢
      • 2019-04-08
      • 2020-03-31
      • 1970-01-01
      • 2016-12-16
      • 1970-01-01
      • 2015-04-24
      • 1970-01-01
      • 2020-05-02
      • 1970-01-01
      相关资源
      最近更新 更多