You need to install libgeos-dev, libproj-dev etc and build-essential. Installation of R packages on Linux often requires compiling so you need all the source headers and compilers for it to work.
-Alex On 08/28/2014 02:57 AM, John Nicholls wrote: > Hi > Thanks for the help to get Grass7 running on my laptop. > I followed the workaround "sudo apt-get install grass70-core > grass70-gui" and now have grass70 running on Ubuntu 14.04 LTS: > > I am trying to use the v.krige command in Grass7, and when doing so > receive the following: > > Loading dependencies, please wait... > Checking rgeos availability: FALSE > Note: when rgeos is not available, polygon geometry > computations in maptools depend on gpclib, > which has a restricted licence. It is disabled by default; > to enable gpclib, type gpclibPermit() > ERROR: R package(s) rgeos, gstat, spgrass6 missing. Install it/them and > re-run v.krige. > > I've installed python-rpy2.2.3.9-1 via the Ubuntu package manager, and > enabled gpclib. > > Following the instructions in > http://grass.osgeo.org/grass65/manuals/v.krige.py.html I've typed in > install.packages("rgeos", dep=T) > install.packages("gstat", dep=T) > install.packages("spgrass6", dep=T) > install.packages("automap", dep=T) > > Unfortunately I'm getting errors in the installation of "rgeos", > "gstat", "spgrass6", and "automap", which are detailed below. Does > anyone know where I might be going wrong. The version of R installed on > my laptop is R version 3.0.2 (2013-09-25) -- "Frisbee Sailing", and I > have a version of RKward also installed. > > I am neither a Grass nor R expert, needless to say.... > > install.packages("rgeos", dep=T) > Installing package into ‘/home/john/R/i686-pc-linux-gnu-library/3.0’ > (as ‘lib’ is unspecified) > also installing the dependency ‘XML’ > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/XML_3.98-1.1.tar.gz' > Content type 'application/x-gzip' length 1582216 bytes (1.5 Mb) > opened URL > ================================================== > downloaded 1.5 Mb > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/rgeos_0.3-6.tar.gz' > Content type 'application/x-gzip' length 240510 bytes (234 Kb) > opened URL > ================================================== > downloaded 234 Kb > > * installing *source* package ‘XML’ ... > ** package ‘XML’ successfully unpacked and MD5 sums checked > checking for gcc... gcc > checking for C compiler default output file name... rm: cannot remove > 'a.out.dSYM': Is a directory > a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking how to run the C preprocessor... gcc -E > checking for sed... /bin/sed > checking for pkg-config... /usr/bin/pkg-config > checking for xml2-config... no > Cannot find xml2-config > ERROR: configuration failed for package ‘XML’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/XML’ > * installing *source* package ‘rgeos’ ... > ** package ‘rgeos’ successfully unpacked and MD5 sums checked > configure: CC: gcc -std=gnu99 > configure: CXX: g++ > configure: rgeos: 0.3-4 > checking for /usr/bin/svnversion... no > configure: svn revision: 450 > checking geos-config usability... ./configure: line 2056: geos-config: > command not found > no > configure: error: geos-config not usable > ERROR: configuration failed for package ‘rgeos’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/rgeos’ > > The downloaded source packages are in > ‘/tmp/RtmpRYggF0/downloaded_packages’ > Warning messages: > 1: In install.packages("rgeos", dep = T) : > installation of package ‘XML’ had non-zero exit status > 2: In install.packages("rgeos", dep = T) : > installation of package ‘rgeos’ had non-zero exit status > >> install.packages("gstat", dep=T) > Installing package into ‘/home/john/R/i686-pc-linux-gnu-library/3.0’ > (as ‘lib’ is unspecified) > also installing the dependencies ‘spacetime’, ‘rgdal’, ‘rgeos’ > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/spacetime_1.1-1.tar.gz' > Content type 'application/x-gzip' length 2269252 bytes (2.2 Mb) > opened URL > ================================================== > downloaded 2.2 Mb > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/rgdal_0.8-16.tar.gz' > Content type 'application/x-gzip' length 1616275 bytes (1.5 Mb) > opened URL > ================================================== > downloaded 1.5 Mb > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/rgeos_0.3-6.tar.gz' > Content type 'application/x-gzip' length 240510 bytes (234 Kb) > opened URL > ================================================== > downloaded 234 Kb > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/gstat_1.0-19.tar.gz' > Content type 'application/x-gzip' length 2045717 bytes (2.0 Mb) > opened URL > ================================================== > downloaded 2.0 Mb > > * installing *source* package ‘rgdal’ ... > ** package ‘rgdal’ successfully unpacked and MD5 sums checked > configure: CC: gcc -std=gnu99 > configure: CXX: g++ > configure: rgdal: 0.8-15 > checking for /usr/bin/svnversion... no > configure: svn revision: 498 > configure: gdal-config: gdal-config > checking gdal-config usability... ./configure: line 2119: gdal-config: > command not found > no > Error: gdal-config not found > The gdal-config script distributed with GDAL could not be found. > If you have not installed the GDAL libraries, you can > download the source from http://www.gdal.org/ > If you have installed the GDAL libraries, then make sure that > gdal-config is in your path. Try typing gdal-config at a > shell prompt and see if it runs. If not, use: > --configure-args='--with-gdal-config=/usr/local/bin/gdal-config' > with appropriate values for your installation. > > ERROR: configuration failed for package ‘rgdal’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/rgdal’ > * installing *source* package ‘rgeos’ ... > ** package ‘rgeos’ successfully unpacked and MD5 sums checked > configure: CC: gcc -std=gnu99 > configure: CXX: g++ > configure: rgeos: 0.3-4 > checking for /usr/bin/svnversion... no > configure: svn revision: 450 > checking geos-config usability... ./configure: line 2056: geos-config: > command not found > no > configure: error: geos-config not usable > ERROR: configuration failed for package ‘rgeos’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/rgeos’ > ERROR: dependency ‘rgeos’ is not available for package ‘spacetime’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/spacetime’ > ERROR: dependency ‘spacetime’ is not available for package ‘gstat’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/gstat’ > > The downloaded source packages are in > ‘/tmp/RtmpRYggF0/downloaded_packages’ > Warning messages: > 1: In install.packages("gstat", dep = T) : > installation of package ‘rgdal’ had non-zero exit status > 2: In install.packages("gstat", dep = T) : > installation of package ‘rgeos’ had non-zero exit status > 3: In install.packages("gstat", dep = T) : > installation of package ‘spacetime’ had non-zero exit status > 4: In install.packages("gstat", dep = T) : > installation of package ‘gstat’ had non-zero exit status >> install.packages("spgrass6", dep=T) > Installing package into ‘/home/john/R/i686-pc-linux-gnu-library/3.0’ > (as ‘lib’ is unspecified) > also installing the dependencies ‘XML’, ‘rgdal’ > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/XML_3.98-1.1.tar.gz' > Content type 'application/x-gzip' length 1582216 bytes (1.5 Mb) > opened URL > ================================================== > downloaded 1.5 Mb > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/rgdal_0.8-16.tar.gz' > Content type 'application/x-gzip' length 1616275 bytes (1.5 Mb) > opened URL > ================================================== > downloaded 1.5 Mb > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/spgrass6_0.8-3.tar.gz' > Content type 'application/x-gzip' length 274678 bytes (268 Kb) > opened URL > ================================================== > downloaded 268 Kb > > * installing *source* package ‘XML’ ... > ** package ‘XML’ successfully unpacked and MD5 sums checked > checking for gcc... gcc > checking for C compiler default output file name... rm: cannot remove > 'a.out.dSYM': Is a directory > a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking how to run the C preprocessor... gcc -E > checking for sed... /bin/sed > checking for pkg-config... /usr/bin/pkg-config > checking for xml2-config... no > Cannot find xml2-config > ERROR: configuration failed for package ‘XML’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/XML’ > * installing *source* package ‘rgdal’ ... > ** package ‘rgdal’ successfully unpacked and MD5 sums checked > configure: CC: gcc -std=gnu99 > configure: CXX: g++ > configure: rgdal: 0.8-15 > checking for /usr/bin/svnversion... no > configure: svn revision: 498 > configure: gdal-config: gdal-config > checking gdal-config usability... ./configure: line 2119: gdal-config: > command not found > no > Error: gdal-config not found > The gdal-config script distributed with GDAL could not be found. > If you have not installed the GDAL libraries, you can > download the source from http://www.gdal.org/ > If you have installed the GDAL libraries, then make sure that > gdal-config is in your path. Try typing gdal-config at a > shell prompt and see if it runs. If not, use: > --configure-args='--with-gdal-config=/usr/local/bin/gdal-config' > with appropriate values for your installation. > > ERROR: configuration failed for package ‘rgdal’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/rgdal’ > ERROR: dependency ‘XML’ is not available for package ‘spgrass6’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/spgrass6’ > > The downloaded source packages are in > ‘/tmp/RtmpRYggF0/downloaded_packages’ > Warning messages: > 1: In install.packages("spgrass6", dep = T) : > installation of package ‘XML’ had non-zero exit status > 2: In install.packages("spgrass6", dep = T) : > installation of package ‘rgdal’ had non-zero exit status > 3: In install.packages("spgrass6", dep = T) : > installation of package ‘spgrass6’ had non-zero exit status > >> install.packages("spgrass6", dep=T) > Installing package into ‘/home/john/R/i686-pc-linux-gnu-library/3.0’ > (as ‘lib’ is unspecified) > also installing the dependencies ‘XML’, ‘rgdal’ > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/XML_3.98-1.1.tar.gz' > Content type 'application/x-gzip' length 1582216 bytes (1.5 Mb) > opened URL > ================================================== > downloaded 1.5 Mb > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/rgdal_0.8-16.tar.gz' > Content type 'application/x-gzip' length 1616275 bytes (1.5 Mb) > opened URL > ================================================== > downloaded 1.5 Mb > > trying URL > 'http://www.freestatistics.org/cran/src/contrib/spgrass6_0.8-3.tar.gz' > Content type 'application/x-gzip' length 274678 bytes (268 Kb) > opened URL > ================================================== > downloaded 268 Kb > > * installing *source* package ‘XML’ ... > ** package ‘XML’ successfully unpacked and MD5 sums checked > checking for gcc... gcc > checking for C compiler default output file name... rm: cannot remove > 'a.out.dSYM': Is a directory > a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking how to run the C preprocessor... gcc -E > checking for sed... /bin/sed > checking for pkg-config... /usr/bin/pkg-config > checking for xml2-config... no > Cannot find xml2-config > ERROR: configuration failed for package ‘XML’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/XML’ > * installing *source* package ‘rgdal’ ... > ** package ‘rgdal’ successfully unpacked and MD5 sums checked > configure: CC: gcc -std=gnu99 > configure: CXX: g++ > configure: rgdal: 0.8-15 > checking for /usr/bin/svnversion... no > configure: svn revision: 498 > configure: gdal-config: gdal-config > checking gdal-config usability... ./configure: line 2119: gdal-config: > command not found > no > Error: gdal-config not found > The gdal-config script distributed with GDAL could not be found. > If you have not installed the GDAL libraries, you can > download the source from http://www.gdal.org/ > If you have installed the GDAL libraries, then make sure that > gdal-config is in your path. Try typing gdal-config at a > shell prompt and see if it runs. If not, use: > --configure-args='--with-gdal-config=/usr/local/bin/gdal-config' > with appropriate values for your installation. > > ERROR: configuration failed for package ‘rgdal’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/rgdal’ > ERROR: dependency ‘XML’ is not available for package ‘spgrass6’ > * removing ‘/home/john/R/i686-pc-linux-gnu-library/3.0/spgrass6’ > > The downloaded source packages are in > ‘/tmp/RtmpRYggF0/downloaded_packages’ > Warning messages: > 1: In install.packages("spgrass6", dep = T) : > installation of package ‘XML’ had non-zero exit status > 2: In install.packages("spgrass6", dep = T) : > installation of package ‘rgdal’ had non-zero exit status > 3: In install.packages("spgrass6", dep = T) : > installation of package ‘spgrass6’ had non-zero exit status > > On Wed, Aug 27, 2014, at 10:10 PM, Markus Neteler wrote: >> On Wed, Aug 27, 2014 at 9:08 PM, César Augusto Ramírez Franco >> <caesar...@gmail.com> wrote: >>> I don't know why, but there appears to be a conflict between grass70 and >>> grass70-core packages. >>> >>> I've been using that PPA on 14.04 but the package grass70 is not installed >>> in my system: >> ... >>> And grass is working OK, so I'd say the workaround should be issuing: >>> >>> sudo apt-get install grass70-core grass70-gui >> >> pgis@pgis-ubuntu64-vm:~$ sudo apt-get install grass70-core grass70-gui >> Reading package lists... Done >> Building dependency tree >> Reading state information... Done >> Some packages could not be installed. This may mean that you have >> requested an impossible situation or if you are using the unstable >> distribution that some required packages have not yet been created >> or been moved out of Incoming. >> The following information may help to resolve the situation: >> >> The following packages have unmet dependencies: >> grass70-core : Depends: libgdal1h (>= 1.8.0) but it is not installable >> Depends: libgeos-c1 (>= 3.4.2) but it is not going to >> be installed >> Depends: libproj0 (>= 4.8.0-1) but it is not going to >> be installed >> Recommends: gdal-bin but it is not going to be installed >> Recommends: proj-bin but it is not going to be installed >> E: Unable to correct problems, you have held broken packages. >> >> ... also failing today (Ubuntu 12.04 here) >> >> Markus >> _______________________________________________ >> grass-user mailing list >> grass-user@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/grass-user > _______________________________________________ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user