Problems when installing R and Rstudio in Ubuntu:

在Ubuntu系统中安装R和RStudio时遇到了一些依赖库的问题,如zlib、liblzma、bzip2和pcre。通过运行特定的sudo apt-get install命令或手动下载并安装解决。虽然过程中出现了配置警告,但不影响最终功能。如果不想从源码安装,可以参考相关博文进行操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.youkuaiyun.com/duxu24/article/details/53611510


references:
http://www.xuebuyuan.com/1234434.html
http://laymantech.blogbus.com/logs/80761679.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值