安装依赖环境
yum install gcc-gfortran
yum -y install gcc gcc-c++
yum -y install readline-devel
yum -y install libXt-devel
将文件放到路径中进行解压
tar zxvf R-3.5.1.tar.gz
ls
cd R-3.5.1
./configure
此时配置中选项出现no,继续下一步出现错误。
make
错误:make: *** No targets specified and no makefile found. Stop
解决办法:查看系统.log日志,/erro,定位到错误信息。
vim config.log
查看部分错误信息如下:
configure:6640: checking how to run the C preprocessor
configure:6671: gcc -E -I/usr/local/include conftest.c
configure:6671: $? = 0
configure:6685: gcc -E -I/usr/local/include conftest.c
conftest.c:17:28: **error: ac_nonexistent.h: No such file or directory**
configure:6685: $? = 1
configure: failed program was:
| /* confdefs.h */
上方发现错误erro是由于gcc -