[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    [postgis-users] How to install the latest PostGIS (3.0 or very latest) on CentOS 8.1?
From:       "/dev /local/ca" <devlocalca () gmail ! com>
Date:       2020-04-30 7:35:59
Message-ID: CAH5ok1nTHoUaVA7aEGS3ZCx4L6qdhRcmuDv=6C-Mrw4McMPH4w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I am attempting to following instructions to install PostGIS here (to
install the latest production release of PostGIS on CentOS 8.1):

https://postgis.net/install

---

In the section titled:
`Red Hat / Centos / Scientific Linux`
I do not understand exactly what it is I need to do there, or if I need to
do it,or how to determine if I need to do anything in that section.

---

When I run this command on my CentOS 8 system,

`$dnf list | grep postgis30_12`

I get:

```
postgis30_12.x86_64                                  3.0.1-2.rhel8
                            pgdg12
postgis30_12-client.x86_64                           3.0.1-2.rhel8
                            pgdg12
postgis30_12-devel.x86_64                            3.0.1-2.rhel8
                            pgdg12
postgis30_12-docs.x86_64                             3.0.1-2.rhel8
                            pgdg12
postgis30_12-gui.x86_64                              3.0.1-2.rhel8
                            pgdg12
postgis30_12-utils.x86_64                            3.0.1-2.rhel8
                            pgdg12
```

---

*Question 1:*
so therefore, is there anything in that section that I need to do?

*Question 2:*
After reading this section, how would I determine if I need to do anything?

*Question 3:*
And if so, what would that be?

---

*When I run:*

`create extension postgis;`

*I get this error:*


ERROR:  could not open extension control file
"/usr/pgsql-12/share/extension/postgis.control": No such file or
directory

When checking, indeed that file (*postgis.control*) is not there.


*Question 4:*

What am I missing?

---

*sql>select version();`*


PostgreSQL 12.2 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.3.1
20190507 (Red Hat 8.3.1-4), 64-bit

---

OS installed was: *CentOS Linux release 8.1.1911* (Core)

(not sure why it says: Red Hat 8.3.1-4 in: select version();)
---

[Attachment #5 (text/html)]

<div dir="ltr"><font size="4">I am attempting to following instructions to install \
PostGIS here (to install the latest production release of PostGIS on CentOS \
8.1):</font><div><font size="4"><br></font></div><div><a \
href="https://postgis.net/install/"><font \
size="4">https://postgis.net/install</font></a></div><div><font \
size="4"><br></font></div><div><font size="4">---</font></div><div><font \
size="4"><br></font></div><div><font size="4">In the section titled:</font></div><h2 \
style="margin:0.8em 0px \
0.6em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inhe \
rit;font-stretch:inherit;line-height:inherit;font-family:sans-serif;vertical-align:baseline;color:rgb(68,68,68)"><font \
size="4">`Red Hat / Centos / Scientific Linux`</font></h2><div><font size="4">I do \
not understand exactly what it is I need to do there, or if I need to do it,or how to \
determine if I need to do anything in that section.</font></div><div><font \
size="4"><br></font></div><div><font size="4">---</font></div><div><font \
size="4"><br></font></div><div><font size="4">When I run this command on my CentOS 8 \
system,  </font></div><div><font size="4"><br></font></div><div><font size="4">`$dnf \
list | grep postgis30_12`<br></font></div><div><font \
size="4"><br></font></div><div><font size="4">I get:</font></div><div><font \
size="4"><br></font></div><div><font size="4">```</font></div><div><font \
size="4">postgis30_12.x86_64                                                   \
3.0.1-2.rhel8                                                       \
pgdg12<br>postgis30_12-client.x86_64                                        \
3.0.1-2.rhel8                                                       \
pgdg12<br>postgis30_12-devel.x86_64                                          \
3.0.1-2.rhel8                                                       \
pgdg12<br>postgis30_12-docs.x86_64                                           \
3.0.1-2.rhel8                                                       \
pgdg12<br>postgis30_12-gui.x86_64                                             \
3.0.1-2.rhel8                                                       \
pgdg12<br>postgis30_12-utils.x86_64                                          \
3.0.1-2.rhel8                                                       \
pgdg12<br></font></div><div><font size="4">```</font></div><div><font \
size="4"><br></font></div><div><font size="4">---</font></div><div><font \
size="4"><br></font></div><div><b><font size="4">Question \
1:</font></b></div><div><font size="4">so therefore, is there anything in that \
section that I need to do?</font></div><div><font \
size="4"><br></font></div><div><b><font size="4">Question \
2:</font></b></div><div><font size="4">After reading this section, how would I \
determine if I need to do anything?</font></div><div><font \
size="4"><br></font></div><div><b><font size="4">Question \
3:</font></b></div><div><font size="4">And if so, what would that \
be?</font></div><div><font size="4"><br></font></div><div><font \
size="4">---</font></div><div><font size="4"><br></font></div><div><font \
size="4"><b>When I run:</b></font></div><div><font \
size="4"><br></font></div><div><font size="4">`create extension \
postgis;`</font></div><div><font size="4"><br></font></div><div><font size="4"><b>I \
get this error:</b></font></div><div><font size="4"><br></font></div><div><font \
size="4"><br></font></div><div><pre class="gmail-lang-sql gmail-prettyprint \
gmail-prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><code \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit"><font \
size="4"><span class="gmail-pln" \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit">ERROR</span><span \
class="gmail-pun" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-var \
iant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit">:</span><span \
class="gmail-pln" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-var \
iant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit"> \
could </span><span class="gmail-kwd" \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit">not</span><span \
class="gmail-pln" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-var \
iant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit"> \
</span><span class="gmail-kwd" \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit">open</span><span \
class="gmail-pln" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-var \
iant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit"> \
extension control </span><span class="gmail-kwd" \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit">file</span><span \
class="gmail-pln" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-var \
iant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit"> \
</span><span class="gmail-str" \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-a \
lign:baseline;box-sizing:inherit">&quot;/usr/pgsql-12/share/extension/postgis.control&quot;</span><span \
class="gmail-pun" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-var \
iant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit">:</span><span \
class="gmail-pln" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-var \
iant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit"> \
No such </span><span class="gmail-kwd" \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit">file</span><span \
class="gmail-pln" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-var \
iant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit"> \
</span><span class="gmail-kwd" \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit">or</span><span \
class="gmail-pln" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-var \
iant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit"> \
directory</span></font></code></pre><pre class="gmail-lang-sql gmail-prettyprint \
gmail-prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><font \
size="4">When checking, indeed that file (<b>postgis.control</b>) is not \
there.</font></pre><pre class="gmail-lang-sql gmail-prettyprint gmail-prettyprinted" \
style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><font \
size="4"><br></font></pre><pre class="gmail-lang-sql gmail-prettyprint \
gmail-prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><font \
size="4"><b>Question 4:</b></font></pre><pre class="gmail-lang-sql gmail-prettyprint \
gmail-prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><font \
size="4">What am I missing?</font></pre><pre class="gmail-lang-sql gmail-prettyprint \
gmail-prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><font \
size="4">---</font></pre><pre class="gmail-lang-sql gmail-prettyprint \
gmail-prettyprinted" style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><font \
size="4"><b>sql&gt;select version();`</b></font></pre><pre class="gmail-lang-sql \
gmail-prettyprint gmail-prettyprinted" \
style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><pre \
class="gmail-lang-none gmail-prettyprint gmail-prettyprinted" \
style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px"><code \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit"><span \
class="gmail-pln" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-var \
iant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;box-sizing:inherit"><font \
size="4"> PostgreSQL 12.2 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.3.1 \
                20190507 (Red Hat 8.3.1-4), 64-bit</font></span></code></pre><font \
                size="4">
---</font></pre><pre class="gmail-lang-sql gmail-prettyprint gmail-prettyprinted" \
style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><font \
size="4">OS installed was:  <strong \
style="font-family:inherit;white-space:normal;font-style:inherit;font-variant:inherit; \
margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit">CentOS \
Linux release 8.1.1911</strong><span style="font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;white-space:normal">  (Core)</span></font></pre><pre \
class="gmail-lang-sql gmail-prettyprint gmail-prettyprinted" \
style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><p \
style="margin:0px 0px \
1em;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Arial,&quot;Helvetica \
Neue&quot;,Helvetica,sans-serif;vertical-align:baseline;box-sizing:inherit;clear:both;white-space:normal"><font \
size="4">(not sure why it says: Red Hat 8.3.1-4 in:  <code \
style="margin:0px;padding:1px \
5px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;white-space:pre-wrap">select \
version();</code>)</font></p><font size="4">---</font></pre><pre \
class="gmail-lang-sql gmail-prettyprint gmail-prettyprinted" \
style="margin-top:0px;margin-bottom:1em;padding:12px \
8px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,&quot;Lucida \
Console&quot;,&quot;Liberation Mono&quot;,&quot;DejaVu Sans \
Mono&quot;,&quot;Bitstream Vera Sans Mono&quot;,&quot;Courier \
New&quot;,monospace,sans-serif;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px;color:rgb(36,39,41)"><font \
size="4"><br></font></pre><br class="gmail-Apple-interchange-newline"></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
postgis-users mailing list
postgis-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic