centos安装R过程中报错&解决方法汇总

1、configure error: no acceptable C compiler found in $PATH

yum -y install gcc gcc-c++

2、configure error: --with-readline=yes (default) and headers/libs are not available

yum -y install readline-devel

3、configure: error: cannot compile a simple Fortran program

yum -y install gcc-gfortran

4、configure: error: –with-x=yes (default) and X11 headers/libs are not available

yum -y install libXt-devel

5、configure: error: zlib library and headers are required

yum -y install zlib-devel

6、configure: error: bzip2 library and headers are required

yum -y install bzip2-devel

7、configure: error: "liblzma library and headers are required"

yum -y install xz-devel.x86_64

8、configure: error: pcre >= 8.20 library and headers are required

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.gz
tar zxvf pcre-8.41.tar.gz
cd pcre-8.41
./configure 
make 
make install

9、configure: error: libcurl >= 7.22.0 library and headers are required with support for https

wget https://curl.haxx.se/download/curl-7.59.0.tar.gz
tar zxvf curl-7.59.0.tar.gz
cd curl-7.59.0
./configure
make
make install

10、configure: WARNING: you cannot build info or HTML versions of the R manuals

yum install -y texinfo.x86_64
yum install -y texlive-pdftex-doc.noarch

configure: WARNING: you cannot build PDF versions of the R manuals

yum install -y texlive

configure: WARNING: you cannot build PDF versions of vignettes and help pages

cd /usr/share/texlive/texmf-dist/tex/latex/
wget https://linux.linuxidc.com/linuxconf/download.php?file=Li9saW51eGZpbGVzLzIwMTXE6tfKwc8vNNTCLzTI1S9VYm50dSAxNC4wNCBMVFMgz8Kx4NLrsLLXsFIgU291cmNlIENvZGUvaW5jb25zb2xhdGEuemlw
mv download.php\?file\=Li9saW51eGZpbGVzLzIwMTXE6tfKwc8vNNTCLzTI1S9VYm50dSAxNC4wNCBMVFMgz8Kx4NLrsLLXsFIgU291cmNlIENvZGUvaW5jb25zb2xhdGEuemlw inconsolata.zip
unzip inconsolata.zip
texhash

configure: WARNING: I could not determine a browser

configure: WARNING: I could not determine a PDF viewer

11、/usr/bin/ld: CommandLineArgs.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
CommandLineArgs.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[3]: *** [libR.so] Error 1
make[3]: Leaving directory `/software/R-3.4.4/src/main'
make[2]: *** [R] Error 2
make[2]: Leaving directory `/software/R-3.4.4/src/main'
make[1]: *** [R] Error 1
make[1]: Leaving directory `/software/R-3.4.4/src'
make: *** [R] Error
./configure --prefix=/software/R-3.4.4

results matching ""

    No results matching ""