<p>A month or so ago, before the CMAKE version I was able to run this command.</p>
<pre><code>osm2pgsql --create --slim --drop --hstore --flat-nodes flat.bin --cache 26000 --number-processes 8 --database osm planet-latest.osm.pbf
</code></pre>
<p>Today, with the new CMAKE build, the command fails with:</p>
<pre><code>Osm2pgsql failed due to ERROR: Couldn't open style file './default.style': No such file or directory
</code></pre>
<p>Adding the --style argument as in below, fixes it.</p>
<pre><code>--style /usr/local/share/osm2pgsql/default.style
</code></pre>
<p>OS is FreeBSD 10.2.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/osm2pgsql/issues/515">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7iEGmoKWqHGmYuF4WtLjsDMV9wkEks5pPFQGgaJpZM4G0J13.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/issues/515"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>