构建R:--with-libtiff不启用TIFF功能 [英] building R: --with-libtiff not enabling TIFF capability

查看:218
本文介绍了构建R:--with-libtiff不启用TIFF功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从源代码编译R-3.3.2.我的标志包括--with-libtiff.它们是:./configure --with-system-tre --with-blas --with-lapack --with-libtiff --enable-R-shlib --enable-lto --prefix=/opt/new.R

Compiling R-3.3.2 from source. My flags include --with-libtiff. They are: ./configure --with-system-tre --with-blas --with-lapack --with-libtiff --enable-R-shlib --enable-lto --prefix=/opt/new.R

我确实有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功能已被跳过.为什么,以及如何强制启用它?

The TIFF capability has been skipped. Why, and how can I force it to be enabled?

推荐答案

我遇到了同样的问题. R configure脚本测试是否存在tiffpkg-config,但是在失败时不提供任何反馈.

I had the same problem. The R configure script tests for the presence of tiff with pkg-config, but doesn't provide any feedback when this fails.

我通过设置PKG_CONFIG环境变量来指向包含文件libtiff-4.pc的目录来解决该问题.

I resolved it by setting the PKG_CONFIG environment variable to point to the directory containing the file libtiff-4.pc.

这篇关于构建R:--with-libtiff不启用TIFF功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆