从源代码编译 R-3.3.2
。我的标志包括 --with-libtiff
。它们是:./configure --with-system-tre --with-blas --with-lapack --with-libtiff --enable-R-shlib --enable-lto --prefix=/opt/新.R
我有 libtiff4
和 libtiff4-dev
。然而:
R is now configured for i686-pc-linux-gnu
Source directory: .
Installation directory: /opt/new.R
C compiler: gcc -g -O2
Fortran 77 compiler: f95 -g -O2
C++ compiler: g++ -g -O2
C++11 compiler: g++ -std=c++11 -g -O2
Fortran 90/95 compiler: gfortran -g -O2
Obj-C compiler: gcc -g -O2 -fobjc-exceptions
Interfaces supported: X11, tcltk
External libraries: readline, BLAS(generic), LAPACK(generic), curl
Additional capabilities: PNG, JPEG, NLS, cairo, ICU
Options enabled: shared R library, R profiling, strict barrier
Capabilities skipped: TIFF
Options not enabled: shared BLAS, memory profiling
Recommended packages: yes
TIFF
功能已被跳过。为什么以及如何强制启用它?
最佳答案
我遇到了同样的问题。 R 配置脚本使用 pkg-config
测试 tiff
是否存在,但在失败时不提供任何反馈。
我通过将 PKG_CONFIG
环境变量设置为指向包含文件 libtiff-4.pc
的目录来解决它。
关于r - 建筑 R : --with-libtiff not enabling TIFF capability,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42586131/