[英]configure error installing R-3.3.2 on Ubuntu: checking whether bzip2 support suffices… configure: error: bzip2 library and headers are required
[英]bzip2 in path but not found while installing R
我試圖安裝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
我檢查了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
? 提前致謝。
我一直在尋找同樣的問題,並通過這篇文章找到了解決方案。
解決方案是為 bzip2 設置 LDFLAGS 和 CFLAGS,並告訴 R 配置靜態庫:
export LDFLAG="-L/usr/local/bzip2/lib"
export CFLAGS="-I/usr/local/bzip2/include"
./configure --enable-R-static-lib
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.