Once installed geos library (C++, and C), and then trying to install rgeos package (R), it reports geos-config missing!

Posted by user1873888 on Ask Ubuntu See other posts from Ask Ubuntu or by user1873888
Published on 2013-06-24T21:40:42Z Indexed on 2013/06/24 22:31 UTC
Read the original article Hit count: 273

Filed under:
|
|
|

Knowing that the package rgeos, from the R language, requieres a prior installation of geos libraries, I installed, both, libgeos and libgeos-c1 (3.2.2), using the synaptic installer in my Ubuntu 12.04 (32 bit) machine.

Then I tried to install rgeos directly from the R console, and it issued a message in the sense that geos-config was not found. The output is as follows:

> install.packages("rgeos")
Installing package(s) into ‘/home/checo/R/i486-pc-linux-gnu-library/2.15’
(as ‘lib’ is unspecified)
also installing the dependency ‘sp’

probando la URL 'http://cran.rstudio.com/src/contrib/sp_1.0-9.tar.gz'
Content type 'application/x-gzip' length 882102 bytes (861 Kb)
URL abierta
==================================================
downloaded 861 Kb

probando la URL 'http://cran.rstudio.com/src/contrib/rgeos_0.2-19.tar.gz'
Content type 'application/x-gzip' length 221471 bytes (216 Kb)
URL abierta
==================================================
downloaded 216 Kb

* installing *source* package ‘sp’ ...
** package ‘sp’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c R    centroid.c -o Rcentroid.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c gcdist.c -o gcdist.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c init.c -o init.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c pip.c -o pip.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c pip2.c -o pip2.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c sp_xports.c -o sp_xports.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c surfaceArea.c -o surfaceArea.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe  -g  -c zerodist.c -o zerodist.o
gcc -std=gnu99 -shared -o sp.so Rcentroid.o gcdist.o init.o pip.o pip2.o sp_xports.o surfaceArea.o zerodist.o -L/usr/lib/R/lib -lR
installing to /home/checo/R/i486-pc-linux-gnu-library/2.15/sp/libs
** R
** data
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
   ‘intro_sp.Rnw’ 
   ‘over.Rnw’ 
** testing if installed package can be loaded

* DONE (sp)
* installing *source* package ‘rgeos’ ...
** package ‘rgeos’ successfully unpacked and MD5 sums checked
configure: CC: gcc -std=gnu99
configure: CXX: g++
configure: rgeos: 0.2-17
checking for /usr/bin/svnversion... no
configure: svn revision: 394
checking geos-config usability... 
./configure: line 1385: geos-config: command not found
no
configure: error: geos-config not usable
ERROR: configuration failed for package ‘rgeos’
* removing ‘/home/checo/R/i486-pc-linux-gnu-library/2.15/rgeos’
Warning in install.packages :
  installation of package ‘rgeos’ had non-zero exit status

Forgive my ignorance, but I don't know where this file, "geos-config", comes from: should it be generated by the gcc compilations above, or should it be previously installed when the libgeos libraries were intalled?

I learnt, from another machine, that "geos-config" is an executable and that it should be installed in /usr/bin.

Do you have any idea on what's wrong with my procedure?

Thanks,

-Sergio.

© Ask Ubuntu or respective owner

Related posts about installation

Related posts about packages