1👍
It’s quite likely that you’re using an older version of GEOS(I’m guessing 3.4. You can find out the version by running geos-config –version). What you need to do is uninstall the current version of GEOS and reinstall a newer version:
Delete the geos files from /usr/bin /usr/local/bin usr/lib usr/local/lib. Should be fairly easy to identify
Run the following to install version 3.5:
$ wget http://download.osgeo.org/geos/geos-3.5.1.tar.bz2
$ tar xjf geos-3.5.1.tar.bz2
$ cd geos-3.5.2
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig
Edit: Use the most relevant version of GEOS for your project. It’s not mandatory to use 3.5
Source:stackexchange.com