hello dear linux-experts

ive installed osmosis on suselinux version 13.1

) 
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 ls
Apr 12, 2014 10:16:19 PM org.openstreetmap.osmosis.core.Osmosis main
Schwerwiegend: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Expected argument 1 to be an option or task name.
        at org.openstreetmap.osmosis.core.cli.CommandLineParser.parse(CommandLineParser.java:79)
        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:74)
        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:47)

linux-70ce:/home/martin #

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

see here

bash: cd: osmosis-0.39: Datei oder Verzeichnis nicht gefunden

which means - file or directory not found!`?

btw i afterwards tried to install osmfilter

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

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 #

asked 12 Apr '14, 21:22

say_hello_to_the_world's gravatar image

say_hello_to...
19232427
accept rate: 0%

edited 12 Apr '14, 21:36


You successfully installed osmosis and you can now run it by typing

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

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

The one thing that you should have done differently is creating an extra directory for osmosis, like

wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-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.

permanent link

answered 12 Apr '14, 21:36

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
68.2k806201063
accept rate: 24%

hello - many many thanks!!

did it like you adviced:

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 :

wiki.openstreetmap.org/wiki/Osmconvert‎

wiki.openstreetmap.org/wiki/Osmfilter‎

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

Download and build in one run: wget -O - http://m.m.i24.cc/osmfilter.c |cc -x c - -O3 -o osmfilter

is this correct!? can i install osmconvert and filter in the above mentioned way.?

(13 Apr '14, 09:02) say_hello_to...
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×204
×26

question asked: 12 Apr '14, 21:22

question was seen: 2,718 times

last updated: 13 Apr '14, 10:23

powered by OSQA