postgis-users Digest, Vol 271, Issue 6

Auberg, Mirko Mirko.Auberg at btc-it-services.com
Tue Sep 17 01:32:12 PDT 2024


Hi,

that's seems odd to me.

For PostGIS 3.0, 3.1, 3.2 & 3.3 where no root privileges necessary, because the Setup installed all while through the pg_config File under the PostGIS installation.

I don't want PostGIS Binaries on my "Compile System" under "/usr/local/bin/raster2pgsql'. The installation has to be under /postgres/PGRH8T/backup/compile/postgresql_16.4/compiled_finished/pgsql/.

Execution with sudo can't be the solution.

Regards

-----Ursprüngliche Nachricht-----
Von: postgis-users-request at lists.osgeo.org <postgis-users-request at lists.osgeo.org>
Gesendet: Montag, 16. September 2024 21:00
An: postgis-users at lists.osgeo.org
Betreff: postgis-users Digest, Vol 271, Issue 6

[Sie erhalten nicht h?ufig E-Mails von postgis-users-request at lists.osgeo.org. Weitere Informationen, warum dies wichtig ist, finden Sie unter https://aka.ms/LearnAboutSenderIdentification ]

Send postgis-users mailing list submissions to
        postgis-users at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.osgeo.org/mailman/listinfo/postgis-users
or, via email, send a message with subject or body 'help' to
        postgis-users-request at lists.osgeo.org

You can reach the person managing the list at
        postgis-users-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of postgis-users digest..."


Today's Topics:

   1. PostGIS 3.4.x - Error while compile make install (Auberg, Mirko)
   2. Re: PostGIS 3.4.x - Error while compile make install
      (Jorge Gustavo Rocha)


----------------------------------------------------------------------

Message: 1
Date: Mon, 16 Sep 2024 15:38:07 +0000
From: "Auberg, Mirko" <Mirko.Auberg at btc-it-services.com>
To: "postgis-users at lists.osgeo.org" <postgis-users at lists.osgeo.org>
Subject: PostGIS 3.4.x - Error while compile make install
Message-ID:
        <FR2P281MB2687318755A942447304112889602 at FR2P281MB2687.DEUP281.PROD.OUTLOOK.COM>

Content-Type: text/plain; charset="us-ascii"

Hello PotGIS Users,

i try to compile PostGIS 3.4.3 with PostgreSQL 16.4.

My configure Option are this:

./configure --with-pgconfig=/postgres/PGRH8T/backup/compile/postgresql_16.4/compiled_finished/pgsql/bin/pg_config --with-geosconfig=/postgres/PGRH8T/backup/compile/postgresql_16.4/compiled_finished/pgsql/usr/bin/geos-config --with-gdalconfig=/postgres/PGRH8T/backup/compile/postgresql_16.4/compiled_finished/pgsql/usr/bin/gdal-config --with-projdir=/usr/proj63/ --with-sfcgal --without-protobuf

OS: RedHat 8
GEOS Version 3.12.2
GDAL: Version 3.9.2
Proj: Version 6.3

Im getting at "make install" following Error.


make -C loader install
make[2]: Entering directory '/postgres/PGRH8T/backup/compile/postgresql_16.4/postgresql_16.4_source/postgis-3.4.3/raster/loader'
/bin/sh ../../libtool --mode=install /usr/bin/install -c raster2pgsql "/usr/local/bin/raster2pgsql"
libtool: install: /usr/bin/install -c raster2pgsql /usr/local/bin/raster2pgsql
/usr/bin/install: cannot create regular file '/usr/local/bin/raster2pgsql': Permission denied
make[2]: *** [Makefile:97: install] Error 1
make[2]: Leaving directory '/postgres/PGRH8T/backup/compile/postgresql_16.4/postgresql_16.4_source/postgis-3.4.3/raster/loader'
make[1]: *** [Makefile:50: install] Error 2
make[1]: Leaving directory '/postgres/PGRH8T/backup/compile/postgresql_16.4/postgresql_16.4_source/postgis-3.4.3/raster'
make: *** [GNUmakefile:25: install] Error 1

Seems like a Bug to me. I have the error just with Version 3.4.x. With older Version is no Problem. Looks like the compiler forgets the pg_config Location an tries to install in the usual OS Path.

Does somebody know the problem or can open a Bug Ticket?

Regards,
Mirko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20240916/4d3162b1/attachment-0001.htm>

------------------------------

Message: 2
Date: Mon, 16 Sep 2024 17:43:03 +0100
From: Jorge Gustavo Rocha <jgr at di.uminho.pt>
To: postgis-users at lists.osgeo.org
Subject: Re: PostGIS 3.4.x - Error while compile make install
Message-ID: <66e657b2-af33-4d7f-b35f-28ea1bdf673d at di.uminho.pt>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hi Mirko,

You need to run the install with root privileges.

sudo make install

Regards,

Jorge

On 16/09/24 16:38, Auberg, Mirko wrote:
>
> Hello PotGIS Users,
>
> i try to compile PostGIS 3.4.3 with PostgreSQL 16.4.
>
> My configure Option are this:
>
> ./configure
> --with-pgconfig=/postgres/PGRH8T/backup/compile/postgresql_16.4/compil
> ed_finished/pgsql/bin/pg_config
> --with-geosconfig=/postgres/PGRH8T/backup/compile/postgresql_16.4/comp
> iled_finished/pgsql/usr/bin/geos-config
> --with-gdalconfig=/postgres/PGRH8T/backup/compile/postgresql_16.4/comp
> iled_finished/pgsql/usr/bin/gdal-config
> --with-projdir=/usr/proj63/ --with-sfcgal --without-protobuf
>
> OS: RedHat 8
>
> GEOS Version 3.12.2
>
> GDAL: Version 3.9.2
>
> Proj: Version 6.3
>
> Im getting at ?make install? following Error.
>
> make -C loader install
>
> make[2]: Entering directory
> '/postgres/PGRH8T/backup/compile/postgresql_16.4/postgresql_16.4_source/postgis-3.4.3/raster/loader'
>
> /bin/sh ../../libtool --mode=install /usr/bin/install -c raster2pgsql
> "/usr/local/bin/raster2pgsql"
>
> libtool: install: /usr/bin/install -c raster2pgsql
> /usr/local/bin/raster2pgsql
>
> /usr/bin/install: cannot create regular file
> '/usr/local/bin/raster2pgsql': Permission denied
>
> make[2]: *** [Makefile:97: install] Error 1
>
> make[2]: Leaving directory
> '/postgres/PGRH8T/backup/compile/postgresql_16.4/postgresql_16.4_source/postgis-3.4.3/raster/loader'
>
> make[1]: *** [Makefile:50: install] Error 2
>
> make[1]: Leaving directory
> '/postgres/PGRH8T/backup/compile/postgresql_16.4/postgresql_16.4_source/postgis-3.4.3/raster'
>
> make: *** [GNUmakefile:25: install] Error 1
>
> Seems like a Bug to me. I have the error just with Version 3.4.x. With
> older Version is no Problem. Looks like the compiler forgets the
> pg_config Location an tries to install in the usual OS Path.
>
> Does somebody know the problem or can open a Bug Ticket?
>
> Regards,
>
> Mirko
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20240916/9a0c5b41/attachment-0001.htm>

------------------------------

Subject: Digest Footer

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


------------------------------

End of postgis-users Digest, Vol 271, Issue 6
*********************************************


More information about the postgis-users mailing list