[postgis-users] More on: Cannot compile postgis on Fedora Core 4
Gerry Creager
gerry.creager at tamu.edu
Mon Aug 15 14:53:56 PDT 2005
"yum remove 'postgres*'"
Now that is dealt with, go to http://www.postgresql.org/download/ and
download the source package for PostgreSQL.
Unpack same. Install the PostGIF patch, from Refractions.
Following the instructions, compile and install. I recommend using sudo
over 'su -' as you don't compromise, as much, the root password.
The RPMs have been a problem for me in Redhat, Fedora and Centos. The
source code has been clean in same.
gerry
M. Fioretti wrote:
> On Mon, Aug 15, 2005 13:33:11 PM -0600, Ethan Alpert
> (ealpert at digitalglobe.com) wrote:
>
>
>>You need to compile postgresql from source to build the postgis
>>extensions because postgis uses files in the source tree.
>>
>>Look for a postgresql-dev perhaps if it exists you may be able to use
>>it. YMMV
>>
>
>
> Greetings,
>
> after reading again Ethan's suggestion, I understood (I hope) what he
> meant. So I:
>
> * found and installed the postgresql-devel RPM for Fedora Core 4
>
> * went to the only src direectory it creates, /usr/lib/pgsql/pgxs/src
>
> * once there, I created the contrib directory
>
> * I unpacked postgis tarball in /usr/lib/pgsql/pgxs/src/contrib
>
> * I went in /usr/lib/pgsql/pgxs/src/contrib/postgis-1.0.3 and typed
> "make"
>
> * still no success, this is what I get:
>
> make -C lwgeom
> make[1]: Entering directory
> `/usr/lib/pgsql/pgxs/src/contrib/postgis-1.0.3/lwgeom'
> ../Makefile.config:98:
> /usr/lib/pgsql/pgxs/src/contrib/postgis-1.0.3/../../src/Makefile.
> global: No such file or directory
> Makefile:113: /src/Makefile.shlib: No such file or directory
> make[1]: *** No rule to make target `/src/Makefile.shlib'. Stop.
> make[1]: Leaving directory
> `/usr/lib/pgsql/pgxs/src/contrib/postgis-1.0.3/lwgeom'
> make: *** [liblwgeom] Error 2
>
>
> After fixing the top directory to PGSQL_SRC ?= /usr/lib/pgsql/pgxs, I
> am stuck to this:
>
> [root at polaris postgis-1.0.3]# make
> make -C lwgeom
> make[1]: Entering directory
> `/usr/lib/pgsql/pgxs/src/contrib/postgis-1.0.3/lwgeom'
> make[1]: *** No rule to make target
> `/usr/lib/pgsql/pgxs/src/Makefile.global.in', needed by
> `/usr/lib/pgsql/pgxs/src/Makefile.global'. Stop.
> make[1]: Leaving directory
> `/usr/lib/pgsql/pgxs/src/contrib/postgis-1.0.3/lwgeom'
> make: *** [liblwgeom] Error 2
>
> What now?
>
> Thanks again for your support,
>
> Marco
>
--
Gerry Creager -- gerry.creager at tamu.edu
Texas Mesonet -- AATLT, Texas A&M University
Cell: 979.229.5301 Office: 979.458.4020
FAX: 979.847.8578 Pager: 979.228.0173
Office: 903A Eller Bldg, TAMU, College Station, TX 77843
More information about the postgis-users
mailing list