<p></p>
<p dir="auto">First, it looks like you are installing Nominatim, not plain osm2pgsql. Nominatim uses osm2pgsql, but it does a lot more around it, which we don't know about here and can not help you with.</p>
<p dir="auto">Second, it looks like you are missing the <code class="notranslate">nlohmann</code> JSON library. Older versions of osm2pgsql didn't need that, but the newest version does, so it might be missing from some documentation. On Ubuntu you have to install the <code class="notranslate">nlohmann-json3-dev</code> package for that.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/discussions/2072#discussioncomment-6937112">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353VLFT5G3RRF67NOFRTXZG7YLANCNFSM6AAAAAA4O25EDE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353UMSA5GF27YMOB6S63XZG7YLA5CNFSM6AAAAAA4O25EDGWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQANHNBQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/osm2pgsql/repo-discussions/2072/comments/6937112</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/discussions/2072#discussioncomment-6937112",
"url": "https://github.com/openstreetmap/osm2pgsql/discussions/2072#discussioncomment-6937112",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>