001、问题
configure: error: --with-readline=yes (default) and headers/libs are not available
002、解决方法
a、切换回root用户
[liujiaxin01@PC1 R-4.2.1]$ su - root Password: Last login: Fri Jan 13 20:54:58 CST 2023 from 192.168.71.1 on pts/1
b、
[root@PC1 ~]# yum install readline readline-devel readline-static
c、切回普通用户,再次执行,readline报错消失。
[liujiaxin01@PC1 R-4.2.1]$ pwd /home/liujiaxin01/download_r/R-4.2.1 [liujiaxin01@PC1 R-4.2.1]$ ls ChangeLog config.site configure.ac doc INSTALL Makeconf.in Makefile.in README src tests VERSION config.log configure COPYING etc m4 Makefile.fw po share SVN-REVISION tools VERSION-NICK [liujiaxin01@PC1 R-4.2.1]$ ./configure --prefix=/home/liujiaxin01/r_test
标签:configure,4.2,--,PC1,headers,liujiaxin01,readline From: https://www.cnblogs.com/liujiaxin2018/p/17048056.html