Установите PNG на Yosemite & RRO

Я пытаюсь установить пакет png на MacBook Pro 2014 и Yosemite.

Я использую RRO (но я думаю, что у меня будет аналогичная проблема с R).

Вот что я вижу на консоли RRO:

* installing *source* package ‘png’ ...
** package ‘png’ successfully unpacked and MD5 sums checked
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include    `libpng-config --cflags` -fPIC  -Wall -mtune=core2 -g -O2  -c read.c -o read.o
/bin/sh: libpng-config: command not found
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include    `libpng-config --cflags` -fPIC  -Wall -mtune=core2 -g -O2  -c write.c -o write.o
/bin/sh: libpng-config: command not found
/bin/sh: libpng-config: command not found
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -o png.so read.o write.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
/bin/sh: libpng-config: command not found
installing to /Library/Frameworks/R.framework/Versions/3.1/Resources/library/png/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/png/libs/png.so':
  dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/png/libs/png.so, 6): Symbol not found: _png_create_info_struct
  Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/png/libs/png.so
  Expected in: flat namespace
 in /Library/Frameworks/R.framework/Versions/3.1/Resources/library/png/libs/png.so
Error: loading failed
Execution halted
ERROR: loading failed

С другой стороны, я установил (используя homebrew) libpng, и я могу напечатать libpng-config на терминале с ответом

Usage: /usr/local/bin/libpng-config [OPTION] ...

У меня заканчиваются варианты...

0 ответов

Другие вопросы по тегам