在CentOS的主目录中安装R 3.4.0时忽略了新版本bzip2

问题描述 投票:3回答:1

我没有足够的权限,所以我需要在主目录中安装R3.4.0。

需要更新的bzip2版本(> = 1.0.6)

当前版本为v1.0.5

我已经在主目录中构建了bzip2 v1.0.6。

构建目录中有4个目录:bin,include,lib,man

我知道我需要以某种方式修改路径,所以我尝试了这个:

PATH=path/to/bzip2-1.0.6_build/bin:$PATH
CPATH=path/to/bzip2-1.0.6_build/include:$CPATH
LIBRARY_PATH=path/to/bzip2-1.0.6_build/lib:$LIBRARY_PATH
LD_LIBRARY_PATH=path/to/bzip2-1.0.6_build/lib:$LD_LIBRARY_PATH

但是,当我运行./configure安装R时,出现错误:

checking if bzip2 version >= 1.0.6... no
checking whether bzip2 support suffices... configure: error: bzip2 library and headers are required

与安装bzip2 v1.0.6之前遇到的错误相同

但是这次我运行bzip2 --version时得到:bzip2, a block-sorting file compressor. Version 1.0.6, 6-Sept-2010.哪个正确。

我如何做到这一点,以便在./configure步骤中,将v1.0.6引入v1.0.5之上?

r unix centos configure bzip2
1个回答
0
投票

这里有同样的问题,有人解决了吗?

© www.soinside.com 2019 - 2024. All rights reserved.