[R] Problem installing ndf library

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Oct 22 14:22:24 CEST 2012


You need to install netcdf, including its development files.  The notes 
you quote are pretty specific about that.  Googling for that leads to

http://packages.debian.org/source/squeeze/netcdf

and it seems you need libnetcdf-dev and libnetcdf6 installed.

On 22/10/2012 11:39, claire1234 wrote:
> Hello,
>
> I am a new user of R and Linux (debian squeeze), and I am trying to install
> the ncdf library.
> First I don't know wich is the best to use (ncdf or ncdf4), But not matter
> the one I tried to install, it always failled.
> I try to find a solution to this common problem on the web, but I never find
> the good way to solve it.
> I hope you could help me I try many things during two days and now I don't
> know what to do.
>
> One of the things I done is to try this command : install.package ('ncdf4')
>
> It give to me :
>
> /Installing package(s) into ‘/home/casse/R/x86_64-pc-linux-gnu-library/2.15’
> (as ‘lib’ is unspecified)
> essai de l'URL 'http://cran.univ-lyon1.fr/src/contrib/ncdf4_1.6.1.tar.gz'
> Content type 'application/x-gzip' length 98337 bytes (96 Kb)
> URL ouverte
> ==================================================
> downloaded 96 Kb
>
> * installing *source* package ‘ncdf4’ ...
> ** package ‘ncdf4’ correctement décompressé et sommes MD5 vérifiées
> checking for nc-config... no
> -----------------------------------------------------------------------------------
> Error, nc-config not found or not executable.  This is a script that comes
> with the
> netcdf library, version 4.1-beta2 or later, and must be present for
> configuration
> to succeed.
>
> If you installed the netcdf library (and nc-config) in a standard location,
> nc-config
> should be found automatically.  Otherwise, you can specify the full path and
> name of
> the nc-config script by passing the --with-nc-config=/full/path/nc-config
> argument
> flag to the configure script.  For example:
>
> ./configure --with-nc-config=/sw/dist/netcdf4/bin/nc-config
>
> Special note for R users:
> -------------------------
> To pass the configure flag to R, use something like this:
>
> R CMD INSTALL --configure-args="--with-nc-config=/home/joe/bin/nc-config"
> ncdf4
>
> where you should replace /home/joe/bin etc. with the location where you have
> installed the nc-config script that came with the netcdf 4 distribution.
> -----------------------------------------------------------------------------------
> ERROR: configuration failed for package ‘ncdf4’
> * removing ‘/home/casse/R/x86_64-pc-linux-gnu-library/2.15/ncdf4’
> Warning in install.packages :
>    installation of package ‘ncdf4’ had non-zero exit status
>
> The downloaded source packages are in
> 	‘/tmp/RtmpOnAH2P/downloaded_packages’
>
>
> Thank you,
> Claire
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Problem-installing-ndf-library-tp4646986.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list