首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装R时,路径中有bzip2,但未找到

安装R时,路径中有bzip2,但未找到
EN

Stack Overflow用户
提问于 2020-03-03 11:05:37
回答 1查看 176关注 0票数 0

我正在尝试安装R版本的3.5.3。当我配置它时,在bzip2步骤中失败了。详细信息的最后几行如下:

代码语言:javascript
复制
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

代码语言:javascript
复制
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,即使它在路径中?提前谢谢。

EN

回答 1

Stack Overflow用户

发布于 2020-10-15 16:48:25

我正在寻找同样的问题,并找到了这个article的解决方案。

解决方案是为bzip2设置LDFLAGS和CFLAGS,并告诉R使用静态库进行配置:

代码语言:javascript
复制
export LDFLAG="-L/usr/local/bzip2/lib"
export CFLAGS="-I/usr/local/bzip2/include"
./configure --enable-R-static-lib
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60499505

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档