Я пытаюсь установить udunits2 в R, чтобы удовлетворить зависимость для пакета ggforce
.Тем не менее, установщик продолжает сбой при проверке udunits2.Я пробовал инструкции в этом (udunits 2 devel установлен как показано здесь .) И этом потоке, который выдает тот же результат как пытаясь install.packages('udunits2')
.
Я смог заставить его работать на моей машине Mint, просто установив udunits2-dev, однако я довольно новичок в 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.