Node osrm installation error

I installed node osrm using npm install osrmon Ubuntu 14.04. This installed OSRM v4.9. The next step is to configure OSRM. I am trying to follow the steps provided on the wiki for the setting, https://github.com/Project-OSRM/node-osrm

When I run make, I get the following errors

/bin/sh: 1: [[: not found
/bin/sh: 1: echo you need pkg-config installed: not found
make: *** [pkgconfig] Error 127

When I run ./Makefile, I get the following errors

./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

I even added shebang to use bash since errors seem to be related to not using bash

I installed all the necessary libraries and node v0.12

How can I successfully run the file https://github.com/Project-OSRM/node-osrm/blob/develop/Makefile ?

+4
source share
1

macos. , pkg-config . sudo apt-get install pkg-config

+1

Source: https://habr.com/ru/post/1624800/


All Articles