osm-tools installed on suse 13.1 : ready to run the planet

hello dear linux-experts

just have installed osmosis, osconvert on a opensuse 13.1 via Terminal
what do you say:



linux-c5sz:/home/martin # wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz
--2014-04-14 19:56:00--  http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz
Auflösen des Hostnamen »bretth.dev.openstreetmap.org (bretth.dev.openstreetmap.org)«... 128.40.168.103
Verbindungsaufbau zu bretth.dev.openstreetmap.org (bretth.dev.openstreetmap.org)|128.40.168.103|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 9079737 (8,7M) [application/x-gzip]
In »»osmosis-latest.tgz«« speichern.

100%======================================================================================================================================================>] 9.079.737    623KB/s   in 14s    

2014-04-14 19:56:15 (624 KB/s) - »»osmosis-latest.tgz«« gespeichert [9079737/9079737]

linux-c5sz:/home/martin # mkdir osmosis
linux-c5sz:/home/martin # cd osmosis
linux-c5sz:/home/martin/osmosis # tar xzf ../osmosis-latest.tgz
linux-c5sz:/home/martin/osmosis #  wget -O - http://m.m.i24.cc/osmconvert.c | cc -x c - -lz -O3 -o osmconvert
If 'cc' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf cc
--2014-04-14 20:07:32--  http://m.m.i24.cc/osmconvert.c
Auflösen des Hostnamen »m.m.i24.cc (m.m.i24.cc)«... 80.67.17.148, 2a00:1158:0:300:432f::1
Verbindungsaufbau zu m.m.i24.cc (m.m.i24.cc)|80.67.17.148|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 416054 (406K) [text/plain]
In »»STDOUT«« speichern.

 0%                                                                                                                                                        ] 0           --.-K/s   in 0s      


Kann nicht nach »»-«« schreiben (Datenübergabe unterbrochen (broken pipe)).
linux-c5sz:/home/martin/osmosis # 


hmm something failed - so i tried to get more insights - and found that

OSM tool set on SUSE13.1 - LSCES Main Site



linux-c5sz:/home/martin/osmosis # zypper install gcc zlib-devel
Die Systemverwaltung ist durch die Anwendung mit dem PID 3599 (/usr/lib/YaST2/bin/y2base) gesperrt.
Schließen Sie diese Anwendung, bevor Sie es erneut probieren.
linux-c5sz:/home/martin/osmosis # 
linux-c5sz:/home/martin/osmosis # zypper install gcc zlib-devel
Daten des Repositories laden ...
Installierte Pakete lesen ...
Paketabhängigkeiten auflösen ...
                                                                                                                                                                                                
The following 9 NEW packages are going to be installed:                                                                                                                                         
  binutils gcc gcc48 glibc-devel libasan0 libatomic1 libitm1 linux-glibc-devel zlib-devel                                                                                                       
                                                                                                                                                                                                
9 neue Pakete zu installieren.                                                                                                                                                                  
Gesamtgröße des Downloads: 12,0 MiB. Nach der Operation werden zusätzlich 51,5 MiB belegt.                                                                                                      
Fortfahren? [j/n/? zeigt alle Optionen] (j): j                                   
Paket binutils-2.23.2-8.1.2.i586 wird abgerufen                                                                                                            (1/9),   3,6 MiB ( 21,7 MiB entpackt)
Abruf: binutils-2.23.2-8.1.2.i586.rpm ....................................................................................................................................[fertig (662,1 KiB/s)]
Paket libasan0-4.8.1_20130909-3.2.1.i586 wird abgerufen                                                                                                    (2/9),  68,6 KiB (181,8 KiB entpackt)
Abruf: libasan0-4.8.1_20130909-3.2.1.i586.rpm ..........................................................................................................................................[fertig]
Paket libatomic1-4.8.1_20130909-3.2.1.i586 wird abgerufen                                                                                                  (3/9),  14,1 KiB ( 21,4 KiB entpackt)
Abruf: libatomic1-4.8.1_20130909-3.2.1.i586.rpm ........................................................................................................................................[fertig]
Paket libitm1-4.8.1_20130909-3.2.1.i586 wird abgerufen                                                                                                     (4/9),  34,3 KiB (117,6 KiB entpackt)
Abruf: libitm1-4.8.1_20130909-3.2.1.i586.rpm ...........................................................................................................................................[fertig]
Paket linux-glibc-devel-3.11-2.1.15.noarch wird abgerufen                                                                                                  (5/9), 891,0 KiB (  3,6 MiB entpackt)
Abruf: linux-glibc-devel-3.11-2.1.15.noarch.rpm ..........................................................................................................................[fertig (662,6 KiB/s)]
Paket glibc-devel-2.18-4.7.1.i686 wird abgerufen                                                                                                           (6/9), 619,5 KiB (  2,8 MiB entpackt)
Abruf: glibc-devel-2.18-4.7.1.i686.rpm ...................................................................................................................................[fertig (503,1 KiB/s)]
Paket zlib-devel-1.2.8-3.1.2.i586 wird abgerufen                                                                                                           (7/9),  63,2 KiB (189,4 KiB entpackt)
Abruf: zlib-devel-1.2.8-3.1.2.i586.rpm .................................................................................................................................................[fertig]
Paket gcc48-4.8.1_20130909-3.2.1.i586 wird abgerufen                                                                                                       (8/9),   6,8 MiB ( 23,0 MiB entpackt)
Abruf: gcc48-4.8.1_20130909-3.2.1.i586.rpm ...............................................................................................................................[fertig (582,9 KiB/s)]
Paket gcc-4.8-2.1.2.i586 wird abgerufen                                                                                                                      (9/9),   4,8 KiB (    0 B entpackt)
Abruf: gcc-4.8-2.1.2.i586.rpm ..........................................................................................................................................................[fertig]
(1/9) Installation von: binutils-2.23.2-8.1.2 ..........................................................................................................................................[fertig]
Zusätzliche rpm-Ausgabe:
update-alternatives: using /usr/bin/ld.bfd to provide /usr/bin/ld (ld) in auto mode


(2/9) Installation von: libasan0-4.8.1_20130909-3.2.1 ..................................................................................................................................[fertig]
(3/9) Installation von: libatomic1-4.8.1_20130909-3.2.1 ................................................................................................................................[fertig]
(4/9) Installation von: libitm1-4.8.1_20130909-3.2.1 ...................................................................................................................................[fertig]
(5/9) Installation von: linux-glibc-devel-3.11-2.1.15 ..................................................................................................................................[fertig]
(6/9) Installation von: glibc-devel-2.18-4.7.1 .........................................................................................................................................[fertig]
(7/9) Installation von: zlib-devel-1.2.8-3.1.2 .........................................................................................................................................[fertig]
(8/9) Installation von: gcc48-4.8.1_20130909-3.2.1 .....................................................................................................................................[fertig]
(9/9) Installation von: gcc-4.8-2.1.2 ..................................................................................................................................................[fertig]
linux-c5sz:/home/martin/osmosis # 
linux-c5sz:/home/martin/osmosis # wget -O - http://m.m.i24.cc/osmconvert.c | cc -x c - -lz -O3 -o osmconvert
--2014-04-14 20:21:17--  http://m.m.i24.cc/osmconvert.c
Auflösen des Hostnamen »m.m.i24.cc (m.m.i24.cc)«... 80.67.17.148, 2a00:1158:0:300:432f::1
Verbindungsaufbau zu m.m.i24.cc (m.m.i24.cc)|80.67.17.148|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 416054 (406K) [text/plain]
In »»STDOUT«« speichern.

100%======================================================================================================================================================>] 416.054      396KB/s   in 1,0s   

2014-04-14 20:21:18 (396 KB/s) - auf die Standardausgabe geschrieben [416054/416054]

AND last but not least osmfilter - like it is mentioed at the wikisite

linux-c5sz:/home/martin/osmosis #  wget -O - http://m.m.i24.cc/osmfilter.c |cc -x c - -O3 -o osmfilter
--2014-04-14 20:22:31--  http://m.m.i24.cc/osmfilter.c
Auflösen des Hostnamen »m.m.i24.cc (m.m.i24.cc)«... 80.67.17.148, 2a00:1158:0:300:432f::1
Verbindungsaufbau zu m.m.i24.cc (m.m.i24.cc)|80.67.17.148|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 213497 (208K) [text/plain]
In »»STDOUT«« speichern.

100%======================================================================================================================================================>] 213.497      327KB/s   in 0,6s   

2014-04-14 20:22:32 (327 KB/s) - auf die Standardausgabe geschrieben [213497/213497]

<stdin>: In function ‘oo__close’:
<stdin>:5166:5: warning: call to function ‘read_close’ without a real prototype -Wunprototyped-calls]
<stdin>:1079:13: note: ‘read_close’ was declared here
linux-c5sz:/home/martin/osmosis # 

well i guess that i managed it - what do you say

is all installed in the correct folder !?

well - i want to try out all the installation now with an example: see here.



wget download.geofabrik.de/openstreetmap/europe/germany.osm.pbf
osmconvert germany.osm.pbf --all-to-nodes -o=germany.o5m
osmfilter germany.o5m --keep="amenity=shop or shop=*" -o=shops.o5m
osmconvert shops.o5m --csv="@id @lon @lat shop name" --csv-headline -o=shops.csv

what do you say!? - do you think that it will work!?:wink:

hello again …

update;: while trying to run this example i get into troubles

example;


wget download.geofabrik.de/openstreetmap/europe/germany.osm.pbf
osmconvert germany.osm.pbf --all-to-nodes -o=germany.o5m
osmfilter germany.o5m --keep="amenity=shop or shop=*" -o=shops.o5m
osmconvert shops.o5m --csv="@id @lon @lat shop name" --csv-headline -o=shops.csv



2014-04-14 20:22:32 (327 KB/s) - auf die Standardausgabe geschrieben [213497/213497]

<stdin>: In function ‘oo__close’:
<stdin>:5166:5: warning: call to function ‘read_close’ without a real prototype -Wunprototyped-calls]
<stdin>:1079:13: note: ‘read_close’ was declared here
linux-c5sz:/home/martin/osmosis # wget download.geofabrik.de/openstreetmap/europe/germany.osm.pbf
--2014-04-14 20:44:33--  http://download.geofabrik.de/openstreetmap/europe/germany.osm.pbf
Auflösen des Hostnamen »download.geofabrik.de (download.geofabrik.de)«... 144.76.34.132, 5.9.158.99, 144.76.4.22
Verbindungsaufbau zu download.geofabrik.de (download.geofabrik.de)|144.76.34.132|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 301 Moved Permanently
Platz: http://download.geofabrik.de/europe/germany-latest.osm.pbf[folge]
--2014-04-14 20:44:33--  http://download.geofabrik.de/europe/germany-latest.osm.pbf
Wiederverwendung der bestehenden Verbindung zu download.geofabrik.de:80.
HTTP-Anforderung gesendet, warte auf Antwort... 302 Found
Platz: http://ftp5.gwdg.de/pub/misc/openstreetmap/download.geofabrik.de/germany-latest.osm.pbf[folge]
--2014-04-14 20:44:33--  http://ftp5.gwdg.de/pub/misc/openstreetmap/download.geofabrik.de/germany-latest.osm.pbf
Auflösen des Hostnamen »ftp5.gwdg.de (ftp5.gwdg.de)«... 134.76.12.5, 2001:638:60f:110::1:1
Verbindungsaufbau zu ftp5.gwdg.de (ftp5.gwdg.de)|134.76.12.5|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 2087429033 (1,9G) [text/plain]
In »»germany.osm.pbf«« speichern.

100%====================================================================================================================================================>] 2.087.429.033  715KB/s   in 50m 58s

2014-04-14 21:35:31 (667 KB/s) - »»germany.osm.pbf«« gespeichert [2087429033/2087429033]

linux-c5sz:/home/martin/osmosis # osmconvert germany.osm.pbf --all-to-nodes -o=germany.o5m
If 'osmconvert' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf osmconvert
linux-c5sz:/home/martin/osmosis # osmfilter germany.o5m --keep="amenity=shop or shop=*" -o=shops.o5m
If 'osmfilter' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf osmfilter
linux-c5sz:/home/martin/osmosis # osmconvert shops.o5m --csv="@id @lon @lat shop name" --csv-headline -o=shops.csv



you see - the download of the »»germany.osm.pbf«« went okay - it was stored [2087429033/2087429033]

but with the following processes i got into trouble -

why !?` Why they failed!?