[R] Problem installing ndf library

claire1234 claire.c at live.fr
Mon Oct 22 12:39:37 CEST 2012


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.



More information about the R-help mailing list