[R-sig-Geo] problems installing rgdal
Johan Van de Wauw
johan.vandewauw at gmail.com
Tue Jun 1 13:00:59 CEST 2010
Install the package:
r-base-dev
if you want to build packages using R.
Apart from that you will need libgdal1-dev to build rgdal.
2010/6/1 José Miguel Barrios <jmbarriosg at gmail.com>:
> Hello list,
>
> I'm trying to install rgdal in kubuntu without success so far. I guess this
> is the reason why the installation of other packages I am interested in
> (spgrass6, spdep, ...) does not work either (?). Could it be a problem
> between my R version and rgdal version?
>
> I would appreciate any hint. Thanks,
>
> Miguel
>
> R version 2.10.1 (2009-12-14)
> i486-pc-linux-gnu
>
> locale:
> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
> [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
> [5] LC_MONETARY=C LC_MESSAGES=en_US.UTF-8
> [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
> [9] LC_ADDRESS=C LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
>
> * installing *source* package ‘rgdal’ ...
> gdal-config: gdal-config
> checking for gcc... gcc -std=gnu99
> checking for C compiler default output file name... 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 -std=gnu99 accepts -g... yes
> checking for gcc -std=gnu99 option to accept ANSI C... none needed
> checking how to run the C preprocessor... gcc -std=gnu99 -E
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
>
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking proj_api.h usability... yes
> checking proj_api.h presence... yes
> checking for proj_api.h... yes
> checking for pj_init_plus in -lproj... yes
> Package CPP flags: -I/usr/include/gdal
> Package LIBS: -L/usr/lib -lgdal1.6.0
> configure: creating ./config.status
> config.status: creating src/Makevars
> ** libs
> g++ -I/usr/share/R/include -I/usr/include/gdal
> -I"/usr/local/lib/R/site-library/sp/include" -fpic -g -O2 -c
> OGR_write.cpp -o OGR_write.o
> /bin/bash: g++: command not found
> make: *** [OGR_write.o] Error 127
> ERROR: compilation failed for package ‘rgdal’
> * removing ‘/usr/local/lib/R/site-library/rgdal’
>
> The downloaded packages are in
> ‘/tmp/RtmpQ3P3w6/downloaded_packages’
> Warning message:
> In install.packages("rgdal") :
> installation of package 'rgdal' had non-zero exit status
>
> [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>
More information about the R-sig-Geo
mailing list