[R] problems installing R (Matteo)
Hi everybody, I'm quite new to ubuntu and tar.gz packages, anyway following these instructions https://help.ubuntu.com/community/CompilingEasyHowTo I tried to install the R Grass package. Everything worked nice until I did: $ ./configure 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 rpc/xdr.h usability... yes checking rpc/xdr.h presence... yes checking for rpc/xdr.h... yes checking rpc/types.h usability... yes checking rpc/types.h presence... yes checking for rpc/types.h... yes checking for library containing xdrmem_create... none required checking zconf.h usability... yes checking zconf.h presence... yes checking for zconf.h... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for library containing deflate... -lz configure: creating ./config.status config.status: creating src/Makevars It seems everything OK but $ make make: *** No targets specified and no makefile found. Stop. I also entered the directory /src and typed make but it doesn't work. Do I need to write the command "make" or anything else? And in which directory do I need to type this command?? Thanks for your help!!! Matteo __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] rgdal package (Matteo Toro)
>Hi everybody, > >I'm trying to install the "rgdal" package in R, but it seems not possible... > >i'm typing > >> install.packages("rgdal") >Warning in install.packages("rgdal") : > argument 'lib' is missing: using '/home/toro/R/i486-pc-linux-gnu-library/2. >9' >--- Please select a CRAN mirror for use in this session --- >Loading Tcl/Tk interface ... done >Warning message: >In getDependencies(pkgs, dependencies, available, lib) : > package ‘rgdal’ is not available > >I also tried to download the package from http://sourceforge. >net/projects/rgdal/files/ , and tried > >$ R CMD INSTALL /home/toro/Downloads/rgdal_0.3-5.tar.gz >* Installing to library ‘/home/toro/R/i486-pc-linux-gnu-library/2.9’ >* Installing *source* package ‘rgdal’ ... >configure: creating ./config.status >config.status: creating src/Makevars >** libs >g++ -I/usr/share/R/include -I/usr/include/gdal -g -DRGDALDEBUG -fpic -g - >O2 -c gdal-bindings.cpp -o gdal-bindings.o >gdal-bindings.cpp: In function ‘char* asString(SEXPREC*, int)’: >gdal-bindings.cpp:28: error: invalid conversion from ‘const char*’ to ‘char*’ >make: *** [gdal-bindings.o] Error 1 >ERROR: compilation failed for package ‘rgdal’ >* Removing ‘/home/toro/R/i486-pc-linux-gnu-library/2.9/rgdal’ > >and this happens also for other versions of gdal I have downloaded. > >The biggest problem is that also other packages like spgrass6, spGDAL and >spmaptools are dependent from gdalso i cannot go on > >Can I ask you to help me , please?? > >Thank you > >Matteo > > > > > > > > > __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.