Skip to content

Pre-GDAL 2: rgdal changes

2 messages · Michael Sumner, Roger Bivand

#
Magic! This is really good news, thanks so much.

But, I get this:

sudo R CMD INSTALL rgdal_0.6-28.tar.gz
* installing to library ?/usr/local/lib/R/site-library?
* installing *source* package ?rgdal? ...
gdal-config: gdal-config
GDAL version 2.0.0 found ...
For building this version, at least GDAL version 1.3.1 is required.
ERROR: configuration failed for package ?rgdal?
* removing ?/usr/local/lib/R/site-library/rgdal?

gdal-config --prefix
/usr/local
gdal-config --libs
-L/usr/local/lib -lgdal
gdal-config --dep-libs
-L/usr/lib -lnetcdf -lmfhdf -ldf -ljpeg -lz -lpthread -lm -lrt -ldl
gdal-config --cflags
-I/usr/local/include
gdal-config --datadir
/usr/local/share/gdal
gdal-config --version
2.0.0
gdal-config --ogr-enabled
yes

Build notes below


Cheers, Mike.

git clone https://github.com/OSGeo/gdal.git

cd gdal
./configure
make
make install
export LD_LIBRARY_PATH=/usr/local/lib

cd ~
svn checkout svn://scm.r-forge.r-project.org/svnroot/rgdal/trunk
svn export trunk rgdal
R CMD build rgdal
R CMD INSTALL rgdal_0.6-28.tar.gz

Rscript -e "library(sp); print(sessionInfo())"

R version 3.2.0 (2015-04-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.2 LTS

locale:
 [1] LC_CTYPE=en_AU.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_AU.UTF-8        LC_COLLATE=en_AU.UTF-8
 [5] LC_MONETARY=en_AU.UTF-8    LC_MESSAGES=en_AU.UTF-8
 [7] LC_PAPER=en_AU.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_AU.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  base

other attached packages:
[1] sp_1.1-0

loaded via a namespace (and not attached):
[1] grid_3.2.0      methods_3.2.0   lattice_0.20-31
On Mon, 1 Jun 2015 at 04:00 Roger Bivand <Roger.Bivand at nhh.no> wrote:

            

  
  
#
Please do not use trunk, I never have, and it reflects a frozen state from 
years ago. The live code is in pkg/, current package version 1.0-2. It 
passes check, and packages depending on, importing, or suggesting rgdal 
also pass check if their suggested packages are ignored with this version 
of rgdal and both GDAL 1.11.2 and 2.0.0.beta2.

Hope this helps,

Roger
On Tue, 2 Jun 2015, Michael Sumner wrote: