Results 1 to 7 of 7

Thread: ncdf package in R- installation failures

  1. #1
    Join Date
    Mar 2007
    Location
    Alaska
    Beans
    185
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    ncdf package in R- installation failures- SOLVED

    I am unable to install the 'ncdf' package in R using the

    'install.packages("ncdf")' command from within R (in Emacs)

    The return reads:

    checking netcdf.h usability... no
    checking netcdf.h presence... no
    checking for netcdf.h... no
    checking /usr/local/include/netcdf.h usability... no
    checking /usr/local/include/netcdf.h presence... no
    checking for /usr/local/include/netcdf.h... no
    checking /usr/include/netcdf.h usability... no
    checking /usr/include/netcdf.h presence... no
    checking for /usr/include/netcdf.h... no
    checking /home/arctos/include/netcdf.h usability... no
    checking /home/arctos/include/netcdf.h presence... no
    checking for /home/arctos/include/netcdf.h... no
    checking /home/arctos/src/netcdf/netcdf.h usability... no
    checking /home/arctos/src/netcdf/netcdf.h presence... no
    checking for /home/arctos/src/netcdf/netcdf.h... no
    checking /home/arctos/src/netcdf/netcdf-3.4/netcdf.h usability... no
    checking /home/arctos/src/netcdf/netcdf-3.4/netcdf.h presence... no
    checking for /home/arctos/src/netcdf/netcdf-3.4/netcdf.h... no
    checking /home/arctos/src/netcdf/netcdf-3.4/src/libsrc/netcdf.h usability... no
    checking /home/arctos/src/netcdf/netcdf-3.4/src/libsrc/netcdf.h presence... no
    checking for /home/arctos/src/netcdf/netcdf-3.4/src/libsrc/netcdf.h... no
    checking /sw/include/netcdf.h usability... no
    checking /sw/include/netcdf.h presence... no
    checking for /sw/include/netcdf.h... no

    Fatal error: I cannot find the directory that holds the netcdf include file netcdf.h!
    You can specify it as follows:
    ./configure --with-netcdf_incdir=directory_with_file_netcdf.h


    However, downloading the .tar file and extracting all the files produces no 'netcdf.h' file anywhere. I've noticed that other folks have had issues with this installation as well. I also noticed that the 'ncdf' package isn't included in the Ubuntu repositories, perhaps for this very reason.

    Any suggestions?

    Thank you!!

    kvk
    Last edited by kvk; April 11th, 2009 at 05:23 PM.

  2. #2
    Join Date
    Nov 2008
    Location
    Here, There, Everywhere
    Beans
    1,163
    Distro
    Xubuntu

    Re: ncdf package in R- installation failures

    You probably need to install the development headers package from your Ubuntu package manager. I'm not sure, but I guess it is netcdfg-dev

  3. #3
    Join Date
    Jan 2007
    Location
    California
    Beans
    350
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: ncdf package in R- installation failures

    I haven't played with installs though EMACS . . . I usually do them after opening R with sudo in the terminal.
    Euler_fan
    Ubuntu User # 15369 at the Ubuntu Counter Project
    Woot for GPG

  4. #4
    Join Date
    Oct 2005
    Location
    Albany, NY
    Beans
    842
    Distro
    Ubuntu

    Re: ncdf package in R- installation failures

    It looks like R thinks it has already downloaded and installed this package. When you used R to install it, were you running as root? That's what it looks like it thinks happened.

    This might be a good question for the r-project's mailing list.
    Please Insert Funny Statement Here.

  5. #5
    Join Date
    Mar 2007
    Location
    Alaska
    Beans
    185
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: ncdf package in R- installation failures

    Thanks for the input!

    I'll see if I can make some headway.

  6. #6
    Join Date
    Apr 2009
    Beans
    1

    Re: ncdf package in R- installation failures

    Did you install netcdf? it seems it is searching for the netcdf.h file. further information on installation of netcdf http://www.unidata.ucar.edu/software/netcdf/

  7. #7
    Join Date
    Mar 2007
    Location
    Alaska
    Beans
    185
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: ncdf package in R- installation failures

    Yes- you folks were correct. Installing the general 'netcdf' library was needed before 'ncdf' would install correctly.

    Thank you!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •