在Linux下安装R-3.3.2源码,遇到bzip2不能识别问题:
checking whether compiling/linking Tcl/Tk code works... yes
checking for BSD networking... yes
checking rpc/types.h usability... yes
checking rpc/types.h presence... yes
checking for rpc/types.h... yes
checking for rpc/xdr.h... yes
checking for XDR support... yes
checking for inflateInit2_ in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking if zlib version >= 1.2.5... yes
checking whether zlib support suffices... yes
checking mmap support for zlib... yes
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...
这个问题在R邮件列表里都有问过,但是始终没有给出解决方案:
http://comments.gmane.org/gmane.comp.lang.r.hpc/1719
http://r.789695.n4.nabble.com/bzip2-td4726112.html
http://stackoverflow.com/questions/40639138/configure-error-installing-r-3-3-2-on-ubuntu-checking-whether-bzip2-support-suf
R安装说明里有指出需要bzip2 version 1.0.6:
https://cran.r-project.org/doc/manuals/r-release/R-admin.html