<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 07/17/2012 09:05 AM, Sarah Hoffmann
      wrote:<br>
    </div>
    <blockquote cite="mid:20120717070554.GB15007@denofr.de" type="cite">
      <pre wrap="">On Tue, Jul 17, 2012 at 08:03:01AM +0200, Gabriel Rossetti wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On 07/17/2012 07:59 AM, Datendelphin wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">
</pre>
          <blockquote type="cite">
            <pre wrap="">Hi,

I tried that, here is what I get:

/opt/Nominatim/osm2pgsql/osm2pgsql -lsc -O gazetteer --hstore -C
217 -d nominatim /tmp/switzerland.osm
</pre>
          </blockquote>
          <pre wrap="">Hi

Looks good, and I see finally osm2pgsql runs! (in your previous
reports, it failed because of command line. What was it?)

With the segmentation fault, I can't reproduce that. Which file ar
you using?
<a class="moz-txt-link-freetext" href="http://download.geofabrik.de/osm/europe/switzerland.osm.bz2">http://download.geofabrik.de/osm/europe/switzerland.osm.bz2</a>?

datendelphin
</pre>
        </blockquote>
        <pre wrap="">Hi, ok. I was running:

./utils/setup.php --osm-file switzerland.osm --all

Yes, that is the file.
</pre>
      </blockquote>
      <pre wrap="">
It's possible your osm file is somehow broken. Can you download it
again and try with the newer version. And I'm not sure if you are
unpacking the file first. There is no need for that. Just use the
packed osm.bz2 as is.

If it still doesn't work, there might be a compilation problem with
osm2pgsql. Please rerun ./configure in /opt/Nominatim and attach the
complete output of that.

Sarah
</pre>
    </blockquote>
    <br>
    I tried downloading it twice, the second time I tried without
    decompressing it (although if it was broken it wouldn't decompress
    would it?) and it didn't work either<big>:<br>
      <br>
      <small><font face="Courier New">...<br>
          SET<br>
          SET<br>
          SET<br>
          CREATE TABLE<br>
          ALTER TABLE<br>
          Import<br>
          /opt/Nominatim/osm2pgsql/osm2pgsql -lsc -O gazetteer --hstore
          -C 84 -d nominatim /home/ubuntu/tmp/switzerland.osm.bz2<br>
          Using projection SRS 4326 (Latlong)<br>
          NOTICE:  table "place" does not exist, skipping<br>
          NOTICE:  type "keyvalue" does not exist, skipping<br>
          NOTICE:  type "wordscore" does not exist, skipping<br>
          NOTICE:  type "stringlanguagetype" does not exist, skipping<br>
          NOTICE:  type "keyvaluetype" does not exist, skipping<br>
          NOTICE:  function get_connected_ways(pg_catalog.int4[]) does
          not exist, skipping<br>
          Allocating memory for dense node cache<br>
          Allocating dense node cache in one big chunk<br>
          Allocating memory for sparse node cache<br>
          Sharing dense sparse<br>
          Node-cache: cache=84MB, maxblocks=10753*8192, allocation
          method=11<br>
          Mid: pgsql, scale=10000000 cache=84<br>
          Setting up table: planet_osm_nodes<br>
          NOTICE:  table "planet_osm_nodes" does not exist, skipping<br>
          NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
          "planet_osm_nodes_pkey" for table "planet_osm_nodes"<br>
          Setting up table: planet_osm_ways<br>
          NOTICE:  table "planet_osm_ways" does not exist, skipping<br>
          NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
          "planet_osm_ways_pkey" for table "planet_osm_ways"<br>
          Setting up table: planet_osm_rels<br>
          NOTICE:  table "planet_osm_rels" does not exist, skipping<br>
          NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
          "planet_osm_rels_pkey" for table "planet_osm_rels"<br>
          <br>
          Reading in file: /home/ubuntu/tmp/switzerland.osm.bz2<br>
          Segmentation fault (core dumped)<br>
          ERROR: DB Error: no such table<br>
          DB Error: no such table</font></small><br>
      <br>
    </big>Thanks,<br>
    Gabriel<br>
  </body>
</html>