[postgis-users] PostGIS 2.0 on CentOS 5

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Tue May 22 07:11:58 PDT 2012


Thanks a lot J. for your nice instructions.

I could compile without too much problems.

Pierre

> -----Original Message-----
> From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-
> bounces at postgis.refractions.net] On Behalf Of Gold, Jack L (US SSA)
> Sent: Monday, May 21, 2012 1:29 PM
> To: PostGIS Users Discussion
> Subject: Re: [postgis-users] PostGIS 2.0 on CentOS 5
> 
> You'll need gcc-g++ among a few other things.  If you want pgAdminIII to work,
> it gets trickier since you have to have postgresql-9.1.
> 
> Easy solution is to get the 9.1 postgres from the PGDG repo at their site.
> 
> Once you have that, you'll need to build swig-1.3.29(used for gdal java libs, I
> believe), proj.4-4.8, geos-3.3.2, and gdal-1.9.0.
> 
> 1.  yum install swig (That should get you the latest and greatest swig build).
> 2. Build Proj.4
> 	a. get proj-4.8.0.tar.gz
> 	b. tar -xvf proj-4.8.0.tar.gz
> 	c. cd proj-4.8.0
> 	d. ./configure --without-jni
> 	e. make; make install
> 3. Build Geos
> 	a. get geos-3.3.2.tar.bz2
> 	b. tar -xvf geos-3.3.2.tar.bz2
> 	c. cd geos-3.3.2
> 	d. ./configure --enable-python
> 	e. make;make install
> 4. Build GDal
> 	a. get gdal-1.9.0.tar.gz
> 	b. tar -xvf gdal-1.9.0.tar.gz
> 	c. cd gdal-1.9.0
> 	d. make; make install
> 	e. chmod 755 tools/geos-config
> 5. Build PostGIS-2.0
> 	a. get the postgis-2.0 version you want
> 	b. tar -xvf postgis-2.0.tar.gz  (or whatever version you're using)
> 	c. ./configure --with-raster --with-pgconfig=/usr/pgsql-
> 9.1/bin/pg_config  --with-geosconfig=<path to geos extracted
> directory>/tools/geos-config
> 	d. make; make install
> 
> 
> You might need to tweak which configuration parameters you are using for your
> build, but this is how I built it.  Note, the CentOS version of pgAdminIII will not
> work with postgresql-9.1, so you'll need to build it yourself.  The easiest way to
> do this is to hook up with the rpmforge yum repo and try to install it.  Otherwise,
> building pgAdminIII requires a bit of playing with as well.
> 
> J. Gold
> 
> -----Original Message-----
> From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-
> bounces at postgis.refractions.net] On Behalf Of Gold, Jack L (US SSA)
> Sent: Monday, May 21, 2012 1:16 PM
> To: PostGIS Users Discussion
> Subject: Re: [postgis-users] PostGIS 2.0 on CentOS 5
> 
> It's not hard to build for CentOS 5.  That's where I'm running it, but I don't use
> the RPMs.
> 
> -J Gold
> 
> -----Original Message-----
> From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-
> bounces at postgis.refractions.net] On Behalf Of Devrim GÜNDÜZ
> Sent: Monday, May 21, 2012 12:37 PM
> To: PostGIS Users Discussion
> Subject: Re: [postgis-users] PostGIS 2.0 on CentOS 5
> 
> On Mon, 2012-05-21 at 12:18 -0400, Pierre Racine wrote:
> > > No. Dependencies like Gdal, etc. are too old on RHEL 5.
> >
> > And how hard is it to compile everything?
> 
> Compile for building RPMs? If you expect it from me (as the packager), no, I'm
> not doing it :-) OTOH, I have no idea how hard it is.
> 
> That said, RHEL 5 is 5 years old. Time to upgrade.
> 
> Regards,
> --
> Devrim GÜNDÜZ
> Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
> PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
> Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
> http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users


More information about the postgis-users mailing list