全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
4144 2
2016-12-27

在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




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2016-12-28 14:48:51
折腾了一天,参考了这个帖子,configure通过,但是make遇到如下问题:

gcc -std=gnu99 -shared -fopenmp -L/panfs/home/yangpc/soft/lib/packages/xz-5.2.2/lib/ -L/panfs/home/yangpc/soft/lib/zlib-1.2.8/lib/ -L/panfs/home/yangpc/soft/lib/packages/bzip2-1.0.6/lib/ -L/panfs/home/yangpc/soft/lib/packages/pcre-8.39/lib/ -L/panfs/home/yangpc/soft/lib/packages/curl-7.52.1/lib/  -o libR.so CommandLineArgs.o Rdynload.o Renviron.o RNG.o agrep.o apply.o arithmetic.o array.o attrib.o bind.o builtin.o character.o coerce.o colors.o complex.o connections.o context.o cum.o dcf.o datetime.o debug.o deparse.o devices.o dotcode.o dounzip.o dstruct.o duplicate.o edit.o engine.o envir.o errors.o eval.o format.o gevents.o gram.o gram-ex.o graphics.o grep.o identical.o inlined.o inspect.o internet.o iosupport.o lapack.o list.o localecharset.o logic.o main.o mapply.o match.o memory.o names.o objects.o options.o paste.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o printvector.o printutils.o qsort.o radixsort.o random.o raw.o registration.o relop.o rlocale.o saveload.o scan.o seq.o serialize.o sort.o source.o split.o sprintf.o startup.o subassign.o subscript.o subset.o summary.o sysutils.o times.o unique.o util.o version.o g_alab_her.o g_cntrlify.o g_fontdb.o g_her_glyph.o xxxpr.o   `ls ../unix/*.o ../appl/*.o ../nmath/*.o` ../extra/tre/libtre.a    -L../../lib -lRblas -lgfortran -lm   -lreadline  -lpcre -llzma -lbz2 -lz -lrt -ldl -lm  
/usr/bin/ld: /panfs/home/yangpc/soft/lib/packages/bzip2-1.0.6/lib//libbz2.a(bzlib.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC
/panfs/home/yangpc/soft/lib/packages/bzip2-1.0.6/lib//libbz2.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libR.so] Error 1
make[3]: Leaving directory `/panfs/home/yangpc/soft/R/R_sorce/R-3.3.2/src/main'
make[2]: *** [R] Error 2
make[2]: Leaving directory `/panfs/home/yangpc/soft/R/R_sorce/R-3.3.2/src/main'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/panfs/home/yangpc/soft/R/R_sorce/R-3.3.2/src
解决这个问题需要对libz2重新编译,在编译之前修改
CC=gcc
为:
CC=gcc -fPIC参考这个帖子:
http://matrafox.info/problem-with-ffmpeg-usrlocalliblibbz2-a-could-not-read-symbols-bad-value.html

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-12-28 20:54:16
已经解决了,参考这里:
http://stackoverflow.com/questions/40639138/configure-error-installing-r-3-3-2-on-ubuntu-checking-whether-bzip2-support-suf
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群