[R] install ncdf package on a 64-bit machine

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jan 23 09:10:15 CET 2008

On Wed, 23 Jan 2008, Katharine Mullen wrote:

> I am running 64-bit Ubuntu 7.10 and unfortunately remember seeing that
> error message but not how I got it to go away.
> I would first try compiling netcdf-3.6.2 from source, without changing the
> default directories for installation.

You need to make a shared library, if your Linux distro does not provide 
one (and e.g. Fedora does but puts the include files somewhere no package 
finds them), or (less satisfactorily) to compile a static library with 
-fPIC. Also, you do need to change the default directory for the library 
to /usr/local/lib64.

I've just looked at what I did last weeek, and in 3.6.2 you can do

./configure --enable-shared --disable-static --libdir=/usr/local/lib64
make all install

to get a shared library in the right place.  (In e.g. 3.6.1 it was much 

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