Taken from https://stat.ethz.ch/pipermail/r-help/2008-March/157089.html
This is ubuntu 10.4.
sudo apt-get install libudunits2-0 libudunits2-dev
sudo apt-get install libnetcdf4 libnetcdf-dev
Then in R :
install.packages("RNetCDF",configure.args="--with-netcdf-include=/usr/include")
Note : A regular install is unable to find netcdf.h, giving the error below. Use rather the install.packages command given above.
checking for netcdf.h... no
configure: error: netcdf header netcdf.h not found
ERROR: configuration failed for package ‘ncdf’
Nothing fancy. Just a scratchboard for Open Source Geospatial manipulations. Involves (although not limited to) Linux, R, gdal, Quantum GIS, Geoserver etc.
Monday, February 14, 2011
Thursday, January 27, 2011
ubuntu : installing ubuntugis and R
Add the following lines in /etc/apt/sources.list :
sudo vi /etc/apt/sources.list
deb http://cran.skazkaforyou.com/bin/linux/ubuntu maverick/
deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu maverick main
deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu maverick main
Then add the "canonical partners" software repository from "ubuntu software center-sofware sources" (for sun java jdk/jre)
Get the keys
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com D67FC6EAE2A11821
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install r-base-core libgdal1-dev libproj-dev libgdal1-1.7.0-grass qgis grass saga sun-java6-jdk
sudo vi /etc/apt/sources.list
deb http://cran.skazkaforyou.com/bin/linux/ubuntu maverick/
deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu maverick main
deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu maverick main
Then add the "canonical partners" software repository from "ubuntu software center-sofware sources" (for sun java jdk/jre)
Get the keys
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com D67FC6EAE2A11821
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install r-base-core libgdal1-dev libproj-dev libgdal1-1.7.0-grass qgis grass saga sun-java6-jdk
Saturday, January 1, 2011
qmail problem in plesk
Cannot send mail with qmail :
qmail-queue-handlers[xxxxxx]: cannot create temporary file - (13) Permission denied
I searched the web and there seems to be a solution. But it does not work :
http://forum.parallels.com/showthread.php?t=87344
http://forum.parallels.com/showthread.php?t=94593
qmail-queue-handlers[xxxxxx]: cannot create temporary file - (13) Permission denied
I searched the web and there seems to be a solution. But it does not work :
http://forum.parallels.com/showthread.php?t=87344
http://forum.parallels.com/showthread.php?t=94593
Sunday, December 19, 2010
Reading copy/pasted data into an array in R
If you copy data from somewhere and paste it into R, you can easilyt import it as a data.frame using the textConnection function
dat <- textConnection("1 0 7 0 0 1 0 0 0 5 0 0 0 0 2 0 0 0 0 1 0 0 0 1
1 0 0 1 0 0 0 3 0 0 0 0 1 0 0 0 1
0 0 0 1 0 0 0 2 0 0 0 0 1 0 0 0 1 0 1 0 0 1
1 0 0 1 0 3 0 0 0 0 1 0 0 0 1
0 0 0 1 0 0 0 2 0 0 0 0 1 0 0 0 1 0 1 0 0 1 1 2 1 0 1 0 1")
df <- data.frame(scan(dat, fill = TRUE, what = as.list(rep(1, 29))))
dat <- textConnection("1 0 7 0 0 1 0 0 0 5 0 0 0 0 2 0 0 0 0 1 0 0 0 1
1 0 0 1 0 0 0 3 0 0 0 0 1 0 0 0 1
0 0 0 1 0 0 0 2 0 0 0 0 1 0 0 0 1 0 1 0 0 1
1 0 0 1 0 3 0 0 0 0 1 0 0 0 1
0 0 0 1 0 0 0 2 0 0 0 0 1 0 0 0 1 0 1 0 0 1 1 2 1 0 1 0 1")
df <- data.frame(scan(dat, fill = TRUE, what = as.list(rep(1, 29))))
Thursday, December 16, 2010
Ubuntu login problem
gdm says:" error initiating conversation with authentication system - general failure"
The problem was solved after commenting out the following row in /etc/pam.d/gdm
@include common-pamkeyring
The problem was solved after commenting out the following row in /etc/pam.d/gdm
@include common-pamkeyring
Monday, December 13, 2010
Subscribe to:
Posts (Atom)