Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For using liblwgeom function in spatialite, I need to compile the library. I found that it is included in the PostGIS code.

My question is, how to compile the library without compiling the whole PostGIS?

share|improve this question
What type of system are you trying to build spatialite on? – BradHards Jan 19 '13 at 4:51
64 bit ubuntu 11.10 – Harold Chan Jan 19 '13 at 4:53
Are you looking for GEOS (the geometry library that powers spatialite and and postgis) – Ragi Yaser Burhum Jan 19 '13 at 5:36
No, liblwgeom is another library provided by PostGIS. – Harold Chan Jan 19 '13 at 5:39
up vote 2 down vote accepted

There may be an easier way, but one option:

  • get source code for postgis (svn or recent tarball)
  • make sure you have dependencies (e.g. install postgres devel packages, or just do aptitude build-dep postgis)
  • ./ (if using svn checkout)
  • ./configure --without-raster --without-topology
  • check results, fix as required
  • cd liblwgeom
  • make
  • sudo make install if required
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.