Hi I am trying to install RNetCDF package in RStudio. But when I'm trying to do so I am getting the error message
-----Error: libudunits2.a not found-----
If the udunits2 library is installed in a non-standard location,
use --configure-args='--with-udunits2-lib=/usr/local/lib' for example,
or --configure-args='--with-udunits2-include=/usr/include/udunits2'
replacing paths with appropriate values for your installation.
So then I tried
install.packages('udunits2', configure.args=('--with-udunits2-lib=/opt/lib'))
since my libudunits2.a is in /opt/lib
error message is same again; and also
checking udunits2.h usability... no
checking udunits2.h presence... no
checking for udunits2.h... no
checking for ut_read_xml in -ludunits2... no
I have tried again by giving the location of udunits.h
install.packages('udunits2', configure.args=('--with-udunits2-lib=/opt/lib/ --with-udunits2-include=/opt/include'))
Error this time is:
checking for ut_read_xml in -ludunits2... no
I am using Fedora 23. Any help will be dearly appreciated. Thank you