centos安装R过程中报错&解决方法汇总
yum -y install gcc gcc-c++
yum -y install readline-devel
yum -y install gcc-gfortran
yum -y install libXt-devel
yum -y install zlib-devel
yum -y install bzip2-devel
yum -y install xz-devel.x86_64
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
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
yum install -y texinfo.x86_64
yum install -y texlive-pdftex-doc.noarch
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
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