<div dir="ltr">Hi David,<div><br></div><div>The problem is likely that the CentOS 7 packaged version of PostGIS 2.4 was not made in a way to support protobuf-related functions (including ST_AsMVT).</div><div><br></div><div>It does not help adding protobuf-c as a package later, it needs to be depended on by the postgis package and available when the package is/was created.</div><div><br></div><div>So, you will either have to convince the responsible for the package to depend on the required things for protobuf-related functions or find an alternative distribution of the package, or build postgis yourself.</div><div><br></div><div>Notes on the protobuf-related (optional) requirements are listed at:</div><div><a href="https://postgis.net/docs/manual-2.4/postgis_installation.html#install_requirements">https://postgis.net/docs/manual-2.4/postgis_installation.html#install_requirements</a><br></div><div><br></div><div>/Björn<br><div class="gmail_extra"><br><div class="gmail_quote">2018-01-09 16:56 GMT+01:00 David MacDonald <span dir="ltr"><<a href="mailto:davidm@yambay.com" target="_blank">davidm@yambay.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="word-wrap:break-word">
Hi,<br>
<div><br>
</div>
<div>I’m currently working on a Mapbox tile server using the new MVT support in Postgis 2.4.  I’ve been testing with a local docker image of Postgres/Postgis and all is going well.</div>
<div><br>
</div>
<div>However, I’ve moved to testing on a CentOS 7 VM, and have run into an issue.</div>
<div><br>
</div>
<div><br>
</div>
<div>So I installed Postgres as follows:</div>
<div><br>
</div>
<div>
<pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:Menlo;font-size:9pt"><pre style="font-family:Menlo;font-size:9pt">sudo yum -y install <a href="https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm" target="_blank">https://download.postgresql.<wbr>org/pub/repos/yum/10/redhat/<wbr>rhel-7-x86_64/pgdg-centos10-<wbr>10-1.noarch.rpm</a><br><br>sudo yum -y install postgresql10-server postgresql10 postgis24_10 postgis24_10-utils postgis24_10-client<br><br>sudo /usr/pgsql-10/bin/postgresql-<wbr>10-setup initdb</pre><pre style="font-family:Menlo;font-size:9pt"><pre style="font-size:9pt;font-family:Menlo">sudo systemctl enable postgresql-10<br>sudo systemctl start postgresql-10</pre></pre><pre style="font-family:Menlo;font-size:9pt"><br></pre></pre>
<div><br>
</div>
</div>
<div>I’ve also enabled the posts extensions.</div>
<div><br>
</div>
<div>However, when I execute an ST_AsMVT query, I get the following error:</div>
<div><br>
</div>
<div>2018-01-09 23:32:31.122 AWST [9913] ERROR:  Missing libprotobuf-c</div>
<div><br>
</div>
<div><br>
</div>
<div>I’ve Googled about, but I can’t seem to find anything conclusive.</div>
<div><br>
</div>
<div>I tried installing protobuf:</div>
<div><br>
</div>
<div>sudo yum install protobuf protobuf-c</div>
<div><br>
</div>
<div>And restarting Postgres, but still the issue persists.</div>
<div><br>
</div>
<div>Any help or direction would be very much appreciated.</div><span class="gmail-HOEnZb"><font color="#888888">
<div><br>
</div>
<div>David.</div>
<br>
<br>
</font></span></div>

<br>______________________________<wbr>_________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/postgis-users</a><br></blockquote></div><br></div></div></div>