Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error opening /usr/share/osm2pgrouting/mapconfig.xml #298

Closed
chkwon opened this issue May 4, 2022 · 1 comment
Closed

Error opening /usr/share/osm2pgrouting/mapconfig.xml #298

chkwon opened this issue May 4, 2022 · 1 comment
Labels

Comments

@chkwon
Copy link

chkwon commented May 4, 2022

I have a question for osm2pgrouting. My make install went well and I tried to use osm2pgrouting to install a database. It ended up with the following error:

Opening configuration file: /usr/share/osm2pgrouting/mapconfig.xml
    Parsing configuration

Error opening /usr/share/osm2pgrouting/mapconfig.xml:No such file or directoryFailed to open / parse config file
/usr/share/osm2pgrouting/mapconfig.xml

I am running this with osm2pgrouting Version 2.3.9 on Ubuntu.

SELECT version();
"PostgreSQL 13.6 (Ubuntu 13.6-0ubuntu0.21.10.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0, 64-bit"

SELECT postgis_full_version();
"POSTGIS=""3.1.1 aaf4c79"" [EXTENSION] PGSQL=""130"" GEOS=""3.9.0-CAPI-1.16.2"" PROJ=""7.2.1"" LIBXML=""2.9.10"" LIBJSON=""0.15"" LIBPROTOBUF=""1.3.3"" WAGYU=""0.5.0 (Internal)"""

SELECT pgr_version();
"3.1.3"

The complete output was:

***************************************************
           COMMAND LINE CONFIGURATION             *
***************************************************
Filename = /tmp/andorra-latest.osm.pbf
Configuration file = /usr/share/osm2pgrouting/mapconfig.xml
host = localhost
port = 5432
dbname = routing
username = chkwon
schema= 
prefix = 
suffix = 
Drop tables
Don't create indexes
Don't add OSM nodes
***************************************************
Testing database connection: routing
database connection successful: routing
Connecting to the database
connection success

Dropping tables...
TABLE: ways dropped ... OK.
TABLE: ways_vertices_pgr dropped ... OK.
TABLE: pointsofinterest dropped ... OK.
TABLE: configuration dropped ... OK.
TABLE: osm_nodes dropped ... OK.
TABLE: osm_ways dropped ... OK.
TABLE: osm_relations dropped ... OK.

Creating tables...
TABLE: ways_vertices_pgr created ... OK.
TABLE: ways created ... OK.
TABLE: pointsofinterest created ... OK.
TABLE: configuration created ... OK.
Opening configuration file: /usr/share/osm2pgrouting/mapconfig.xml
    Parsing configuration

Error opening /usr/share/osm2pgrouting/mapconfig.xml:No such file or directoryFailed to open / parse config file
/usr/share/osm2pgrouting/mapconfig.xml
@chkwon chkwon added the bug label May 4, 2022
@chkwon
Copy link
Author

chkwon commented May 4, 2022

I found that osm2pgrouting was installed in /usr/local/share/ but it was looking at /usr/share/. I gave --conf /usr/local/share/os2mpgrouting/mapconfig.xml flag and it went well.

@chkwon chkwon closed this as completed May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant