You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
Author: jburgess777[at]googlemail.com [Added to the original trac issue at 9.07pm, Friday, 22nd February 2013]
I suspect you are using a 32 bit VM. It looks like the current code will fail to open a PBF file > 4GB when compiled as a 32 bit executable. It should be possible to fix this but importing a large amount of data on a 32 bit system is probably going to be slow.
I'll try to look at fixing this but in the short term you may be better off trying to run a 64 bit OS instead.
Author: amm [Added to the original trac issue at 5.42pm, Saturday, 2nd March 2013]
It looks like Ubuntu still does not default to using large file support[1] for their 32 bit OS version. So all of the file offset pointers are only 32 bit as well and thus can't handle large files.
It seems just adding a -D_FILE_OFFSET_BITS=64 to the compile flags might solve it. But as each OS and flavour seems to behave differently in this area, I am not sure what the best way to do this in configure is.
That said, even if you can open the file, you might well run into trouble later during the process on a 32 bit OS for such large imports, so I would definitely recommend using a 64 bit OS. Particularly if you say you have more than 4Gb of physical ram!
Reporter: errox
[Submitted to the original trac issue database at 8.06pm, Wednesday, 20th February 2013]
Hello Everybody,
i posted it already in the Forum.
http://forum.openstreetmap.org/viewtopic.php?pid=314287#p314287
No one aswer it.
If i wanted to Import europe.osm.pbf it throws me the error:
Unable to open europe.osm.pbf
Germany / belgium alone works fine.
My Command:
osm2pgsql --slim -C 1500 europe.osm.pbf
The text was updated successfully, but these errors were encountered: