我正在尝试安装R版本的3.5.3。当我配置它时,在bzip2步骤中失败了。详细信息的最后几行如下:
checking for BZ2_bzlibVersion in -lbz2... yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking if bzip2 version >= 1.0.6... no
checking whether bzip2 support suffices... configure: error: bzip2 library and headers are required我检查了path中是否有bzip2,并且它的版本是1.0.8。
which bzip2
/usr/local/bin/bzip2
bzip2 --version
bzip2, a block-sorting file compressor. Version 1.0.8, 13-Jul-2019.
Copyright (C) 1996-2019 by Julian Seward.
This program is free software; you can redistribute it and/or modify
it under the terms set out in the LICENSE file, which is included
in the bzip2 source distribution.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
LICENSE file for more details.
bzip2: I won't write compressed data to a terminal.
bzip2: For help, type: `bzip2 --help'.为什么R找不到bzip2,即使它在路径中?提前谢谢。
发布于 2020-10-15 16:48:25
我正在寻找同样的问题,并找到了这个article的解决方案。
解决方案是为bzip2设置LDFLAGS和CFLAGS,并告诉R使用静态库进行配置:
export LDFLAG="-L/usr/local/bzip2/lib"
export CFLAGS="-I/usr/local/bzip2/include"
./configure --enable-R-static-libhttps://stackoverflow.com/questions/60499505
复制相似问题