linux 中非root用户安装R:configure: error: libcurl >= 7.28.0 library and headers are required with support for https

 

001、问题:

configure: error: libcurl >= 7.28.0 library and headers are required with support for https

 

 

002、解决方法:切回root, 安装curl

[root@PC1 software]# wget https://curl.se/download/curl-7.61.0.tar.gz --no-check-certificate
[root@PC1 software]# ls
curl-7.61.0.tar.gz
[root@PC1 software]# tar -xzvf curl-7.61.0.tar.gz
[root@PC1 software]# cd curl-7.61.0/
[root@PC1 curl-7.61.0]# ./configure
[root@PC1 curl-7.61.0]# make
[root@PC1 curl-7.61.0]# make install

 

 

003、切回普通用户,执行

[liujiaxin01@PC1 R-4.2.1]$ pwd
/home/liujiaxin01/download_r/R-4.2.1
[liujiaxin01@PC1 R-4.2.1]$ ls
ChangeLog    config.status  COPYING  INSTALL  Makeconf     Makefile.fw  Makefrag.cc_lo  po      src           tools
config.log   configure      doc      libtool  Makeconf.in  Makefile.in  Makefrag.cxx    README  SVN-REVISION  VERSION
config.site  configure.ac   etc      m4       Makefile     Makefrag.cc  Makefrag.m      share   tests         VERSION-NICK
[liujiaxin01@PC1 R-4.2.1]$ ./configure --prefix=/home/liujiaxin01/r_test

 

posted @ 2023-01-12 22:22  小鲨鱼2018  阅读(1020)  评论(0编辑  收藏  举报