Osmosis on OpenSuse 12.1 - A data-processing-tool for OpenStreetMap

hello dear all,

i want to install Osmosis on OpenSuse 12.1 - A data-processing-tool for OpenStreetMap

has anybody experiende with this!?

love to hear from you

greetings

You can get it from the GEO repository. Once you add that repository, use yast software management or zypper (via command line) to install.

As root:

zypper in osmosis

you recommend me - to do the installation via command line - this does not work;

the terminal says - we do not know anyone who offers the package…

you recommended me to get it from the GEO repository

http://download.opensuse.org/repositories/Application:/Geo/openSUSE_11.2/

how - i do not know

btw - saw a repo;

https://github.com/openstreetmap/osmosis.git

and these sites:
Mirrors for
http://ftp.suse.de/pub/opensuse/repositories/Application:/Geo/openSUSE_Factory/noarch/osmosis-0.39-1.7.noarch.rpm

Mirror List

HOW TO proceed - which package to take - and :—… as i cannot add a single repository form the above mentioned - i have the question:; how to add the right repo - and how to get osmosis via
such a repo!

  • sorry for being the newbie here - but ii need a step-by-step-tutorial how to procdeed.

Any and all help will be greatly appreciated

love to hear from you

greetings

hello - and if i follow this steps here - the steps i found here on the page called - installing osmosis

Osmosis/Installation - OpenStreetMap Wiki


LANG=en_US.UTF-8  wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz
tar xvfz osmosis-latest.tgz
cd osmosis-0.39
chmod a+x bin/osmosis
bin/osmosis  

then i get the following results:



linux-wyee:/home/martin # LANG=en_US.UTF-8  wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz
asking libproxy about url 'http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.tgz'
libproxy suggest to use 'direct://'
--2012-04-27 22:58:10--  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: 7683042 (7.3M) [application/x-gzip]
Saving to: `osmosis-latest.tgz.2'

100%======================================================================================================================================================>] 7,683,042    502K/s   in 15s     

2012-04-27 22:58:26 (496 KB/s) - `osmosis-latest.tgz.2' saved [7683042/7683042]

linux-wyee:/home/martin # tar xvfz osmosis-latest.tgz
osmosis-0.40.1/bin/
osmosis-0.40.1/build/
osmosis-0.40.1/config/
osmosis-0.40.1/lib/
osmosis-0.40.1/lib/default/
osmosis-0.40.1/script/
osmosis-0.40.1/script/contrib/
osmosis-0.40.1/script/munin/
osmosis-0.40.1/build/version.txt
osmosis-0.40.1/changes.txt
osmosis-0.40.1/config/plexus.conf
osmosis-0.40.1/copying.txt
osmosis-0.40.1/lib/default/aopalliance-1.0.jar
osmosis-0.40.1/lib/default/commons-codec-1.5.jar
osmosis-0.40.1/lib/default/commons-compress-1.2.jar
osmosis-0.40.1/lib/default/commons-dbcp-1.4.jar
osmosis-0.40.1/lib/default/commons-logging-1.1.1.jar
osmosis-0.40.1/lib/default/commons-pool-1.5.4.jar
osmosis-0.40.1/lib/default/jpf-1.5.jar
osmosis-0.40.1/lib/default/mysql-connector-java-5.1.18.jar
osmosis-0.40.1/lib/default/osmosis-apidb-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-areafilter-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-core-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-dataset-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-extract-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-hstore-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-pbf-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-pgsimple-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-pgsnapshot-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-replication-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-set-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-tagfilter-0.40.1.jar
osmosis-0.40.1/lib/default/osmosis-xml-0.40.1.jar
osmosis-0.40.1/lib/default/osmpbf-1.1.1-754a33af.jar
osmosis-0.40.1/lib/default/plexus-classworlds-2.4.jar
osmosis-0.40.1/lib/default/postgis-jdbc-1.3.3.jar
osmosis-0.40.1/lib/default/postgresql-9.0-801.jdbc4.jar
osmosis-0.40.1/lib/default/protobuf-java-2.4.1.jar
osmosis-0.40.1/lib/default/spring-aop-3.0.6.RELEASE.jar
osmosis-0.40.1/lib/default/spring-asm-3.0.6.RELEASE.jar
osmosis-0.40.1/lib/default/spring-beans-3.0.6.RELEASE.jar
osmosis-0.40.1/lib/default/spring-context-3.0.6.RELEASE.jar
osmosis-0.40.1/lib/default/spring-core-3.0.6.RELEASE.jar
osmosis-0.40.1/lib/default/spring-expression-3.0.6.RELEASE.jar
osmosis-0.40.1/lib/default/spring-jdbc-3.0.6.RELEASE.jar
osmosis-0.40.1/lib/default/spring-tx-3.0.6.RELEASE.jar
osmosis-0.40.1/lib/default/stax2-api-3.1.1.jar
osmosis-0.40.1/lib/default/woodstox-core-lgpl-4.1.2.jar
osmosis-0.40.1/lib/default/xercesImpl-2.9.1.jar
osmosis-0.40.1/readme.txt
osmosis-0.40.1/script/contrib/CreateGeometryForWays.sql
osmosis-0.40.1/script/contrib/apidb_0.6.sql
osmosis-0.40.1/script/contrib/apidb_0.6_osmosis_xid_indexing.sql
osmosis-0.40.1/script/contrib/dump_apidb.sh
osmosis-0.40.1/script/contrib/replicate_osm_file.sh
osmosis-0.40.1/script/fix_line_endings.sh
osmosis-0.40.1/script/munin/README
osmosis-0.40.1/script/munin/osm_replication.conf
osmosis-0.40.1/script/munin/osm_replication_lag
osmosis-0.40.1/script/pgsimple_load_0.6.sql
osmosis-0.40.1/script/pgsimple_schema_0.6.sql
osmosis-0.40.1/script/pgsimple_schema_0.6_action.sql
osmosis-0.40.1/script/pgsimple_schema_0.6_bbox.sql
osmosis-0.40.1/script/pgsimple_schema_0.6_linestring.sql
osmosis-0.40.1/script/pgsnapshot_and_pgsimple.txt
osmosis-0.40.1/script/pgsnapshot_load_0.6.sql
osmosis-0.40.1/script/pgsnapshot_schema_0.6.sql
osmosis-0.40.1/script/pgsnapshot_schema_0.6_action.sql
osmosis-0.40.1/script/pgsnapshot_schema_0.6_bbox.sql
osmosis-0.40.1/script/pgsnapshot_schema_0.6_linestring.sql
osmosis-0.40.1/script/pgsnapshot_schema_0.6_upgrade_4-5.sql
osmosis-0.40.1/script/pgsnapshot_schema_0.6_upgrade_5-6.sql
osmosis-0.40.1/bin/osmosis
osmosis-0.40.1/bin/osmosis-extract-apidb-0.6
osmosis-0.40.1/bin/osmosis-extract-mysql-0.6
osmosis-0.40.1/bin/osmosis.bat
linux-wyee:/home/martin # cd osmosis-0.39
bash: cd: osmosis-0.39: Datei oder Verzeichnis nicht gefunden
linux-wyee:/home/martin # chmod a+x bin/osmosis
chmod: Zugriff auf „bin/osmosis“ nicht möglich: Datei oder Verzeichnis nicht gefunden
linux-wyee:/home/martin # bin/osmosis
bash: bin/osmosis: Datei oder Verzeichnis nicht gefunden

the last lines mean;

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


bash: cd: osmosis-0.39: file or directory was not found 
chmod: no access on „bin/osmosis“ it is not possible to access "bin/osmosis": file or direcory werent found 
linux-wyee:/home/martin # bin/osmosis
bash: bin/osmosis: directory or file werent found

so what!?

On 2012-04-27 21:26, dilbertone wrote:

> you recommended me to get it from the GEO repository
>
>
> http://tinyurl.com/c25nmas
>
> how - i do not know

Why, do you not know how to add a repository in Yast? :-o


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Hey Dilbert.

No worries, I’ve been using linux for almost 2 years now and still feel like a newb. So much to learn too I keep my learning practical!

Here’s what you do.
Follow the instruction at “Add package repositories”.
It’s a good site because it shows you the Yast and Zypper way.

Try the yast way first. It’s fairly easy.

Then head on over to “YaST Software Management” to learn how to install the packages.

NOTE:
The first thing you should do after adding a repository, is to refresh it.
You can do this in bulk from the command line.

Open a terminal and type:

sudo zypper refresh

This should start downloading ‘metadata’ for each repository. Because you have added a new one you will be asked to ‘accept the key’ or something similar.
The three option are a/r/i or something. Enter ‘a’ for ‘always’ as your option.

You can refresh in YaST software management as well from Edit -> Refresh.

And in response to your errors from the tar package…

You have an incorrect path.

Try to make use of the ‘auto-complete’ in your terminal. Press the first few letters, like ‘os’ then press the tab key on your keyboard. Double press tab if nothing comes up.
Also remember that Linux is case sensitive so a file or folder called “Osmosis” is not the same folder as “osmosis” and they can exist in the same directory without any issues.

The tar package you extracted created a folder called “[LEFT]osmosis-0.40.1” so you need to ‘cd’ into this directory.

Do NOT cd into the directory “osmosis-0.39” from the instructions because they are just outdated in that regard.
When you tried, the error was telling you that it could not find that folder.
[/LEFT]

hello again

regarding the adding a repo i followed your instructions - at least i tried…


#linux-wyee:/home/martin # zypper lr -d
#  | Alias                                       | Name                                        | Aktiviert | Aktualisieren | Priorität | Typ    | URI                                                                                   | Dienst
---+---------------------------------------------+---------------------------------------------+-----------+---------------+-----------+--------+---------------------------------------------------------------------------------------+-------
 1 | Aktualisierungen-für-openSUSE-12.1-12.1-1.4 | Aktualisierungen für openSUSE 12.1 12.1-1.4 | Ja        | Ja            |   99      | rpm-md | [Index of /update/12.1](http://download.opensuse.org/update/12.1/)                                             |       
 2 | UpdatedApps                                 | KDE UpdatedApps Repo                        | Ja        | Ja            |   99      | rpm-md | [Index of /repositories/KDE:/UpdatedApps/openSUSE_12.1](http://download.opensuse.org/repositories/KDE:/UpdatedApps/openSUSE_12.1/)             |       
 3 | gis_-_osmosis                               | gis - osmosis                               | Ja        | Ja            |   99      | rpm-md | [Index of /repositories/Application:/Geo/openSUSE_12.1](http://download.opensuse.org/repositories/Application:/Geo/openSUSE_12.1/)             |       
 4 | openSUSE-12.1-12.1-1.4                      | openSUSE-12.1-12.1-1.4                      | Ja        | Nein          |   99      | yast2  | cd:///?devices=/dev/disk/by-id/ata-TSSTcorp_CDDVDW_SN-S083C_m1L3456789KLMNOP,/dev/sr0 |       
 5 | packman-x86_64                              | packman-x86_64                              | Ja        | Nein          |   99      | rpm-md | [Index of /suse/12.1/](http://packman.inode.at/suse/12.1/)                                                    |       
 6 | repo-debug                                  | openSUSE-12.1-Debug                         | Nein      | Ja            |   99      | NONE   | [Index of /debug/distribution/12.1/repo/oss](http://download.opensuse.org/debug/distribution/12.1/repo/oss/)                        |       
 7 | repo-debug-update                           | openSUSE-12.1-Update-Debug                  | Nein      | Ja            |   99      | NONE   | [Index of /debug/update/12.1](http://download.opensuse.org/debug/update/12.1/)                                       |       
 8 | repo-non-oss                                | openSUSE-12.1-Non-Oss                       | Ja        | Ja            |   99      | yast2  | [Index of /distribution/12.1/repo/non-oss](http://download.opensuse.org/distribution/12.1/repo/non-oss/)                          |       
 9 | repo-oss                                    | openSUSE-12.1-Oss                           | Ja        | Ja            |   99      | yast2  | [Index of /distribution/12.1/repo/oss](http://download.opensuse.org/distribution/12.1/repo/oss/)                              |       
10 | repo-source                                 | openSUSE-12.1-Source                        | Nein      | Ja            |   99      | NONE   | [Index of /source/distribution/12.1/repo/oss](http://download.opensuse.org/source/distribution/12.1/repo/oss/)                       |       
linux-wyee:/home/martin #

i also did a zypper refresh…
what do you say . what needs to be done now…

and now i am trying to do what you wrote in the very(!!!) last posting… i allready have seen that i ( also) did something wrong - regarding the work with the terminal…

i come back and report all my findings… later the day…

untill soon

greetings

On 2012-04-27 23:56, saultdon wrote:

> NOTE:
> The first thing you should do after adding a repository, is to refresh
> it.

No need. As soon as you open Yast package management, that will happen
automatically.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

hello again

regarding the above mentioned listing of repos - can we say that i have osmosis installed yet!?
Is this true - How can i test if osmosis is installed yet!?

Can this be tested on commandline - in terminal!? How??

i teste with this;




linux-wyee:/home/martin/gis/test/test2/a_repo # :~> cnf osmosis
linux-wyee:/home/martin/gis/test/test2/a_repo # cnf osmosis
                    
the Programme 'osmosis' was found here:
  * osmosis  Pfad: /usr/bin/osmosis, Repository: zypp (gis_-_osmosis) ]

Try installing with:
    zypper install osmosis


well just wondering - does this mean i have to install it!!?

love to hear from your

btw- do i need postgis and - yes i guess i have to install postgresql too.
Note; i have a apache / lamp allready up and running on my opensuse 12.1.

You do not have osmosis installed yet.

Type

sudo zypper in osmosis

It looks like you added the repository that holds the osmosis package.

Once osmosis is installed, check out the OSM wiki for Osmosis to learn the usage and some setup tips.