= Building on Unix with Autotools = The following instructions are dedicated to users of Unix-like systems (Linux, Mac OS X, Solaris, *BSD, etc.) == Requirements == * Decent C++ compiler and C++ Standard Library, [http://gcc.gnu.org/ GNU GCC] 4.x or later recommended.[[BR]]For specific distributions, use the commands: * ''CentOS'' (as root): {{{yum install gcc gcc-c++}}} * ''Ubuntu'': {{{sudo apt-get install build-essential}}} * Download the latest source code release or checkout from OSGeo [https://git.osgeo.org/gitea/geos/geos git]. == Configure == update: both autotools and CMake build systems are available. The following steps apply to autotools. (If you didn't download the source tree directly, skip this step.) If you are building GEOS from source, you need to have [http://en.wikipedia.org/wiki/GNU_build_system Autotools] available in your system. You will generate the ''./configure'' script with: {{{ $ ./autogen.sh }}} Now, run configuration script: {{{ $ ./configure }}} For more details about configuration options run: {{{ $ ./configure --help }}} == Build == {{{ $ make }}} == Test == Testing tools are built in this step if not already present. {{{ $ make check }}} == Install == You may need to use '''sudo''' to get this to run. {{{ $ make install }}} == Uninstall == You may need to use '''sudo''' to get this to run. {{{ $ make uninstall }}} == Build Hints == ''Feel free to update this section with build hints related to Autotools-based configuration that may be useful for users of Unix-like systems.'' === Solaris === * From #331 - Build fails on linking on Solaris {{{ $ LIBS="-lm" ./configure ... }}}