[postgis-users] More on: Cannot compile postgis on Fedora Core 4

M. Fioretti mfioretti at mclink.it
Mon Aug 15 13:22:48 PDT 2005


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

-- 
Marco Fioretti                    mfioretti, at the server mclink.it
Fedora Core 3 for low memory      http://www.rule-project.org/

Democracy has never just been about elections... it also means control
through reasoned discourse.                          L. Lessig, Free Culture



More information about the postgis-users mailing list