Installation of package ncdf fails due to missing header although it's there

后端 未结 2 1727
滥情空心
滥情空心 2021-01-02 21:53

I\'m trying to install the r package ncdf on an Ubuntu 10.04 server:

install.packages(\"ncdf\", type = \"source\")
Installing package into ‘/hom         


        
相关标签:
2条回答
  • 2021-01-02 22:04

    You need to look at the configure.in script to see exactly what it tests for. Maybe it is expecting netcdf.h in a subdirectory rather than directly in /usr/include.

    I think I have built this in the past. I could take another look later.

    0 讨论(0)
  • 2021-01-02 22:20

    Without downloading source, you just need to set some environment variables. For me, this was

     export NETCDF_INCLUDE=/usr/include
    

    After doing this, install.packages("ncdf") worked.

    This is described in the INSTALL file.

    0 讨论(0)
提交回复
热议问题