Osm2pgsql usage error

Hi everyone,

after executing this command:

osm2pgsql + ' -s -d ' + database + ' ' + file + ' -S ' + style + ' -C ' + str(cache) + ' -P ' + str(port) + ' --number-processes 8 '

I’m getting this error:

osm2pgsql SVN version 0.70.5

/usr/bin/osm2pgsql: unrecognized option '--number-processes'
Usage error. For further information see:
	osm2pgsql -h|--help
An osm2pgsql error occured. Database was probably cleaned.

Could anyone help? Is it really something wrong with the “–number-processes” option or it is something different?

Hi,

Version 0.70.5 must be very old, maybe from year 2010. Did you check with osm2pgsql -h if it really supports --number-processes? Anyway, I suggest to update and try again.