On 12/09/2010 07:54, Chethan S wrote:
Hello everybody!
I am using GRASS 6.4.0 RC6 in ubuntu 10.04. I installed R version
2.11.1 (2010-05-31) just today. As I need GRASS and R interface for my
work, I went ahead as per instructions in http://www.osgeo.org/files/journal/final_pdfs/OSGeo_vol1_GRASS-R.pdf.
Initially when I started R from within GRASS and tried the command I
got the following errors:
> install.packages("spgrass6",
dependencies = TRUE)
Warning in install.packages("spgrass6", dependencies = TRUE) :
argument 'lib' is missing: using '/usr/local/lib/R/site-library'
Warning in install.packages("spgrass6", dependencies = TRUE) :
'lib = "/usr/local/lib/R/site-library"' is not writable
Would you like to create a personal library
'~/R/i486-pc-linux-gnu-library/2.11'
to install packages into? (y/n) n
Error in install.packages("spgrass6", dependencies = TRUE) :
unable to install packages
> q()
To work this out, you should either start a library in your home dir
(i.e. answer 'yes' to the question of creating a personal library). Or,
alternatively, give yourself full rights on the system library
directory, /usr/local/lib/R
* installing *source* package ‘rgdal’
...
gdal-config: gdal-config
./configure: line 1311: gdal-config: command not found
Error: gdal-config not found
You'll also need the libgdal1-dev package. That gives you the
gdal-config utility. Then you should be good to go.
Regards,
Chethan S.
Cheers,
Micha
--
Micha Silver
http://www.surfaces.co.il/
Arava Development Co. +972-52-3665918
|
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user