[OSM-dev] osm2pgsql and protobuf-c shared object error

bigspoon gregcorradini at gmail.com
Thu Jun 23 01:08:39 BST 2011


Hello,
I built osm2pgsql against libprotobuf-c as described on the osm2pgsql wiki
page. Now I get the following error about not finding the shared protobuf-c
object when I run ./osm2pgsql executable.

*error:*
libprotobuf-c.so.0: cannot open shared object file: No such file or
directory


The osm2pgsql ./configure output tells me that everything i needed regarding
protobuf-c is fine:

*configure output:*
checking for proj library... found
checking for proj projection library... yes
checking for protobuf-c 0.14...
checking for protobuf_c headers in /usr/local/include... found
checking for protobuf_c library... found
checking for protobuf-c version >= 0.14...
checking for ProtobufCFieldDescriptor.packed... yes
protobuf-c >= 0.14: yes
checking for protobuf-c usability... yes
checking for protoc-c... /usr/local/bin/protoc-c


And the Makefile shows libtool linking libprotobuf-c libraries during
compilation.

*Makefile text:*
AM_LDFLAGS = -pthread -L/usr/lib -lz -L/usr/lib -lpq -lxml2 -L/usr/lib -lbz2
-L/usr/local/lib -L/usr/local/lib -lgeos -L/usr/local/lib -lproj
-L/usr/local/lib *-lprotobuf-c*

LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
        --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) *$(AM_LDFLAGS)* \
        $(LDFLAGS) -o $@


Not sure what's happening. Any ideas? 

--
View this message in context: http://gis.638310.n2.nabble.com/osm2pgsql-and-protobuf-c-shared-object-error-tp6506647p6506647.html
Sent from the Developer Discussion mailing list archive at Nabble.com.



More information about the dev mailing list