Casey, You need to link the libxml2 library in when compiling. This will be something like gcc osm2pgsql.c -o osm2pgsql -lxml2 Make sure you have libxml2 installed on your system. Nick