undefined symbol: lwgeom_sfcgal_version
<p>I'm currently trying to install PostGIS. I already have PostgreSQL installed, and I've followed <a href="https://geonode.readthedocs.io/en/2.0/tutorials/admin/install/install_postgis.html" rel="nofollow noreferrer">this link</a> (except I changed the geos version to 3.5.0 and postgis to 2.2.2) down to the final step which is to log into the template database and run "create extension postgis;". Doing so produces the following error, and I can only find <a href="https://gis.stackexchange.com/questions/192650/postgis-broken-after-ubuntu-16-04-upgrade">this</a> link which does not apply to me as everything is freshly installed today, and as per the <a href="https://geonode.readthedocs.io/en/2.0/tutorials/admin/install/install_postgis.html" rel="nofollow noreferrer">linked tutorial</a> I did build from the source, too.</p>

<p>Doing so produces this error:</p>

<pre><code>ERROR:  could not load library "/usr/lib/postgresql/9.5/lib/postgis-2.2.so": /usr/lib/postgresql/9.5/lib/postgis-2.2.so: undefined symbol: lwgeom_sfcgal_version
</code></pre>

<p>I am running Ubuntu 16.04. </p>

<p>Additionally: </p>

<pre><code>jack@jack-VirtualBox:~$ apt-file search liblwgeom
liblwgeom-2.2-5: /usr/lib/liblwgeom-2.2.so.5
liblwgeom-2.2-5: /usr/lib/liblwgeom-2.2.so.5.0.0
liblwgeom-2.2-5: /usr/share/doc/liblwgeom-2.2-5/NEWS.Debian.gz
liblwgeom-2.2-5: /usr/share/doc/liblwgeom-2.2-5/changelog.Debian.gz
liblwgeom-2.2-5: /usr/share/doc/liblwgeom-2.2-5/copyright
liblwgeom-2.2-5: /usr/share/lintian/overrides/liblwgeom-2.2-5
liblwgeom-dev: /usr/include/liblwgeom.h
liblwgeom-dev: /usr/include/liblwgeom_topo.h
liblwgeom-dev: /usr/lib/liblwgeom.a
liblwgeom-dev: /usr/lib/liblwgeom.so
liblwgeom-dev: /usr/share/doc/liblwgeom-dev/NEWS.Debian.gz
liblwgeom-dev: /usr/share/doc/liblwgeom-dev/changelog.Debian.gz
liblwgeom-dev: /usr/share/doc/liblwgeom-dev/copyright

jack@jack-VirtualBox:~$ sudo apt-get install liblwgeom-dev
[sudo] password for jack: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
liblwgeom-dev is already the newest version (2.2.2+dfsg-4.pgdg16.04+1).
0 to upgrade, 0 to newly install, 0 to remove and 248 not to upgrade.
</code></pre>

<p>Does anybody know what the cause of this error is? </p>

<p>Thanks in advance</p>