Osm2pgsql Error

Today I was trying to import data to the database using latest version of openstreetmap-carto. But I got an error.

$ osm2pgsql –slim -d gis -C 2000 –hstore –number-processes=4 –hstore -S ~/osm/openstreetmap-carto/openstreetmap-carto.style ~/Downloads/india-latest.osm.pbf

Error

osm2pgsql: error while loading shared libraries: libproj.so.0: cannot open shared object file: No such file or directory

Then I locate this shared library.

$locate libproj.so

Output

/usr/lib/x86_64-linux-gnu/libproj.so
/usr/lib/x86_64-linux-gnu/libproj.so.9
/usr/lib/x86_64-linux-gnu/libproj.so.9.1.0

Then I created the symbolic link.

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libproj.so /usr/lib/libproj.so.0

And the problem was solved.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s