您好我正在尝试在RStudio中安装RNetCDF软件包。但是,当我尝试这样做时,我收到错误消息
-----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.
然后我尝试了
install.packages('udunits2', configure.args=('--with-udunits2-lib=/opt/lib'))
因为我的libudunits2.a位于/opt/lib
错误信息再次相同;还有
checking udunits2.h usability... no
checking udunits2.h presence... no
checking for udunits2.h... no
checking for ut_read_xml in -ludunits2... no
我再次尝试给出了udunits.h的位置
install.packages('udunits2', configure.args=('--with-udunits2-lib=/opt/lib/ --with-udunits2-include=/opt/include'))
这次错误是:
checking for ut_read_xml in -ludunits2... no
我正在使用Fedora 23.任何帮助都将非常感激。谢谢