RE: postgis-users Digest, Vol 271, Issue 6

"Auberg, Mirko" <[email protected]>
Newsgroups gmane.comp.gis.postgis
Message-ID <BEZP281MB2676B7D2EBEE51F657474F5189612@BEZP281MB2676.DEUP281.PROD.OUTLOOK.COM>
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: [email protected] <[email protected]>
Gesendet: Montag, 16. September 2024 21:00
An: [email protected]
Betreff: postgis-users Digest, Vol 271, Issue 6

[Sie erhalten nicht h?ufig E-Mails von [email protected]. Weitere Informationen, warum dies wichtig ist, finden Sie unter https://aka.ms/LearnAboutSenderIdentification ]

Send postgis-users mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

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" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: PostGIS 3.4.x - Error while compile make install
Message-ID:
        <FR2P281MB2687318755A942447304112889602@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 <[email protected]>
To: [email protected]
Subject: Re: PostGIS 3.4.x - Error while compile make install
Message-ID: <[email protected]>
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
[email protected]
https://lists.osgeo.org/mailman/listinfo/postgis-users


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

End of postgis-users Digest, Vol 271, Issue 6
*********************************************
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.