Problems when installing R and Rstudio in Ubuntu:

来源:互联网 发布:马赛克软件下载 编辑:程序博客网 时间:2024/06/05 13:36
Problems when installing R and Rstudio in Ubuntu:

1. download R source code.
2. uncompress; then ./configure, but error occurs,
just because there are lack of some dependent packages.
install those libraries,mostly using "apt-get install lib(lib_name)-dev"

for example:
":configure: error: No F77 compiler found"
solution:  sudo apt-get install gfortran. this because R needs fortran to make it.

“–with-x=yes (default) and X11 headers/libs are not available”
solution: sudo apt-get install libxt-dev

"configure: error: --with-readline=yes (default) and headers/libs are not available"
solution: sudo apt-get install libreadline-dev

" configure: error: zlib library and headers are required"

solution: sudo apt-get install zlib1g-dev


"error: "liblzma library and headers are required"
sudo apt-get install liblzma-dev

"bzip2: error'

download bzip2 library first, here's the link: https://launchpad.net/ubuntu/+source/bzip2/1.0.6-8.1

uncompress, then: sudo make install

"configure: error: pcre >= 8.10   <10.0 library and headers are required"

because the pcre version cannot be too low or too high, I have to download it from here:https://ftp.pcre.org/pub/pcre/

then : ./configure  ; make and make install

however, "pcre" library which the version is out of range has been installed , so, I should remove the installed pcre lib first.

****

configure: WARNING: you cannot build info or HTML versions of the R manuals
configure: WARNING: you cannot build PDF versions of the R manuals
configure: WARNING: you cannot build PDF versions of vignettes and help pages

three warnings still exist, but not affect the function

3.make & make install


如果不从源码安装,直接从apt-get  or .deb文件安装,可参考博文:

http://blog.csdn.net/duxu24/article/details/53611510


references:
http://www.xuebuyuan.com/1234434.html
http://laymantech.blogbus.com/logs/80761679.html
阅读全文
0 0