【发布时间】:2018-10-25 23:53:53
【问题描述】:
我正在尝试在 R 中安装 udunits2 以满足 ggforce 包的依赖关系。但是,安装程序在检查 udunits2 时一直失败。我已经尝试过this 中的说明(如here 所示安装了udunits 2 devel。)
和this 线程,它产生same result 试图install.packages('udunits2')。
我只需安装 udunits2-dev 就可以让它在我的 Mint 机器上运行,但是我对 Fedora 还是很陌生,不确定是什么原因造成的。
系统信息:
Fedora 28,R-3.4.4
编辑
尝试使用install.packages("udunits2", configure.args = "--with-udunits2-lib=/usr/bin/udunits2") 安装时输出错误:
* installing *source* package ‘udunits2’ ...
** package ‘udunits2’ successfully unpacked and MD5 sums checked
checking for gcc... gcc -m64
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -m64 accepts -g... yes
checking for gcc -m64 option to accept ISO C89... none needed
checking for XML_ParserCreate in -lexpat... yes
checking how to run the C preprocessor... gcc -m64 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking udunits2.h usability... no
checking udunits2.h presence... no
checking for udunits2.h... no
checking for ut_read_xml in -ludunits2... yes
-----Error: udunits2.h 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.
You can alternatively use the UDUNITS2_INCLUDE and UDUNITS2_LIB
environment variables.
If udunits2 is not installed, please install it.
It is required for this package.
【问题讨论】:
-
请将命令输出添加到您的问题中(使用适当的格式)。
标签: r