gagan-bansal / osm-for-my-country

It's small effort to make OSM maps usage simple. This is a boilerplate combining many packages related to OSM. (beta)
MIT License
53 stars 10 forks source link

node index.js init not completing conversion to "my-area-final-data.osm" #3

Closed Aeilert closed 7 years ago

Aeilert commented 7 years ago

I get the following error when trying to run `node index.js init --region 'Europe, Norway'. Seems to be a problem with the last step creating the "my-area-final-data.osm". All the other steps run fine. Any idea what could be wrong?

init ...
downloadCountryData ...
downloading region data: http://download.geofabrik.de/europe/norway-latest.osm.pbf
curl: echo  `curl -s --connect-timeout 10 --retry 10 --retry-delay 10 --retry-max-time 500 -w '%{http_code}' http://download.geofabrik.de/europe/norway-latest.osm.pbf -o my-area.osm.pbf `

Using config file: './config/default.json'

200

Writing current state of data ...
Current state: http://download.geofabrik.de/europe/norway-updates/state.txt
The number of request attempts: 1
pbf2osm ...
dropCountriesBorder ...

done
downloading countries border data with overpass api..
curl overpass: echo  `curl -s --connect-timeout 10 --retry 10 --retry-delay 10 --retry-max-time 500 -H "Host: overpass-api.de" -H "Content-Type: text/xml" -w '%{http_code}' -d 'relation["admin_level"="2"];(._;>;); out body;' http://overpass-api.de/api/interpreter -o countries-border.osm `
000

downloaded coutries borders
downloading my country border data with overpass api..
curl my country overpass: echo  `curl -s --connect-timeout 10 --retry 10 --retry-delay 10 --retry-max-time 500 -H "Host: overpass-api.de" -H "Content-Type: text/xml" -w '%{http_code}' -d 'relation["admin_level"="2"] ["name:en"="Norway"];(._;>;); out body;' http://overpass-api.de/api/interpreter -o my-area-border.osm `
200

downloaded my country border
osm2geojson ...

done
simplifyGeoJSON ...
/Users/aleksandereilertsen/osm-for-my-country/node_modules/.bin/simplify-geojson /Users/aleksandereilertsen/osm-for-my-country/data/my-area-border.geojson --tolerance 0.001 > /Users/aleksandereilertsen/osm-for-my-country/data/my-area-border-simplified.geojson

done
view file saved
geojson2poly ...
Done!

done
some error in exec.
/Users/.../osm-for-my-country/cmd-init.js:491
    throw err //callback(err)
    ^

Error: Command failed: ./osmconvert --hash-memory=12025 /Users/.../osm-for-my-country/data/my-area-dropped-countries.osm /Users/.../osm-for-my-country/data/countries-border.osm --out-osm -o=/Users/.../osm-for-my-country/data/my-area-final-data.osm
osmconvert Error: could not open input file: /Users/.../osm-for-my-country/data/countries-border.osm

    at ChildProcess.exithandler (child_process.js:270:12)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:897:16)
    at Socket.stream.socket.on (internal/child_process.js:340:11)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at Pipe._handle.close [as _onclose] (net.js:548:12)
gagan-bansal commented 7 years ago

Please tell me your system configuration.

Aeilert commented 7 years ago

MacBook Pro (2015-model) running on: OS X El Captain (version 10.11.6) 2,9 GHz Intel Core i5 16 GB 1867 MHz DDR3 Intel Iris Graphics 6100 1536 MB

Also tried cloning and reinstalling again. Same problem, but noticed some more warnings in the installation log.

npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
Install project dependent node.js packages
npm WARN deprecated sphericalmercator@1.0.5: This module is now under the @mapbox namespace: install @mapbox/sphericalmercator instead
npm WARN deprecated turf-buffer@3.0.12: Turf packages are now namespaced: please use @turf/buffer instead
npm WARN deprecated geojson-normalize@0.0.0: This module is now under the @mapbox namespace: install @mapbox/geojson-normalize instead
npm WARN deprecated turf-combine@3.0.12: Turf packages are now namespaced: please use @turf/combine instead
npm WARN deprecated turf-helpers@3.0.12: Turf packages are now namespaced: please use @turf/helpers instead
npm WARN deprecated geojson-area@0.1.0: This module is now under the @mapbox namespace: install @mapbox/geojson-area instead
npm WARN deprecated turf-meta@3.0.12: Turf packages are now namespaced: please use @turf/meta instead
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN osm-for-my-country@1.0.0 No repository field.
gagan-bansal commented 7 years ago

Two points related to system

  1. Disk space: for Norway init command may require ~50GB space. So please check the disk space availability
  2. For many processes this program allocates 70% of the memory. Some internal commands may not be so intelligent to check if that much memory is available or not. Before starting the init command please check manually free -h. You can configure it here ./config/default.json by changing system.memoryPercentage value if 70% of the memory is not available.

You can ignore these npm warning. To try again just clean the data folder /Users/.../osm-for-my-country/data and then you can run again

node index.js init --region 'Europe, Norway'

I see in your error log countries-border.osm file open error

osmconvert Error: could not open input file: /Users/.../osm-for-my-country/data/countries-border.osm

Just check if file exists at path and this must of ~340MB

If this file 'countries-border.osm` file is not present. Please run the following command

echo  `curl -s --connect-timeout 10 --retry 10 --retry-delay 10 --retry-max-time 500 -H "Host: overpass-api.de" -H "Content-Type
: text/xml" -w '%{http_code}' -d 'relation["admin_level"="2"];(._;>;); out body;' http://overpass-api.de/api/interpreter -o countries-border.os
m `

This may hint us what is the issue.

I have not tested this project on Mac but as you are able to install all the modules properly without any error then program should work. And we would able to resolve the issue.

Aeilert commented 7 years ago

Great. Thanks.

I deleted the osm-folder and installed again. I have 400GB of free hard drive space, so that shouldn't be a problem. I don't think free -h is a command on OS X, but I did run top which indicates that most of my Physical Memory is used, so this might be the problem. I am although not completely sure how to interpret this since my Activity Monitor definitely is in green (3 of 16 GB in use). I'll look in to this some more.

Output from top:

Processes: 247 total, 2 running, 10 stuck, 235 sleeping, 1158 threads  13:06:55
Load Avg: 1.17, 1.16, 1.23  CPU usage: 1.46% user, 1.22% sys, 97.31% idle
SharedLibs: 149M resident, 18M data, 10M linkedit.
MemRegions: 33034 total, 1888M resident, 75M private, 719M shared.
PhysMem: 16G used (2062M wired), 98M unused.
VM: 682G vsize, 533M framework vsize, 115255(0) swapins, 177041(0) swapouts.
Networks: packets: 3123517/9173M in, 2569572/6992M out.
Disks: 2708156/266G read, 1776162/157G written.

Regarding the file countries-border.osm there is no such file. The echo-command outputs 400 as a result.

gagan-bansal commented 7 years ago

By looking at top output it seems first you have to free memory, the run the init again.

Aeilert commented 7 years ago

I agree. Spent some time figuring out what was wrong with my memory usage, and ended up with upgrading to macOS Sierra. The OS-upgrades on Macs are far from clean, but after som more cleaning and reboots the default memory usage is much better now.

Processes: 238 total, 2 running, 236 sleeping, 842 threads          18:01:45
Load Avg: 1.16, 1.16, 1.37  CPU usage: 3.32% user, 3.80% sys, 92.87% idle
SharedLibs: 163M resident, 42M data, 18M linkedit.
MemRegions: 17148 total, 1068M resident, 116M private, 476M shared.
PhysMem: 3842M used (1510M wired), 12G unused.
VM: 646G vsize, 627M framework vsize, 0(0) swapins, 0(0) swapouts.
Networks: packets: 388668/940M in, 210106/471M out.
Disks: 633968/54G read, 269955/26G written.

I also change the system.memoryPercentage to 50.

Still get the same error though. I noticed that the process really maxed out my memory (going from around 3-4 GB before running init to 16GB), so could still be a memory issue. However not sure what to do if 12GB of free RAM is not enough.

gagan-bansal commented 7 years ago

I'll create small droplet from DigitalOcean and will try it but on Linux dist.

gagan-bansal commented 7 years ago

I had used 4GB RAM machine earlier, so there shouldn't​ be such issue.

gagan-bansal commented 7 years ago

I created a droplet of 4GB RAM with just 2 core from DigitalOcean and completed the init command.

Regarding the OS X I doubt installation unless you have done it manually, as if you see install.sh there are checks for CentOS or Ubuntu. So for any other OS many packages would not be installed.

Aeilert commented 7 years ago

Ok. I'll try on a Linux VM.

Regarding depending packages: Mac-users should check their versions of node and npm, as well installing wget. I did this the first time I tried the installation, and thought this might be sufficient. Posting the full installation below for reference.

Aleksanders-MacBook-Pro:~ aleksandereilertsen$ git clone https://github.com/gagan-bansal/osm-for-my-country.git
Cloning into 'osm-for-my-country'...
remote: Counting objects: 102, done.
remote: Total 102 (delta 0), reused 0 (delta 0), pack-reused 102
Receiving objects: 100% (102/102), 26.97 KiB | 0 bytes/s, done.
Resolving deltas: 100% (57/57), done.
Aleksanders-MacBook-Pro:~ aleksandereilertsen$ cd osm-for-my-country
Aleksanders-MacBook-Pro:osm-for-my-country aleksandereilertsen$ bash install.sh
Installing postgres and postgis
sudo: unknown user: postgres
sudo: unable to initialize policy plugin
sudo: unknown user: postgres
sudo: unable to initialize policy plugin
sudo: unknown user: postgres
sudo: unable to initialize policy plugin
sudo: unknown user: postgres
sudo: unable to initialize policy plugin
sudo: unknown user: postgres
sudo: unable to initialize policy plugin
sudo: unknown user: postgres
sudo: unable to initialize policy plugin
installing osm2pgsql ...
Installed osm2pgsql.
Installing OSM tool 'osmconvert' ...
--2017-06-22 18:06:51--  http://m.m.i24.cc/osmconvert.c
Resolving m.m.i24.cc... 80.67.17.148, 2a00:1158:1000:300::294
Connecting to m.m.i24.cc|80.67.17.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 472457 (461K) [text/x-c]
Saving to: ‘STDOUT’

-                   100%[===================>] 461.38K   766KB/s    in 0.6s    

2017-06-22 18:06:52 (766 KB/s) - written to stdout [472457/472457]

<stdin>:11276:40: warning: '&&' within '||' [-Wlogical-op-parentheses]
                  if(global_completemp &&
                     ~~~~~~~~~~~~~~~~~~^~
<stdin>:11276:40: note: place parentheses around the '&&' expression to silence
      this warning
                  if(global_completemp &&
                                       ^
<stdin>:11278:49: warning: '&&' within '||' [-Wlogical-op-parentheses]
                      global_completeboundaries &&
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
<stdin>:11278:49: note: place parentheses around the '&&' expression to silence
      this warning
                      global_completeboundaries &&
                                                ^
2 warnings generated.
Installing OSM tool 'osmfilter' ...
--2017-06-22 18:06:57--  http://m.m.i24.cc/osmfilter.c
Resolving m.m.i24.cc... 80.67.17.148, 2a00:1158:1000:300::294
Connecting to m.m.i24.cc|80.67.17.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 239262 (234K) [text/x-c]
Saving to: ‘STDOUT’

-                   100%[===================>] 233.65K  --.-KB/s    in 0.06s   

2017-06-22 18:06:57 (3.57 MB/s) - written to stdout [239262/239262]

Installing nvm ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9135  100  9135    0     0  40872      0 --:--:-- --:--:-- --:--:-- 40964
=> nvm is already installed in /Users/aleksandereilertsen/.nvm, trying to update using git
=> 
=> Source string already in /Users/aleksandereilertsen/.bash_profile
=> You currently have modules installed globally with `npm`. These will no
=> longer be linked to the active version of Node when you install a new node
=> with `nvm`; and they may (depending on how you construct your `$PATH`)
=> override the binaries of modules installed with `nvm`:

/usr/local/lib
├── http-server@0.10.0
└── pm2@2.5.0

=> If you wish to uninstall them at a later point (or re-install them under your
=> `nvm` Nodes), you can remove them from the system Node as follows:

     $ nvm use system
     $ npm uninstall -g a_module

=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="/Users/aleksandereilertsen/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvmInstalling node.js ...
install.sh: line 65: nvm: command not found
Installing pm2 ...
/usr/local/bin/pm2 -> /usr/local/lib/node_modules/pm2/bin/pm2
/usr/local/bin/pm2-dev -> /usr/local/lib/node_modules/pm2/bin/pm2-dev
/usr/local/bin/pm2-docker -> /usr/local/lib/node_modules/pm2/bin/pm2-docker
/usr/local/bin/pm2-daemon -> /usr/local/lib/node_modules/pm2/bin/pm2-daemon
/usr/local/bin/pm2-runtime -> /usr/local/lib/node_modules/pm2/bin/pm2-runtime
+ pm2@2.5.0
updated 2 packages in 6.358s
Installing http-server ...
/usr/local/bin/http-server -> /usr/local/lib/node_modules/http-server/bin/http-server
/usr/local/bin/hs -> /usr/local/lib/node_modules/http-server/bin/http-server
+ http-server@0.10.0
updated 1 package in 0.878s
Installing kosmtik ...
Cloning into 'kosmtik'...
remote: Counting objects: 1964, done.
remote: Total 1964 (delta 0), reused 0 (delta 0), pack-reused 1964
Receiving objects: 100% (1964/1964), 3.00 MiB | 368.00 KiB/s, done.
Resolving deltas: 100% (1151/1151), done.
{
  "name": "kosmtik",
  "version": "0.0.13",
  "description": "Make maps with OpenStreetMap and Mapnik",
  "main": "index.js",
  "scripts": {
    "test": "node node_modules/.bin/mocha"
  },
  "keywords": [
    "openstreetmap",
    "map",
    "design"
  ],
  "repository": {
    "type": "git",
    "url": "git://github.com/kosmtik/kosmtik.git"
  },
  "author": "Yohan Boniface",
  "license": "WTFPL",
  "dependencies": {
    "carto": "^0.15.2",
    "generic-pool": "^2.2.0",
    "js-yaml": "^3.4.2",
    "json-localizer": "0.0.3",
    "leaflet": "^1.0.0-beta.2",
    "leaflet-formbuilder": "^0.2.0",
    "leaflet-hash": "^0.2.1",
    "mapnik": "^3.4.7",
    "nomnom": "^1.8.1",
    "npm": "^3.3.5",
    "request": "^2.64.0",
    "semver": "^5.0.3"
  },
  "devDependencies": {
    "mocha": "^2.2.5"
  }
}
sed: -i: No such file or directory
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead

> mapnik@3.6.2 install /Users/aleksandereilertsen/osm-for-my-country/kosmtik/node_modules/mapnik
> node-pre-gyp install --fallback-to-build

[mapnik] Success: "/Users/aleksandereilertsen/osm-for-my-country/kosmtik/node_modules/mapnik/lib/binding/mapnik.node" is installed via remote
npm notice created a lockfile as package-lock.json. You should commit this file.
added 494 packages in 90.09s
/Users/aleksandereilertsen/osm-for-my-country
Password:
ln: /usr/bin/shapeindex: Operation not permitted
Installing openstreetmap-carto ...
Cloning into 'openstreetmap-carto'...
remote: Counting objects: 10877, done.
remote: Total 10877 (delta 0), reused 0 (delta 0), pack-reused 10877
Receiving objects: 100% (10877/10877), 8.27 MiB | 536.00 KiB/s, done.
Resolving deltas: 100% (7472/7472), done.
Note: checking out '0ae8b270f9b2403c353007330060080fa8f4850f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

curl detected...
tar detected...
unzip detected...
downloading world_boundaries...
Warning: Illegal date format for -z, --timecond (and not a file name). 
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 50.4M  100 50.4M    0     0  1839k      0  0:00:28  0:00:28 --:--:-- 1818k
expanding world_boundaries...
downloading simplified-land-polygons-complete-3857...
Warning: Illegal date format for -z, --timecond (and not a file name). 
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 23.2M  100 23.2M    0     0   374k      0  0:01:03  0:01:03 --:--:--  400k
simplified-land-polygons-complete-3857...
downloading ne_110m_admin_0_boundary_lines_land...
Warning: Illegal date format for -z, --timecond (and not a file name). 
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 44731  100 44731    0     0  14018      0  0:00:03  0:00:03 --:--:-- 29351
expanding ne_110m_admin_0_boundary_lines_land...
downloading land-polygons-split-3857...
Warning: Illegal date format for -z, --timecond (and not a file name). 
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  474M  100  474M    0     0  1093k      0  0:07:24  0:07:24 --:--:-- 1047k
expanding land-polygons-split-3857...
downloading antarctica-icesheet-polygons-3857...
Warning: Illegal date format for -z, --timecond (and not a file name). 
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 49.4M  100 49.4M    0     0  1313k      0  0:00:38  0:00:38 --:--:--  998k
expanding antarctica-icesheet-polygons-3857...
downloading antarctica-icesheet-outlines-3857...
Warning: Illegal date format for -z, --timecond (and not a file name). 
Warning: Disabling time condition. See curl_getdate(3) for valid date syntax.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 50.3M  100 50.3M    0     0  1125k      0  0:00:45  0:00:45 --:--:-- 1011k
expanding antarctica-icesheet-outlines-3857...
indexing shapefiles
get-shapefiles.sh: line 93: shapeindex: command not found
/Users/aleksandereilertsen/osm-for-my-country
installing required fonts
--2017-06-22 18:19:55--  https://noto-website.storage.googleapis.com/pkgs/Noto-hinted.zip
Resolving noto-website.storage.googleapis.com... 172.217.22.176, 2a00:1450:400f:807::2010
Connecting to noto-website.storage.googleapis.com|172.217.22.176|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 499786749 (477M) [application/zip]
Saving to: ‘Noto-hinted.zip’

Noto-hinted.zip     100%[===================>] 476.63M  10.3MB/s    in 45s     

2017-06-22 18:20:41 (10.6 MB/s) - ‘Noto-hinted.zip’ saved [499786749/499786749]

Archive:  Noto-hinted.zip
  inflating: Noto-hinted/LICENSE_OFL.txt  
  inflating: Noto-hinted/NotoColorEmoji.ttf  
  inflating: Noto-hinted/NotoEmoji-Regular.ttf  
  inflating: Noto-hinted/NotoKufiArabic-Bold.ttf  
  inflating: Noto-hinted/NotoKufiArabic-Regular.ttf  
  inflating: Noto-hinted/NotoMono-Regular.ttf  
  inflating: Noto-hinted/NotoNaskhArabic-Bold.ttf  
  inflating: Noto-hinted/NotoNaskhArabic-Regular.ttf  
  inflating: Noto-hinted/NotoNaskhArabicUI-Bold.ttf  
  inflating: Noto-hinted/NotoNaskhArabicUI-Regular.ttf  
  inflating: Noto-hinted/NotoNastaliqUrdu-Regular.ttf  
  inflating: Noto-hinted/NotoSans-Bold.ttf  
  inflating: Noto-hinted/NotoSans-BoldItalic.ttf  
  inflating: Noto-hinted/NotoSans-Italic.ttf  
  inflating: Noto-hinted/NotoSans-Regular.ttf  
  inflating: Noto-hinted/NotoSansArmenian-Bold.ttf  
  inflating: Noto-hinted/NotoSansArmenian-Regular.ttf  
  inflating: Noto-hinted/NotoSansAvestan-Regular.ttf  
  inflating: Noto-hinted/NotoSansBalinese-Regular.ttf  
  inflating: Noto-hinted/NotoSansBamum-Regular.ttf  
  inflating: Noto-hinted/NotoSansBatak-Regular.ttf  
  inflating: Noto-hinted/NotoSansBengali-Bold.ttf  
  inflating: Noto-hinted/NotoSansBengali-Regular.ttf  
  inflating: Noto-hinted/NotoSansBengaliUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansBengaliUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansBrahmi-Regular.ttf  
  inflating: Noto-hinted/NotoSansBuginese-Regular.ttf  
  inflating: Noto-hinted/NotoSansBuhid-Regular.ttf  
  inflating: Noto-hinted/NotoSansCJKjp-Black.otf  
  inflating: Noto-hinted/NotoSansCJKjp-Bold.otf  
  inflating: Noto-hinted/NotoSansCJKjp-DemiLight.otf  
  inflating: Noto-hinted/NotoSansCJKjp-Light.otf  
  inflating: Noto-hinted/NotoSansCJKjp-Medium.otf  
  inflating: Noto-hinted/NotoSansCJKjp-Regular.otf  
  inflating: Noto-hinted/NotoSansCJKjp-Thin.otf  
  inflating: Noto-hinted/NotoSansCJKkr-Black.otf  
  inflating: Noto-hinted/NotoSansCJKkr-Bold.otf  
  inflating: Noto-hinted/NotoSansCJKkr-DemiLight.otf  
  inflating: Noto-hinted/NotoSansCJKkr-Light.otf  
  inflating: Noto-hinted/NotoSansCJKkr-Medium.otf  
  inflating: Noto-hinted/NotoSansCJKkr-Regular.otf  
  inflating: Noto-hinted/NotoSansCJKkr-Thin.otf  
  inflating: Noto-hinted/NotoSansCJKsc-Black.otf  
  inflating: Noto-hinted/NotoSansCJKsc-Bold.otf  
  inflating: Noto-hinted/NotoSansCJKsc-DemiLight.otf  
  inflating: Noto-hinted/NotoSansCJKsc-Light.otf  
  inflating: Noto-hinted/NotoSansCJKsc-Medium.otf  
  inflating: Noto-hinted/NotoSansCJKsc-Regular.otf  
  inflating: Noto-hinted/NotoSansCJKsc-Thin.otf  
  inflating: Noto-hinted/NotoSansCJKtc-Black.otf  
  inflating: Noto-hinted/NotoSansCJKtc-Bold.otf  
  inflating: Noto-hinted/NotoSansCJKtc-DemiLight.otf  
  inflating: Noto-hinted/NotoSansCJKtc-Light.otf  
  inflating: Noto-hinted/NotoSansCJKtc-Medium.otf  
  inflating: Noto-hinted/NotoSansCJKtc-Regular.otf  
  inflating: Noto-hinted/NotoSansCJKtc-Thin.otf  
  inflating: Noto-hinted/NotoSansCanadianAboriginal-Regular.ttf  
  inflating: Noto-hinted/NotoSansCarian-Regular.ttf  
  inflating: Noto-hinted/NotoSansCham-Bold.ttf  
  inflating: Noto-hinted/NotoSansCham-Regular.ttf  
  inflating: Noto-hinted/NotoSansCherokee-Regular.ttf  
  inflating: Noto-hinted/NotoSansCoptic-Regular.ttf  
  inflating: Noto-hinted/NotoSansCuneiform-Regular.ttf  
  inflating: Noto-hinted/NotoSansCypriot-Regular.ttf  
  inflating: Noto-hinted/NotoSansDeseret-Regular.ttf  
  inflating: Noto-hinted/NotoSansDevanagari-Bold.ttf  
  inflating: Noto-hinted/NotoSansDevanagari-Regular.ttf  
  inflating: Noto-hinted/NotoSansDevanagariUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansDevanagariUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansEgyptianHieroglyphs-Regular.ttf  
  inflating: Noto-hinted/NotoSansEthiopic-Bold.ttf  
  inflating: Noto-hinted/NotoSansEthiopic-Regular.ttf  
  inflating: Noto-hinted/NotoSansGeorgian-Bold.ttf  
  inflating: Noto-hinted/NotoSansGeorgian-Regular.ttf  
  inflating: Noto-hinted/NotoSansGlagolitic-Regular.ttf  
  inflating: Noto-hinted/NotoSansGothic-Regular.ttf  
  inflating: Noto-hinted/NotoSansGujarati-Bold.ttf  
  inflating: Noto-hinted/NotoSansGujarati-Regular.ttf  
  inflating: Noto-hinted/NotoSansGujaratiUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansGujaratiUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansGurmukhi-Bold.ttf  
  inflating: Noto-hinted/NotoSansGurmukhi-Regular.ttf  
  inflating: Noto-hinted/NotoSansGurmukhiUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansGurmukhiUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansHanunoo-Regular.ttf  
  inflating: Noto-hinted/NotoSansHebrew-Bold.ttf  
  inflating: Noto-hinted/NotoSansHebrew-Regular.ttf  
  inflating: Noto-hinted/NotoSansImperialAramaic-Regular.ttf  
  inflating: Noto-hinted/NotoSansInscriptionalPahlavi-Regular.ttf  
  inflating: Noto-hinted/NotoSansInscriptionalParthian-Regular.ttf  
  inflating: Noto-hinted/NotoSansJavanese-Regular.ttf  
  inflating: Noto-hinted/NotoSansKaithi-Regular.ttf  
  inflating: Noto-hinted/NotoSansKannada-Bold.ttf  
  inflating: Noto-hinted/NotoSansKannada-Regular.ttf  
  inflating: Noto-hinted/NotoSansKannadaUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansKannadaUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansKayahLi-Regular.ttf  
  inflating: Noto-hinted/NotoSansKharoshthi-Regular.ttf  
  inflating: Noto-hinted/NotoSansKhmer-Bold.ttf  
  inflating: Noto-hinted/NotoSansKhmer-Regular.ttf  
  inflating: Noto-hinted/NotoSansKhmerUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansKhmerUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansLao-Bold.ttf  
  inflating: Noto-hinted/NotoSansLao-Regular.ttf  
  inflating: Noto-hinted/NotoSansLaoUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansLaoUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansLepcha-Regular.ttf  
  inflating: Noto-hinted/NotoSansLimbu-Regular.ttf  
  inflating: Noto-hinted/NotoSansLinearB-Regular.ttf  
  inflating: Noto-hinted/NotoSansLisu-Regular.ttf  
  inflating: Noto-hinted/NotoSansLycian-Regular.ttf  
  inflating: Noto-hinted/NotoSansLydian-Regular.ttf  
  inflating: Noto-hinted/NotoSansMalayalam-Bold.ttf  
  inflating: Noto-hinted/NotoSansMalayalam-Regular.ttf  
  inflating: Noto-hinted/NotoSansMalayalamUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansMalayalamUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansMandaic-Regular.ttf  
  inflating: Noto-hinted/NotoSansMeeteiMayek-Regular.ttf  
  inflating: Noto-hinted/NotoSansMongolian-Regular.ttf  
  inflating: Noto-hinted/NotoSansMonoCJKjp-Bold.otf  
  inflating: Noto-hinted/NotoSansMonoCJKjp-Regular.otf  
  inflating: Noto-hinted/NotoSansMonoCJKkr-Bold.otf  
  inflating: Noto-hinted/NotoSansMonoCJKkr-Regular.otf  
  inflating: Noto-hinted/NotoSansMonoCJKsc-Bold.otf  
  inflating: Noto-hinted/NotoSansMonoCJKsc-Regular.otf  
  inflating: Noto-hinted/NotoSansMonoCJKtc-Bold.otf  
  inflating: Noto-hinted/NotoSansMonoCJKtc-Regular.otf  
  inflating: Noto-hinted/NotoSansMyanmar-Bold.ttf  
  inflating: Noto-hinted/NotoSansMyanmar-Regular.ttf  
  inflating: Noto-hinted/NotoSansMyanmarUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansMyanmarUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansNKo-Regular.ttf  
  inflating: Noto-hinted/NotoSansNewTaiLue-Regular.ttf  
  inflating: Noto-hinted/NotoSansOgham-Regular.ttf  
  inflating: Noto-hinted/NotoSansOlChiki-Regular.ttf  
  inflating: Noto-hinted/NotoSansOldItalic-Regular.ttf  
  inflating: Noto-hinted/NotoSansOldPersian-Regular.ttf  
  inflating: Noto-hinted/NotoSansOldSouthArabian-Regular.ttf  
  inflating: Noto-hinted/NotoSansOldTurkic-Regular.ttf  
  inflating: Noto-hinted/NotoSansOriya-Bold.ttf  
  inflating: Noto-hinted/NotoSansOriya-Regular.ttf  
  inflating: Noto-hinted/NotoSansOriyaUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansOriyaUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansOsmanya-Regular.ttf  
  inflating: Noto-hinted/NotoSansPhagsPa-Regular.ttf  
  inflating: Noto-hinted/NotoSansPhoenician-Regular.ttf  
  inflating: Noto-hinted/NotoSansRejang-Regular.ttf  
  inflating: Noto-hinted/NotoSansRunic-Regular.ttf  
  inflating: Noto-hinted/NotoSansSamaritan-Regular.ttf  
  inflating: Noto-hinted/NotoSansSaurashtra-Regular.ttf  
  inflating: Noto-hinted/NotoSansShavian-Regular.ttf  
  inflating: Noto-hinted/NotoSansSinhala-Bold.ttf  
  inflating: Noto-hinted/NotoSansSinhala-Regular.ttf  
  inflating: Noto-hinted/NotoSansSundanese-Regular.ttf  
  inflating: Noto-hinted/NotoSansSylotiNagri-Regular.ttf  
  inflating: Noto-hinted/NotoSansSymbols-Regular.ttf  
  inflating: Noto-hinted/NotoSansSyriacEastern-Regular.ttf  
  inflating: Noto-hinted/NotoSansSyriacEstrangela-Regular.ttf  
  inflating: Noto-hinted/NotoSansSyriacWestern-Regular.ttf  
  inflating: Noto-hinted/NotoSansTagalog-Regular.ttf  
  inflating: Noto-hinted/NotoSansTagbanwa-Regular.ttf  
  inflating: Noto-hinted/NotoSansTaiLe-Regular.ttf  
  inflating: Noto-hinted/NotoSansTaiTham-Regular.ttf  
  inflating: Noto-hinted/NotoSansTaiViet-Regular.ttf  
  inflating: Noto-hinted/NotoSansTamil-Bold.ttf  
  inflating: Noto-hinted/NotoSansTamil-Regular.ttf  
  inflating: Noto-hinted/NotoSansTamilUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansTamilUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansTelugu-Bold.ttf  
  inflating: Noto-hinted/NotoSansTelugu-Regular.ttf  
  inflating: Noto-hinted/NotoSansTeluguUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansTeluguUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansThaana-Bold.ttf  
  inflating: Noto-hinted/NotoSansThaana-Regular.ttf  
  inflating: Noto-hinted/NotoSansThai-Bold.ttf  
  inflating: Noto-hinted/NotoSansThai-Regular.ttf  
  inflating: Noto-hinted/NotoSansThaiUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansThaiUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansTibetan-Bold.ttf  
  inflating: Noto-hinted/NotoSansTibetan-Regular.ttf  
  inflating: Noto-hinted/NotoSansTifinagh-Regular.ttf  
  inflating: Noto-hinted/NotoSansUI-Bold.ttf  
  inflating: Noto-hinted/NotoSansUI-BoldItalic.ttf  
  inflating: Noto-hinted/NotoSansUI-Italic.ttf  
  inflating: Noto-hinted/NotoSansUI-Regular.ttf  
  inflating: Noto-hinted/NotoSansUgaritic-Regular.ttf  
  inflating: Noto-hinted/NotoSansVai-Regular.ttf  
  inflating: Noto-hinted/NotoSansYi-Regular.ttf  
  inflating: Noto-hinted/NotoSerif-Bold.ttf  
  inflating: Noto-hinted/NotoSerif-BoldItalic.ttf  
  inflating: Noto-hinted/NotoSerif-Italic.ttf  
  inflating: Noto-hinted/NotoSerif-Regular.ttf  
  inflating: Noto-hinted/NotoSerifArmenian-Bold.ttf  
  inflating: Noto-hinted/NotoSerifArmenian-Regular.ttf  
  inflating: Noto-hinted/NotoSerifBengali-Bold.ttf  
  inflating: Noto-hinted/NotoSerifBengali-Regular.ttf  
  inflating: Noto-hinted/NotoSerifDevanagari-Bold.ttf  
  inflating: Noto-hinted/NotoSerifDevanagari-Regular.ttf  
  inflating: Noto-hinted/NotoSerifGeorgian-Bold.ttf  
  inflating: Noto-hinted/NotoSerifGeorgian-Regular.ttf  
  inflating: Noto-hinted/NotoSerifGujarati-Bold.ttf  
  inflating: Noto-hinted/NotoSerifGujarati-Regular.ttf  
  inflating: Noto-hinted/NotoSerifHebrew-Bold.ttf  
  inflating: Noto-hinted/NotoSerifHebrew-Regular.ttf  
  inflating: Noto-hinted/NotoSerifKannada-Bold.ttf  
  inflating: Noto-hinted/NotoSerifKannada-Regular.ttf  
  inflating: Noto-hinted/NotoSerifKhmer-Bold.ttf  
  inflating: Noto-hinted/NotoSerifKhmer-Regular.ttf  
  inflating: Noto-hinted/NotoSerifLao-Bold.ttf  
  inflating: Noto-hinted/NotoSerifLao-Regular.ttf  
  inflating: Noto-hinted/NotoSerifMalayalam-Bold.ttf  
  inflating: Noto-hinted/NotoSerifMalayalam-Regular.ttf  
  inflating: Noto-hinted/NotoSerifTamil-Bold.ttf  
  inflating: Noto-hinted/NotoSerifTamil-Regular.ttf  
  inflating: Noto-hinted/NotoSerifTelugu-Bold.ttf  
  inflating: Noto-hinted/NotoSerifTelugu-Regular.ttf  
  inflating: Noto-hinted/NotoSerifThai-Bold.ttf  
  inflating: Noto-hinted/NotoSerifThai-Regular.ttf  
  inflating: Noto-hinted/README      
/usr/share/fonts: skipping, no such directory
/System/Library/Fonts: caching, new cache contents: 308 fonts, 0 dirs
/Library/Fonts: caching, new cache contents: 371 fonts, 0 dirs
/Users/aleksandereilertsen/Library/Fonts: caching, new cache contents: 9 fonts, 0 dirs
/Users/aleksandereilertsen/.local/share/fonts: skipping, no such directory
/Users/aleksandereilertsen/.fonts: caching, new cache contents: 217 fonts, 0 dirs
/usr/local/var/cache/fontconfig: cleaning cache directory
/Users/aleksandereilertsen/.cache/fontconfig: cleaning cache directory
/Users/aleksandereilertsen/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
fonts installed
Install project dependent node.js packages
npm WARN deprecated sphericalmercator@1.0.5: This module is now under the @mapbox namespace: install @mapbox/sphericalmercator instead
npm WARN deprecated geojson-area@0.1.0: This module is now under the @mapbox namespace: install @mapbox/geojson-area instead
npm WARN deprecated turf-buffer@3.0.12: Turf packages are now namespaced: please use @turf/buffer instead
npm WARN deprecated geojson-normalize@0.0.0: This module is now under the @mapbox namespace: install @mapbox/geojson-normalize instead
npm WARN deprecated turf-combine@3.0.12: Turf packages are now namespaced: please use @turf/combine instead
npm WARN deprecated turf-helpers@3.0.12: Turf packages are now namespaced: please use @turf/helpers instead
npm WARN deprecated turf-meta@3.0.12: Turf packages are now namespaced: please use @turf/meta instead
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN osm-for-my-country@1.0.0 No repository field.

added 201 packages in 6.76s
Dependent packages installed
install.sh: line 100: /Users/aleksandereilertsen/.bashrc: No such file or directory
[myosm] Installation completed. Please logout and open again the terminal.
    or run 
    source ~/.bashrc
gagan-bansal commented 7 years ago

Yes many things would have not installed. Please check all these are installed

gcc, unzip
postgres, postgiis
osm2pgsql
osmconvert, osmfilter
nvm 
node (version 4.4.7 on nvm)
pm2
kosmtik
gagan-bansal commented 7 years ago

@Aeilert Hope you could run this on Linux server. Please let me know if any issue.

gagan-bansal commented 7 years ago

Hi @Aeilert, hope on linux system you could run osm-for-my-country.

For OSX as you have access and if you have time you can debug install.sh and contribute to this project. Right now I am closing this issue.

Aeilert commented 7 years ago

Hi. And sorry for the late reply.

I had some troubles on my Linux-VM since it's behind a corporate server, so I haven't been able to complete the installation. This is related to the specific dependent packages, and not your project per se. I might look into the install.sh at a later time, but unfortunately I won't be able to do this any time soon.