2017-03-03 66 views
0

從源編譯R-3.3.2。我的旗幟包括--with-libtiff。他們是:./configure --with-system-tre --with-blas --with-lapack --with-libtiff --enable-R-shlib --enable-lto --prefix=/opt/new.Rbuilding R:--with-libtiff未啓用TIFF功能

我確實有libtiff4libtiff4-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能力已被跳過。爲什麼,我如何強制它被啓用?

回答

0

我有同樣的問題。 R配置腳本使用pkg-config測試tiff的存在性,但在此失敗時不提供任何反饋。

我通過將PKG_CONFIG環境變量設置爲指向包含文件libtiff-4.pc的目錄來解決它。