urbica / galton

Lightweight Node.js isochrone map server
https://galton.urbica.co
MIT License
271 stars 36 forks source link

build failure #194

Closed geography closed 5 years ago

geography commented 6 years ago

Hi all when I try to build the project I have this issue:

npm WARN deprecated @turf/inside@4.7.3: Module has been renamed to @turf/boolean-point-in-polygon npm WARN deprecated geojson-area@0.1.0: This module is now under the @mapbox namespace: install @mapbox/geojson-area instead

osrm@5.10.0 install /root/.nvm/node_modules/osrm node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.10.0/Release/node-v47-linux-x64.tar.gz node-pre-gyp ERR! stack at Request. (/root/.nvm/node_modules/osrm/node_modules/node-pre-gyp/lib/install.js:118:27) node-pre-gyp ERR! stack at emitOne (events.js:95:20) node-pre-gyp ERR! stack at Request.emit (events.js:182:7) node-pre-gyp ERR! stack at Request.onRequestResponse (/root/.nvm/node_modules/osrm/node_modules/request/request.js:1074:10) node-pre-gyp ERR! stack at emitOne (events.js:90:13) node-pre-gyp ERR! stack at ClientRequest.emit (events.js:182:7) node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:469:21) node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23) node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:359:20) node-pre-gyp ERR! stack at emitOne (events.js:90:13) node-pre-gyp ERR! System Linux 4.4.0-51-generic node-pre-gyp ERR! command "/root/.nvm/versions/node/v5.12.0/bin/node" "/root/.nvm/node_modules/osrm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false" node-pre-gyp ERR! cwd /root/.nvm/node_modules/osrm node-pre-gyp ERR! node -v v5.12.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.36 node-pre-gyp ERR! not ok 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.10.0/Release/node-v47-linux-x64.tar.gz ~/.nvm/node_modules/osrm/build ~/.nvm/node_modules/osrm -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building on a 64 bit system -- Using GNU gold as linker. -- Configuring OSRM in release mode -- Configuring release mode optimizations -- Performing Test LTO_AVAILABLE -- Performing Test LTO_AVAILABLE - Success -- Performing Test HAS_COLOR_FLAG -- Performing Test HAS_COLOR_FLAG - Success -- Setting linker optimizations -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Boost version: 1.58.0 -- Found the following Boost libraries: -- date_time -- chrono -- filesystem -- iostreams -- program_options -- regex -- system -- thread -- unit_test_framework -- atomic -- Found Intel TBB -- TBB interface version: 9002 -- Found EXPAT: /usr/lib/x86_64-linux-gnu/libexpat.so (found version "2.1.0") -- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so (found suitable exact version "5.2.4") -- Using Lua 5.2.4 -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Looking for protozero -- Looking for protozero - found -- Found Osmium: /root/.nvm/node_modules/osrm/third_party/libosmium/include -- Building node_osrm -- Downloading: https://nodejs.org/download/release/v5.12.0/SHASUMS256.txt -- NodeJS: Using node, version v5.12.0 -- Downloading: https://nodejs.org/download/release/v5.12.0/node-v5.12.0-headers.tar.gz -- Configuring node_osrm bindings for NodeJs v5.12.0 -- node_osrm artifacts will be copied to: /root/.nvm/node_modules/osrm/lib/binding -- Configuring done -- Generating done -- Build files have been written to: /root/.nvm/node_modules/osrm/build Scanning dependencies of target UTIL [ 0%] Building CXX object CMakeFiles/UTIL.dir/src/util/log.cpp.o [ 3%] Building CXX object CMakeFiles/UTIL.dir/src/util/coordinate.cpp.o [ 3%] Building CXX object CMakeFiles/UTIL.dir/src/util/fingerprint.cpp.o [ 3%] Building CXX object CMakeFiles/UTIL.dir/src/util/timezones.cpp.o [ 3%] Building CXX object CMakeFiles/UTIL.dir/src/util/timed_historgram.cpp.o [ 3%] Building CXX object CMakeFiles/UTIL.dir/src/util/name_table.cpp.o [ 7%] Building CXX object CMakeFiles/UTIL.dir/src/util/coordinate_calculation.cpp.o [ 7%] Building CXX object CMakeFiles/UTIL.dir/src/util/opening_hours.cpp.o [ 7%] Building CXX object CMakeFiles/UTIL.dir/src/util/geojson_debug_policies.cpp.o [ 7%] Building CXX object CMakeFiles/UTIL.dir/src/util/assert.cpp.o [ 7%] Building CXX object CMakeFiles/UTIL.dir/src/util/exception.cpp.o [ 11%] Building CXX object CMakeFiles/UTIL.dir/src/util/conditional_restrictions.cpp.o [ 11%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/bearing_class.cpp.o [ 11%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/turn_bearing.cpp.o [ 11%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/turn_lanes.cpp.o [ 11%] Building CXX object CMakeFiles/UTIL.dir/src/util/guidance/entry_class.cpp.o [ 11%] Built target UTIL Scanning dependencies of target UPDATER [ 11%] Building CXX object CMakeFiles/UPDATER.dir/src/updater/updater.cpp.o [ 11%] Building CXX object CMakeFiles/UPDATER.dir/src/updater/csv_source.cpp.o [ 11%] Built target UPDATER Scanning dependencies of target osrm_update [ 11%] Linking CXX static library libosrm_update.a [ 11%] Built target osrm_update Scanning dependencies of target CONTRACTOR [ 11%] Building CXX object CMakeFiles/CONTRACTOR.dir/src/contractor/graph_contractor.cpp.o [ 11%] Building CXX object CMakeFiles/CONTRACTOR.dir/src/contractor/contractor_dijkstra.cpp.o [ 11%] Building CXX object CMakeFiles/CONTRACTOR.dir/src/contractor/contractor.cpp.o [ 11%] Built target CONTRACTOR Scanning dependencies of target osrm_contract [ 11%] Building CXX object CMakeFiles/osrm_contract.dir/src/osrm/contractor.cpp.o [ 11%] Linking CXX static library libosrm_contract.a [ 11%] Built target osrm_contract Scanning dependencies of target SERVER [ 11%] Building CXX object CMakeFiles/SERVER.dir/src/server/request_handler.cpp.o [ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/request_parser.cpp.o [ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/service_handler.cpp.o [ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/connection.cpp.o [ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/http/reply.cpp.o [ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/trip_service.cpp.o [ 15%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/match_service.cpp.o [ 19%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/tile_service.cpp.o [ 19%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/table_service.cpp.o [ 19%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/route_service.cpp.o [ 19%] Building CXX object CMakeFiles/SERVER.dir/src/server/service/nearest_service.cpp.o [ 19%] Building CXX object CMakeFiles/SERVER.dir/src/server/api/url_parser.cpp.o [ 23%] Building CXX object CMakeFiles/SERVER.dir/src/server/api/parameters_parser.cpp.o [ 23%] Built target SERVER Scanning dependencies of target PARTITIONER [ 23%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/graph_view.cpp.o [ 26%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/bisection_to_partition.cpp.o [ 26%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/partitioner.cpp.o [ 26%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/tarjan_graph_wrapper.cpp.o [ 26%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/inertial_flow.cpp.o [ 26%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/recursive_bisection.cpp.o [ 30%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/renumber.cpp.o [ 30%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/annotated_partition.cpp.o [ 30%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/dinic_max_flow.cpp.o [ 30%] Building CXX object CMakeFiles/PARTITIONER.dir/src/partition/recursive_bisection_state.cpp.o [ 30%] Built target PARTITIONER Scanning dependencies of target STORAGE [ 30%] Building CXX object CMakeFiles/STORAGE.dir/src/storage/io_config.cpp.o [ 30%] Building CXX object CMakeFiles/STORAGE.dir/src/storage/storage.cpp.o [ 30%] Built target STORAGE Scanning dependencies of target EXTRACTOR [ 30%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_map.cpp.o [ 30%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/graph_compressor.cpp.o [ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/compressed_edge_container.cpp.o [ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extraction_containers.cpp.o [ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_parser.cpp.o /root/.nvm/node_modules/osrm/src/extractor/restriction_parser.cpp: In member function ‘boost::optional osrm::extractor::RestrictionParser::TryParse(const osmium::Relation&) const’: /root/.nvm/node_modules/osrm/src/extractor/restriction_parser.cpp:130:75: warning: ‘((void)& to +8)’ may be used uninitialized in this function [-Wmaybe-uninitialized] boost::optional from = boost::none, via = boost::none, to = boost::none; ^ /root/.nvm/node_modules/osrm/src/extractor/restriction_parser.cpp:130:56: warning: ‘((void)& via +8)’ may be used uninitialized in this function [-Wmaybe-uninitialized] boost::optional from = boost::none, via = boost::none, to = boost::none; ^ /root/.nvm/node_modules/osrm/src/extractor/restriction_parser.cpp:130:36: warning: ‘((void)& from +8)’ may be used uninitialized in this function [-Wmaybe-uninitialized] boost::optional from = boost::none, via = boost::none, to = boost::none; ^ [ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/scripting_environment_lua.cpp.o [ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/edge_based_graph_factory.cpp.o [ 34%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/suffix_table.cpp.o [ 38%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extractor.cpp.o [ 38%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_filter.cpp.o [ 38%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/raster_source.cpp.o [ 38%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/way_restriction_map.cpp.o [ 38%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/restriction_compressor.cpp.o [ 42%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/extractor_callbacks.cpp.o [ 42%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_classification.cpp.o [ 42%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/driveway_handler.cpp.o [ 42%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/roundabout_handler.cpp.o [ 42%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_handler.cpp.o [ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_generator.cpp.o [ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/motorway_handler.cpp.o [ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_discovery.cpp.o [ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/sliproad_handler.cpp.o [ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_handler.cpp.o [ 46%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/node_based_graph_walker.cpp.o [ 50%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_lane_data.cpp.o [ 50%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/coordinate_extractor.cpp.o [ 50%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_lane_augmentation.cpp.o [ 50%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_lane_handler.cpp.o [ 50%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_analysis.cpp.o [ 53%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/suppress_mode_handler.cpp.o [ 53%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection_normalizer.cpp.o [ 53%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/mergable_road_detector.cpp.o [ 53%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/intersection.cpp.o [ 53%] Building CXX object CMakeFiles/EXTRACTOR.dir/src/extractor/guidance/turn_lane_matcher.cpp.o [ 53%] Built target EXTRACTOR Scanning dependencies of target osrm_extract [ 53%] Building CXX object CMakeFiles/osrm_extract.dir/src/osrm/extractor.cpp.o [ 53%] Linking CXX static library libosrm_extract.a [ 53%] Built target osrm_extract Scanning dependencies of target osrm-extract [ 57%] Building CXX object CMakeFiles/osrm-extract.dir/src/tools/extract.cpp.o [ 57%] Linking CXX executable osrm-extract [ 57%] Built target osrm-extract Scanning dependencies of target osrm_partition [ 61%] Linking CXX static library libosrm_partition.a [ 61%] Built target osrm_partition Scanning dependencies of target osrm-partition [ 61%] Building CXX object CMakeFiles/osrm-partition.dir/src/tools/partition.cpp.o [ 61%] Linking CXX executable osrm-partition [ 61%] Built target osrm-partition Scanning dependencies of target osrm-components [ 61%] Building CXX object CMakeFiles/osrm-components.dir/src/tools/components.cpp.o [ 61%] Linking CXX executable osrm-components [ 61%] Built target osrm-components Scanning dependencies of target osrm_store [ 61%] Linking CXX static library libosrm_store.a [ 61%] Built target osrm_store Scanning dependencies of target osrm-datastore [ 61%] Building CXX object CMakeFiles/osrm-datastore.dir/src/tools/store.cpp.o [ 61%] Linking CXX executable osrm-datastore [ 61%] Built target osrm-datastore Scanning dependencies of target CUSTOMIZER [ 61%] Building CXX object CMakeFiles/CUSTOMIZER.dir/src/customize/customizer.cpp.o [ 61%] Built target CUSTOMIZER Scanning dependencies of target ENGINE [ 61%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/engine_config.cpp.o [ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/hint.cpp.o [ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/douglas_peucker.cpp.o [ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/search_engine_data.cpp.o [ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/polyline_compressor.cpp.o [ 65%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/api/json_factory.cpp.o [ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/datafacade/process_memory_allocator.cpp.o [ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/datafacade/shared_memory_allocator.cpp.o [ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_overview.cpp.o [ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/post_processing.cpp.o [ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_route.cpp.o [ 69%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/assemble_steps.cpp.o [ 73%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/lane_processing.cpp.o [ 73%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/verbosity_reduction.cpp.o [ 73%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/collapse_turns.cpp.o [ 73%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/guidance/collapse_scenario_detection.cpp.o [ 73%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/shortest_path.cpp.o [ 76%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/tile_turns.cpp.o [ 76%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/direct_shortest_path.cpp.o [ 76%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/routing_base_ch.cpp.o [ 76%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/alternative_path_ch.cpp.o [ 76%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/routing_base.cpp.o [ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/alternative_path_mld.cpp.o [ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/many_to_many.cpp.o [ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/routing_algorithms/map_matching.cpp.o [ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/viaroute.cpp.o [ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/table.cpp.o [ 80%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/trip.cpp.o [ 84%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/tile.cpp.o [ 84%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/match.cpp.o [ 84%] Building CXX object CMakeFiles/ENGINE.dir/src/engine/plugins/nearest.cpp.o [ 84%] Built target ENGINE Scanning dependencies of target osrm_customize [ 84%] Linking CXX static library libosrm_customize.a [ 84%] Built target osrm_customize Scanning dependencies of target osrm-customize [ 84%] Building CXX object CMakeFiles/osrm-customize.dir/src/tools/customize.cpp.o [ 84%] Linking CXX executable osrm-customize [ 84%] Built target osrm-customize Scanning dependencies of target osrm-contract [ 88%] Building CXX object CMakeFiles/osrm-contract.dir/src/tools/contract.cpp.o [ 88%] Linking CXX executable osrm-contract [ 88%] Built target osrm-contract Scanning dependencies of target osrm [ 88%] Building CXX object CMakeFiles/osrm.dir/src/osrm/osrm.cpp.o [ 88%] Linking CXX static library libosrm.a [ 88%] Built target osrm Scanning dependencies of target osrm-routed [ 88%] Building CXX object CMakeFiles/osrm-routed.dir/src/tools/routed.cpp.o [ 92%] Linking CXX executable osrm-routed [ 92%] Built target osrm-routed Scanning dependencies of target node_osrm [ 92%] Building CXX object src/nodejs/CMakeFiles/node_osrm.dir/node_osrm.cpp.o In file included from /root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/node.h:42:0, from /root/.nvm/node_modules/osrm/node_modules/nan/nan.h:49, from /root/.nvm/node_modules/osrm/include/nodejs/node_osrm.hpp:6, from /root/.nvm/node_modules/osrm/src/nodejs/node_osrm.cpp:15: /root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:4743:20: warning: unused parameter ‘isolate’ [-Wunused-parameter] v8::Isolate isolate, v8::Local name) { ^ /root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:4743:51: warning: unused parameter ‘name’ [-Wunused-parameter] v8::Isolate isolate, v8::Local name) { ^ /root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:5159:50: warning: unused parameter ‘string’ [-Wunused-parameter] virtual void VisitExternalString(Local string) {} ^ /root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:5169:57: warning: unused parameter ‘value’ [-Wunused-parameter] virtual void VisitPersistentHandle(Persistent value, ^ /root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:5170:47: warning: unused parameter ‘class_id’ [-Wunused-parameter] uint16_t class_id) {} ^ /root/.nvm/node_modules/osrm/build/src/nodejs/node/v5.12.0/include/v8.h:7008:55: warning: unused parameter ‘isolate’ [-Wunused-parameter] V8_INLINE static void CheckInitialized(v8::Isolate isolate) { ^ [ 96%] Linking CXX shared library Release/node_osrm.node [ 96%] Built target node_osrm Scanning dependencies of target copy_artifacts [ 96%] Generating ../../../lib/binding/osrm-extract [ 96%] Generating ../../../lib/binding/osrm-contract [ 96%] Generating ../../../lib/binding/osrm-routed [100%] Generating ../../../lib/binding/osrm-datastore [100%] Generating ../../../lib/binding/osrm-components [100%] Generating ../../../lib/binding/osrm-partition [100%] Generating ../../../lib/binding/osrm-customize [100%] Generating ../../../lib/binding/node_osrm.node [100%] Built target copy_artifacts ~/.nvm/node_modules/osrm nvm@0.33.8 /root/.nvm ├── 5@0.0.1 ├── galton@5.10.0 extraneous ├─┬ mkdirp@0.5.1 │ └── minimist@0.0.8 ├─┬ request@2.81.0 │ ├── aws-sign2@0.6.0 │ ├── aws4@1.6.0 │ ├── caseless@0.12.0 │ ├─┬ combined-stream@1.0.5 │ │ └── delayed-stream@1.0.0 │ ├── extend@3.0.1 │ ├── forever-agent@0.6.1 │ ├─┬ form-data@2.1.4 │ │ └── asynckit@0.4.0 │ ├─┬ har-validator@4.2.1 │ │ ├─┬ ajv@4.11.8 │ │ │ ├── co@4.6.0 │ │ │ └─┬ json-stable-stringify@1.0.1 │ │ │ └── jsonify@0.0.0 │ │ └── har-schema@1.0.5 │ ├─┬ hawk@3.1.3 │ │ ├── boom@2.10.1 │ │ ├── cryptiles@2.0.5 │ │ ├── hoek@2.16.3 │ │ └── sntp@1.0.9 │ ├─┬ http-signature@1.1.1 │ │ ├── assert-plus@0.2.0 │ │ ├─┬ jsprim@1.4.0 │ │ │ ├── assert-plus@1.0.0 │ │ │ ├── extsprintf@1.0.2 │ │ │ ├── json-schema@0.2.3 │ │ │ └── verror@1.3.6 │ │ └─┬ sshpk@1.13.0 │ │ ├── asn1@0.2.3 │ │ ├── assert-plus@1.0.0 │ │ ├── bcrypt-pbkdf@1.0.1 │ │ ├─┬ dashdash@1.14.1 │ │ │ └── assert-plus@1.0.0 │ │ ├── ecc-jsbn@0.1.1 │ │ ├─┬ getpass@0.1.7 │ │ │ └── assert-plus@1.0.0 │ │ ├── jodid25519@1.0.2 │ │ ├── jsbn@0.1.1 │ │ └── tweetnacl@0.14.5 │ ├── is-typedarray@1.0.0 │ ├── isstream@0.1.2 │ ├── json-stringify-safe@5.0.1 │ ├─┬ mime-types@2.1.15 │ │ └── mime-db@1.27.0 │ ├── oauth-sign@0.8.2 │ ├── performance-now@0.2.0 │ ├── qs@6.4.0 │ ├── safe-buffer@5.1.0 │ ├── stringstream@0.0.5 │ ├─┬ tough-cookie@2.3.2 │ │ └── punycode@1.4.1 │ ├── tunnel-agent@0.6.0 │ └── uuid@3.0.1 └─┬ rimraf@2.6.1 └─┬ glob@7.1.2 ├── fs.realpath@1.0.0 ├─┬ inflight@1.0.6 │ └── wrappy@1.0.2 ├── inherits@2.0.3 ├─┬ minimatch@3.0.4 │ └─┬ brace-expansion@1.1.7 │ ├── balanced-match@0.4.2 │ └── concat-map@0.0.1 ├── once@1.4.0 └── path-is-absolute@1.0.1 Any helps? Regards, Ema.

stepankuzmin commented 6 years ago

@geography could you please provide your software setup versions?

geography commented 6 years ago

Hi Stepan, which software are you speaking about?

node-pre-gyp ERR! node -v v5.12.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.36

thanks in advance, Ema.

geography commented 6 years ago

Any helps on this...

stepankuzmin commented 6 years ago

Could you please try to install osrm package separately? Are there any issues with that?

geography commented 6 years ago

Hi @stepankuzmin I have the same problem when I try to install osrm package with npm command, the output is:

sudo npm install osrm

osrm@5.14.3 install /home/ubuntu/node_modules/osrm node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.14.3/Release/node-v51-linux-x64.tar.gz node-pre-gyp ERR! stack at Request. (/home/ubuntu/node_modules/osrm/node_modules/node-pre-gyp/lib/install.js:118:27) node-pre-gyp ERR! stack at emitOne (events.js:101:20) node-pre-gyp ERR! stack at Request.emit (events.js:191:7) node-pre-gyp ERR! stack at Request.onRequestResponse (/home/ubuntu/node_modules/osrm/node_modules/request/request.js:1074:10) node-pre-gyp ERR! stack at emitOne (events.js:96:13) node-pre-gyp ERR! stack at ClientRequest.emit (events.js:191:7) node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21) node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23) node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:411:20) node-pre-gyp ERR! stack at emitOne (events.js:96:13) node-pre-gyp ERR! System Linux 4.4.0-51-generic node-pre-gyp ERR! command "/usr/bin/nodejs" "/home/ubuntu/node_modules/osrm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false" node-pre-gyp ERR! cwd /home/ubuntu/node_modules/osrm node-pre-gyp ERR! node -v v7.10.1 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.14.3/Release/node-v51-linux-x64.tar.gz ~/node_modules/osrm/build ~/node_modules/osrm CMake Error: The source directory "/home/ubuntu/node_modules/osrm" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. npm WARN enoent ENOENT: no such file or directory, open '/home/ubuntu/package.json' npm WARN ubuntu No description npm WARN ubuntu No repository field. npm WARN ubuntu No README data npm WARN ubuntu No license field. npm ERR! Linux 4.4.0-51-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "osrm" npm ERR! node v7.10.1 npm ERR! npm v4.2.0 npm ERR! code ELIFECYCLE npm ERR! errno 1

npm ERR! osrm@5.14.3 install: node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the osrm@5.14.3 install script 'node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the osrm package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs osrm npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls osrm npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/.npm/_logs/2018-01-10T09_39_55_721Z-debug.log

any suggestion is appreciated,

Regards, Ema.

geography commented 6 years ago

Hi some hints on this..I'm struggling... 👎 :-(

stepankuzmin commented 6 years ago

Could you please try installing it using node v6 or node v4?

stepankuzmin commented 6 years ago

The problem is, that the OSRM Node.js bindings are only available for Node.js 4 and 6.

geography commented 6 years ago

hi @stepankuzmin after the switch: 1) node -v = v4.8.7 2) npm install galton

the results is:

[osrm] Success: "/home/ubuntu/node_modules/galton/node_modules/osrm/lib/binding/node_osrm.node" is installed via remote galton@5.10.0 node_modules/galton ├── minimist@1.2.0 └── osrm@5.10.0

but when I try ti run: galton /home/osrm/data/italy-latest.osrm

the results is:

module.js:327 throw err; ^

Error: Cannot find module './src/server.js' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/usr/local/lib/node_modules/galton/index.js:3:16) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function.Module.runMain (module.js:441:10)

geography commented 6 years ago

where I'm wrong?

stepankuzmin commented 6 years ago

Thanks for looking, I will investigate this issue further.

geography commented 6 years ago

Hi @stepankuzmin any news about this issue?

Regards, Ema.

geography commented 6 years ago

hi @stepankuzmin nothing yet? you had time to investigate the matter?

Regards, Ema.

stepankuzmin commented 6 years ago

Yep, thanks for your waiting. I'm planning to investigate it this weekend.

stepankuzmin commented 6 years ago

Could you please try using galton from the master branch? You can clone the repo and run galton like this:

git clone https://github.com/urbica/galton.git
cd galton
npm install
node index.js monaco.osrm # replace monaco.osrm with your osrm file
geography commented 6 years ago

Hi @stepankuzmin I have the following errors:

npm install

osrm@5.14.2 install /home/ubuntu/work/code/Js/galton/node_modules/osrm node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.14.2/Release/node-v51-linux-x64.tar.gz node-pre-gyp ERR! stack at Request. (/home/ubuntu/work/code/Js/galton/node_modules/osrm/node_modules/node-pre-gyp/lib/install.js:118:27) node-pre-gyp ERR! stack at emitOne (events.js:101:20) node-pre-gyp ERR! stack at Request.emit (events.js:191:7) node-pre-gyp ERR! stack at Request.onRequestResponse (/home/ubuntu/work/code/Js/galton/node_modules/osrm/node_modules/request/request.js:1074:10) node-pre-gyp ERR! stack at emitOne (events.js:96:13) node-pre-gyp ERR! stack at ClientRequest.emit (events.js:191:7) node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21) node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23) node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:411:20) node-pre-gyp ERR! stack at emitOne (events.js:96:13) node-pre-gyp ERR! System Linux 4.4.0-51-generic node-pre-gyp ERR! command "/usr/bin/nodejs" "/home/ubuntu/work/code/Js/galton/node_modules/osrm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false" node-pre-gyp ERR! cwd /home/ubuntu/work/code/Js/galton/node_modules/osrm node-pre-gyp ERR! node -v v7.10.1 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.14.2/Release/node-v51-linux-x64.tar.gz /home/ubuntu/work/code/Js/galton/node_modules/osrm/build /home/ubuntu/work/code/Js/galton/node_modules/osrm CMake Error: The source directory "/home/ubuntu/work/code/Js/galton/node_modules/osrm" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.1 (node_modules/sane/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! Linux 4.4.0-51-generic npm ERR! argv "/root/.nvm/versions/node/v6.10.3/bin/node" "/root/.nvm/versions/node/v6.10.3/bin/npm" "install" npm ERR! node v6.10.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE

npm ERR! osrm@5.14.2 install: node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the osrm@5.14.2 install script 'node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the osrm package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs osrm npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls osrm npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/work/code/Js/galton/npm-debug.log

Ema.

stepankuzmin commented 6 years ago

It seems that there is a problem with your setup, so OSRM can't be installed. You could try to check OSRM build instructions and https://github.com/Project-OSRM/osrm-backend#using-the-nodejs-bindings

cm4ker commented 6 years ago

Hi! I have the same problem with install osrm.

OS : Windows 10 npm -v: 5.6.0 node -v: v8.9.4

Then I download osrm binaryes and try to launch

git clone https://github.com/urbica/galton.git cd galton npm install node index.js monaco.osrm # replace monaco.osrm with your osrm file

I get next error: Error: Cannot find module 'osrm' at Function.Module._resolveFilename (module.js:538:15) at Function.Module._load (module.js:468:25) at Module.require (module.js:587:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\n.zenkov\galton\galton\src\index.js:2:14) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3)

It seems that there is a problem with your setup, so OSRM can't be installed. You could try to check OSRM build instructions and https://github.com/Project-OSRM/osrm-backend#using-the-nodejs-bindings

I can't figure out with instruction which you give. Can you help me with osrm installation.

stepankuzmin commented 6 years ago

@cm4ker Could you please try installing it using node v6 or node v4?

cm4ker commented 6 years ago

@stepankuzmin I do next steps:

  1. Install the nvm for switching node version (from here)
  2. Run nvm install 4.6.2 and then nvm use 4.6.2
  3. Run npm install in cloned master of galton project brunch (same error)
  4. Do the same with node version 6.12.3

This is error on npm install command run:

' osrm@5.15.1 install C:\Users\myuser\galton\galton\node_modules\osrm node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v48-win32-x64.tar.gz node-pre-gyp ERR! stack at Request. (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\node-pre-gyp\lib\install.js:118:27) node-pre-gyp ERR! stack at emitOne (events.js:101:20) node-pre-gyp ERR! stack at Request.emit (events.js:188:7) node-pre-gyp ERR! stack at Request.onRequestResponse (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\request\request.js:1074:10) node-pre-gyp ERR! stack at emitOne (events.js:96:13) node-pre-gyp ERR! stack at ClientRequest.emit (events.js:188:7) node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:474:21) node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23) node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:363:20) node-pre-gyp ERR! stack at emitOne (events.js:96:13) node-pre-gyp ERR! System Windows_NT 10.0.16299 node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build=false" node-pre-gyp ERR! cwd C:\Users\myuser\galton\galton\node_modules\osrm node-pre-gyp ERR! node -v v6.12.3 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v48-win32-x64.tar.gz`

I not exclude that I do something wrong.

stepankuzmin commented 6 years ago

@cm4ker did you try node v6? Also, you can check OSRM compilation docs for Windows.

cm4ker commented 6 years ago

Hi, @stepankuzmin!

did you try node v6

I wrote this:

Do the same with node version 6.12.3

Node v6 and node version 6.12.3 are different? I'm beginner in this tecnologies.

Also, you can check OSRM compilation docs for Windows.

I have already compiled binaries for windows platform (download it from osrm repo). I extract the map with use osrm-extract.exe, but galton don't see the osrm module. Then I try to run it directly I go down with error:

node index.js C:\Users\myuser\galton\omsk.osrm
module.js:540
    throw err;
    ^

Error: Cannot find module 'osrm'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\myuser\galton\galton\src\index.js:2:14)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)

How can I install libraryes manualy or what version of node.js(If I don't use it right, please let me know. I wrote all steps. )

stepankuzmin commented 6 years ago

I've just released galton v5.15.1.

@cm4ker could you please try using the latest version?

cm4ker commented 6 years ago

I do next moves:


C:\Users\myuser\galton\galton>nvm use 8.9.4
Now using node v8.9.4 (64-bit)

C:\Users\myuser\galton\galton>git pull
From https://github.com/urbica/galton
 * [new tag]         v5.15.1    -> v5.15.1
Already up-to-date.

C:\Users\myuser\galton\galton>git pull
Already up-to-date.

C:\Users\myuser\galton\galton>npm install

> osrm@5.15.1 install C:\Users\myuser\galton\galton\node_modules\osrm
> node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v57-win32-x64.tar.gz
node-pre-gyp ERR! stack     at Request.<anonymous> (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\node-pre-gyp\lib\install.js:118:27)
node-pre-gyp ERR! stack     at emitOne (events.js:121:20)
node-pre-gyp ERR! stack     at Request.emit (events.js:211:7)
node-pre-gyp ERR! stack     at Request.onRequestResponse (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\request\request.js:1074:10)
node-pre-gyp ERR! stack     at emitOne (events.js:116:13)
node-pre-gyp ERR! stack     at ClientRequest.emit (events.js:211:7)
node-pre-gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:551:21)
node-pre-gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
node-pre-gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:440:20)
node-pre-gyp ERR! stack     at emitOne (events.js:116:13)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\myuser\\galton\\galton\\node_modules\\osrm\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd C:\Users\myuser\galton\galton\node_modules\osrm
node-pre-gyp ERR! node -v v8.9.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v57-win32-x64.tar.gz
"." не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! osrm@5.15.1 install: `node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the osrm@5.15.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\myuser\AppData\Roaming\npm-cache\_logs\2018-02-01T07_22_55_380Z-debug.log
stepankuzmin commented 6 years ago

You should still use node v6: nvm use 6

cm4ker commented 6 years ago

You should still use node v6: nvm use 6

The same issue then I use node v6.

C:\Users\myuser\galton\galton>nvm use 6
6.0.0
Now using node v6.0.0 (64-bit)

C:\Users\myuser\galton\galton>npm install

> osrm@5.15.1 install C:\Users\myuser\galton\galton\node_modules\osrm
> node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v48-win32-x64.tar.gz
node-pre-gyp ERR! stack     at Request.<anonymous> (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\node-pre-gyp\lib\install.js:118:27)
node-pre-gyp ERR! stack     at emitOne (events.js:101:20)
node-pre-gyp ERR! stack     at Request.emit (events.js:188:7)
node-pre-gyp ERR! stack     at Request.onRequestResponse (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\request\request.js:1074:10)
node-pre-gyp ERR! stack     at emitOne (events.js:96:13)
node-pre-gyp ERR! stack     at ClientRequest.emit (events.js:188:7)
node-pre-gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:469:21)
node-pre-gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:105:23)
node-pre-gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:359:20)
node-pre-gyp ERR! stack     at emitOne (events.js:96:13)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\myuser\\galton\\galton\\node_modules\\osrm\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd C:\Users\myuser\galton\galton\node_modules\osrm
node-pre-gyp ERR! node -v v6.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v48-win32-x64.tar.gz
"." не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! osrm@5.15.1 install: `node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the osrm@5.15.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\myuser\AppData\Roaming\npm-cache\_logs\2018-02-01T08_11_01_408Z-debug.log
geography commented 6 years ago

Hi all,

I cloned the latest release of galton,

my environment is: root@xxxx:/home/ubuntu/galton# node -v v6.10.3 root@xxxx:/home/ubuntu/galton# npm -v 3.10.10 root@xxxx:/home/ubuntu/galton# nvm --version 0.33.8

when I try to npm install the output is:

osrm@5.15.1 install /home/ubuntu/galton/node_modules/osrm node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v51-linux-x64.tar.gz node-pre-gyp ERR! stack at Request. (/home/ubuntu/galton/node_modules/osrm/node_modules/node-pre-gyp/lib/install.js:118:27) node-pre-gyp ERR! stack at emitOne (events.js:101:20) node-pre-gyp ERR! stack at Request.emit (events.js:191:7) node-pre-gyp ERR! stack at Request.onRequestResponse (/home/ubuntu/galton/node_modules/osrm/node_modules/request/request.js:1074:10) node-pre-gyp ERR! stack at emitOne (events.js:96:13) node-pre-gyp ERR! stack at ClientRequest.emit (events.js:191:7) node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21) node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23) node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:411:20) node-pre-gyp ERR! stack at emitOne (events.js:96:13) node-pre-gyp ERR! System Linux 4.4.0-51-generic node-pre-gyp ERR! command "/usr/bin/nodejs" "/home/ubuntu/galton/node_modules/osrm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false" node-pre-gyp ERR! cwd /home/ubuntu/galton/node_modules/osrm node-pre-gyp ERR! node -v v7.10.1 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v51-linux-x64.tar.gz /home/ubuntu/galton/node_modules/osrm/build /home/ubuntu/galton/node_modules/osrm CMake Error: The source directory "/home/ubuntu/galton/node_modules/osrm" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/documentation/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.1 (node_modules/jest/node_modules/jest-cli/node_modules/jest-haste-map/node_modules/sane/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! Linux 4.4.0-51-generic npm ERR! argv "/root/.nvm/versions/node/v6.10.3/bin/node" "/root/.nvm/versions/node/v6.10.3/bin/npm" "install" npm ERR! node v6.10.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE

npm ERR! osrm@5.15.1 install: node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the osrm@5.15.1 install script 'node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the osrm package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs osrm npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls osrm npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/galton/npm-debug.log

geography commented 6 years ago

@stepankuzmin can you please write a doc for properly galton usage otherwise the project is unusuable...

cm4ker commented 6 years ago

Hi @geography I already opened ticket in osrm github Project-OSRM/osrm-backend#4841

UPD: They no longer support build for Windows out of box. Issued was closed. I'll try to compile this by myself

geography commented 6 years ago

hi @stepankuzmin I'm working in a linux (ubuntu) environment not on windows...

stepankuzmin commented 6 years ago

@geography there is still an issue with OSRM itself https://github.com/Project-OSRM/osrm-backend/issues/4772 Did you try https://github.com/Project-OSRM/osrm-backend#using-the-nodejs-bindings?

stepankuzmin commented 6 years ago

Hi there! I've just released Galton v5.16.4 with Node v8 support, could you please try it?

pshavr commented 5 years ago

Короче npm нужно ставить через NVM степан столько веток и никакой помощи

In short npm need to be installed via NVM Stepan, so many branches and 0 help

stepankuzmin commented 5 years ago

Galton uses OSRM under the hood, and it currently supports only Linux and macOS with Node v6 and v8. So there is no OSRM bindings for Windows (see https://github.com/Project-OSRM/osrm-backend/issues/4171). We are currently waiting for node-osrm to switch to Node.js's ABI stable N-API. This would resolve building issues for Galton.

Meanwhile you could try to use prebuild Galton docker image:

wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf
docker run -t -v $(pwd):/data osrm/osrm-backend:v5.18.0 osrm-extract -p /opt/car.lua /data/berlin-latest.osm.pbf
docker run -t -v $(pwd):/data osrm/osrm-backend:v5.18.0 osrm-contract /data/berlin-latest.osrm
docker run -t -i -p 4000:4000 -v $(pwd):/data urbica/galton:v5.18.0 galton /data/berlin-latest.osrm
Yerkewka commented 5 years ago

Hello, everyone! I've installed galton globally and through the git repository. Everything installed correctly and osm.pbf extracted to osrm without any errors. But when I run command "npm start berlin-latest.osrm", I have the next error:

npm ERR! Linux 4.15.0-29-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start" "berlin-latest.osrm" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE npm ERR! galton@5.19.0-beta.1 start: node index.js "berlin-latest.osrm" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the galton@5.19.0-beta.1 start script 'node index.js "berlin-latest.osrm"'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the galton package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node index.js "berlin-latest.osrm" npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs galton npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls galton npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/yerkebulan/Projects/NodeJs/Galton/npm-debug.log

Could you help me to cape with this problem?

stepankuzmin commented 5 years ago

Hi @Yerkewka! It seems that you are using a beta release of galton. A newer version has a different command-line interface, you can see it in help:

Galton. Lightweight Node.js isochrone server.

Usage:
  galton extract [--useBestMatch] <name>
  galton build [--profile=<profileName>] <filename>
  galton run [options] (--sharedMemory | <filename>)
  galton extract build run [--useBestMatch --profile=<profileName>] [options] <name>
  galton -h | --help
  galton --version

Options:
  --cellSize=<cellSize>               Distance across each cell [default: 0.2].
  --concavity=<concavity>             Concaveman relative measure of concavity [default: 2].
  --deintersect                       Whether or not to deintersect the final isochrones [default: true].
  --intervals=<intervals>             Isochrones intervals in minutes [default: 10,20,30].
  --lengthThreshold=<lengthThreshold> Concaveman length threshold [default: 0].
  --port=<port>                       Port to run on [default: 3000].
  --algorithm=<algorithm>             Algorithm used by OSRM (CH or MLD) [default: CH].
  --radius=<radius>                   Isochrone buffer radius [default: 6].
  --sharedMemory                      Use shared memory [default: false].
  --units=<units>                     Either 'kilometers' or 'miles' [default: kilometers].
  --useBestMatch                      Geocoder will use the best match for the query
  -p --profile=<profileName>          OSRM profile name that will be used for graph building
  -h --help                           Show this screen.
  --version                           Show version.

To start galton with contracted OSRM graph you need to run it as

galton run berlin-latest.osrm