R语言再次安装过程问题(第二篇)
| 分类: 日常记录 |
1,最终安装命令:
./configure --prefix=/opt/ohpc/pub/apps/software
./configure --prefix=/opt/ohpc/pub/apps/software
make
make install
2,出现configure: WARNING: neither inconsolata.sty nor zi4.sty
found: PDF vignettes and package manuals will not be rendered
optimally
解决办法:
wget http://mirrors.ctan.org/fonts/inconsolata.zip
Unzip inconsolata.zip
cp -Rfp inconsolata/* /usr/share/texmf/
mktexlsr
3,当出现:configure: WARNING: you cannot build PDF versions of the
R manuals
configure: WARNING: you cannot build PDF versions of vignettes
and help pages
configure: WARNING: you cannot build info or HTML versions of
the R manuals
解决办法:
sudo yum install
texinfo
sudo yum install
texlive
4,编译时是否跳过PNG、JEPG、TIFF格式(Capabilities
skipped:
PNG, JPEG, TIFF, cairo, ICU)
登录R
登录R
> capabilities()
jpeg png tiff tcltk X11 aqua
FALSE FALSE FALSE FALSE FALSE FALSE
http /ftp sockets libxml fifo cledit iconv
TRUE TRUE TRUE TRUE TRUE TRUE
NLS profmem cairo ICU long.double libcurl
TRUE FALSE FALSE FALSE TRUE TRUE
解决办法:
yum install libpng-devel libtiff-devel libjpeg-turbo-devel pango-devel libpng-devel -y
然后 make uninstall
重新configure
显示:
Additional
capabilities: PNG, JPEG, TIFF, NLS, cairo, ICU
5,出现/usr/bin/ld: final link failed: Bad value。
/usr/bin/ld: xxxpr.o: relocation R_X86_64_PC32 against symbol
`rexitc_' can not be used when making a shared object; recompile
with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[3]: *** [libR.so] Error 1
make[3]: Leaving directory
`/opt/ohpc/pub/apps/R-3.5.1/src/main'
原因是:
Make sure
that you're not compiling in a directory where you'd previously
compiled without the --enable-R-shlib flag; R should be taking care
of the correct compiler flags.
如果第一次configure时没有加--enable-R-shlib,后续加了就可能出现此错误,或者更换一个安装目录。
参考链接:
1,http://blog.itpub.net/9036/viewspace-2122686/
2,https://www.cnblogs.com/liujiaxin2018/p/14363308.html
3,/questions/20561190/how-to-configure-r-3-0-1-with-enable-r-shlib

加载中…