<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/15/2012 10:07 PM, datendelphin
      wrote:<br>
    </div>
    <blockquote cite="mid:5003231D.4030105@osm.datendelphin.net"
      type="cite">
      <pre wrap="">Hi

Please insert

 echo $osm2pgsql."\n";

on line 132 in setup.php, just before passthru($osm2pgsql);
Then we can see the commandline for osm2pgsql that is constructed.

</pre>
    </blockquote>
    <br>
    Hi,<br>
    <br>
    I tried that, here is what I get:<br>
    <br>
    <font face="Courier New">/opt/Nominatim/osm2pgsql/osm2pgsql -lsc -O
      gazetteer --hstore -C 217 -d nominatim /tmp/switzerland.osm</font><br>
    <br>
    The whole output is:<br>
    <font face="Courier New"><br>
      SET<br>
      SET<br>
      SET<br>
      SET<br>
      CREATE TABLE<br>
      ALTER TABLE<br>
      Import<br>
      /opt/Nominatim/osm2pgsql/osm2pgsql -lsc -O gazetteer --hstore -C
      217 -d nominatim /tmp/switzerland.osm<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=217MB, maxblocks=27777*8192, allocation
      method=11<br>
      Mid: pgsql, scale=10000000 cache=217<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: /tmp/switzerland.osm<br>
      Segmentation fault (core dumped)<br>
      ERROR: DB Error: no such table<br>
      DB Error: no such table</font><br>
    <br>
    Thanks,<br>
    Gabriel<br>
  </body>
</html>