非root 用户安装R:checking whether zlib support suffices... configure: error: zlib library and headers are required
001、问题, 非root用户安装R遇到如下报错:
checking whether zlib support suffices... configure: error: zlib library and headers are required

002、解决方法
切换为root, 安装curl:
a、下载curl,下载地址:下载最新版:

b、
[root@PC1 software]# whoami ## root用户
root [root@PC1 software]# wget https://curl.se/download/curl-7.87.0.tar.gz --no-check-certificate ## 下载最新curl安装包 [root@PC1 software]# ls curl-7.87.0.tar.gz
[root@PC1 curl-7.87.0]# tar -xzvf curl-7.87.0.tar.gz ## 解压 [root@PC1 curl-7.87.0]# cd curl-7.87.0/ ## 进入主目录 [root@PC1 curl-7.87.0]# ls acinclude.m4 CHANGES config.guess COPYING include ltmain.sh Makefile.am packages RELEASE-NOTES tests aclocal.m4 CMake config.sub curl-config.in install-sh m4 Makefile.in plan9 scripts winbuild buildconf CMakeLists.txt configure depcomp lib MacOSX-Framework maketgz projects src buildconf.bat compile configure.ac docs libcurl.pc.in Makefile missing README test-driver

[root@PC1 curl-7.87.0]# ./configure --with-openssl [root@PC1 curl-7.87.0]# make [root@PC1 curl-7.87.0]# make install


浙公网安备 33010602011771号