Find the answer to your Linux question:
Results 1 to 2 of 2
hello dear linux-experts ive installed osmosis on suselinux version 13.1 Code: linux-70ce:/home/martin # LANG=en_US.UTF-8 wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz --2014-04-12 22:09:52-- http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz Resolving bretth.dev.openstreetmap.org (bretth.dev.openstreetmap.org)... 128.40.168.103 Connecting to bretth.dev.openstreetmap.org (bretth.dev.openstreetmap.org)|128.40.168.103|:80... connected. HTTP request ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    May 2013
    Posts
    208

    osmosis installation via commandline - successful!?!


    hello dear linux-experts

    ive installed osmosis on suselinux version 13.1


    Code:
     
    linux-70ce:/home/martin # LANG=en_US.UTF-8  wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz
    --2014-04-12 22:09:52--  http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz
    Resolving bretth.dev.openstreetmap.org (bretth.dev.openstreetmap.org)... 128.40.168.103
    Connecting to bretth.dev.openstreetmap.org (bretth.dev.openstreetmap.org)|128.40.168.103|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 9079737 (8.7M) [application/x-gzip]
    Saving to: ‘osmosis-latest.tgz’
    
    100%[==========================================================================================================================================>] 9,079,737   1.38MB/s   in 6.3s   
    
    2014-04-12 22:09:58 (1.39 MB/s) - ‘osmosis-latest.tgz’ saved [9079737/9079737]
    
    linux-70ce:/home/martin # tar xvfz osmosis-latest.tgz
    readme.txt
    copying.txt
    changes.txt
    script/
    script/pgsnapshot_load_0.6.sql
    script/pgsnapshot_schema_0.6_action.sql
    script/pgsimple_schema_0.6_linestring.sql
    script/pgsnapshot_schema_0.6_linestring.sql
    script/pgsnapshot_schema_0.6_upgrade_4-5.sql
    script/pgsimple_schema_0.6_action.sql
    script/pgsimple_load_0.6.sql
    script/pgsnapshot_schema_0.6_bbox.sql
    script/pgsnapshot_schema_0.6_upgrade_5-6.sql
    script/pgsnapshot_and_pgsimple.txt
    script/fix_line_endings.sh
    script/pgsimple_schema_0.6.sql
    script/pgsimple_schema_0.6_bbox.sql
    script/pgsnapshot_schema_0.6.sql
    script/contrib/
    script/contrib/dump_apidb.sh
    script/contrib/replicate_osm_file.sh
    script/contrib/CreateGeometryForWays.sql
    script/contrib/apidb_0.6_osmosis_xid_indexing.sql
    script/contrib/apidb_0.6.sql
    script/munin/
    script/munin/README
    script/munin/osm_replication_lag
    script/munin/osm_replication.conf
    bin/
    bin/osmosis-extract-apidb-0.6
    bin/osmosis.bat
    bin/osmosis-extract-mysql-0.6
    bin/osmosis
    config/
    config/plexus.conf
    lib/
    lib/default/
    lib/default/plexus-classworlds-2.4.jar
    lib/default/commons-logging-1.1.1.jar
    lib/default/jpf-1.5.jar
    lib/default/stax2-api-3.1.1.jar
    lib/default/woodstox-core-lgpl-4.1.4.jar
    lib/default/xz-1.0.jar
    lib/default/commons-compress-1.4.1.jar
    lib/default/xercesImpl-2.9.1.jar
    lib/default/commons-codec-1.7.jar
    lib/default/commons-pool-1.5.4.jar
    lib/default/commons-dbcp-1.4.jar
    lib/default/spring-asm-3.1.2.RELEASE.jar
    lib/default/spring-core-3.1.2.RELEASE.jar
    lib/default/spring-beans-3.1.2.RELEASE.jar
    lib/default/aopalliance-1.0.jar
    lib/default/spring-aop-3.1.2.RELEASE.jar
    lib/default/spring-expression-3.1.2.RELEASE.jar
    lib/default/spring-context-3.1.2.RELEASE.jar
    lib/default/spring-tx-3.1.2.RELEASE.jar
    lib/default/spring-jdbc-3.1.2.RELEASE.jar
    lib/default/postgresql-9.1-901-1.jdbc4.jar
    lib/default/mysql-connector-java-5.1.21.jar
    lib/default/protobuf-java-2.4.1.jar
    lib/default/postgis-jdbc-1.3.3.jar
    lib/default/netty-3.2.7.Final.jar
    lib/default/osmosis-apidb-0.43.1.jar
    lib/default/osmosis-areafilter-0.43.1.jar
    lib/default/osmosis-core-0.43.1.jar
    lib/default/osmosis-dataset-0.43.1.jar
    lib/default/osmosis-extract-0.43.1.jar
    lib/default/osmosis-pbf-0.43.1.jar
    lib/default/osmosis-pbf2-0.43.1.jar
    lib/default/osmosis-pgsimple-0.43.1.jar
    lib/default/osmosis-pgsnapshot-0.43.1.jar
    lib/default/osmosis-replication-0.43.1.jar
    lib/default/osmosis-replication-http-0.43.1.jar
    lib/default/osmosis-set-0.43.1.jar
    lib/default/osmosis-tagfilter-0.43.1.jar
    lib/default/osmosis-tagtransform-0.43.1.jar
    lib/default/osmosis-xml-0.43.1.jar
    lib/default/osmosis-osm-binary-0.43.1.jar
    lib/default/osmosis-hstore-jdbc-0.43.1.jar
    linux-70ce:/home/martin # cd osmosis-0.39
    bash: cd: osmosis-0.39: Datei oder Verzeichnis nicht gefunden
    linux-70ce:/home/martin # chmod a+x bin/osmosis
    linux-70ce:/home/martin # bin/osmosis

    well what do you say - is this all correct!?

    see here
    Code:
    bash: cd: osmosis-0.39: Datei oder Verzeichnis nicht gefunden

    which means - file or directory not found!`?

    did the installation fail or succed!`??



    btw - i afterward installed osmfilter - see here

    http://wiki.openstreetmap.org/wiki/Osmfilter


    Code:
    Download and build in one run:   wget -O - http://m.m.i24.cc/osmfilter.c |cc -x c - -O3 -o osmfilter
    
    As usual: There is no warranty, to the extent permitted by law.
    
    
    linux-70ce:/home/martin #  wget -O - http://m.m.i24.cc/osmfilter.c |cc -x c - -O3 -o osmfilter
    --2014-04-12 22:34:49--  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     1,14MB/s   in 0,2s   
    
    2014-04-12 22:34:49 (1,14 MB/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-70ce:/home/martin #


    what do you say
    Last edited by sayhello; 04-12-2014 at 08:30 PM.

  2. #2
    Linux Newbie
    Join Date
    May 2013
    Posts
    208
    hello - now i got a bit futher

    in my first attempt, i called osmosis and passed the argument
    "ls" which is not valid. cf the Osmsis documentation for what arguments Osmosis accepts.
    In the second attempt, i tried to enter a directory called "osmosis-0.39" which i never ever created.


    i could have done differently is creating an extra directory for osmosis, like

    wget http://bretth.dev.openstreetmap.org/...sis-latest.tgz
    mkdir osmosis
    cd osmosis
    tar xzf ../osmosis-latest.tgz

    That way, Osmosis wouldn't have ended up directly in your $HOME, and you would then use

    /home/martin/osmosis/bin/osmosis ...arguments...

    to call it.

    i did it - see here


    Code:
    linux-70ce:/home/martin # wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz
    --2014-04-13 09:54:23--  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.1«« speichern.
    
    100%[==========================================================================================================================================>] 9.079.737   1,41MB/s   in 6,3s   
    
    2014-04-13 09:54:29 (1,38 MB/s) - »»osmosis-latest.tgz.1«« gespeichert [9079737/9079737]
    
    linux-70ce:/home/martin # mkdir osmosis
    linux-70ce:/home/martin # cd osmosis

    btw regarding the two other toools osmconvert osmfilter - i have had a loook at the corresponding websites.
    should i have to install it like it is written on here :

    Code:
        Download and build in one run:   wget -O - http://m.m.i24.cc/osmconvert.c | cc -x c - -lz -O3 -o osmconvert
    and for osmfilter . like so:


    Code:
    Download and build in one run:   wget -O - http://m.m.i24.cc/osmfilter.c |cc -x c - -O3 -o osmfilter
    what do you say. look forward to hear from you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •