R install curl,libcurl was not found
报错如下,根据报错提示进行操作,补全缺失包
- installing source package ‘curl’ …
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation Found pkg-config cflags and libs! Using PKG_CFLAGS=-I/usr/include/x86_64-linux-gnu Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR --------------------------- Configuration failed because libcurl was not found. Try installing: *
deb: libcurl4-openssl-dev (Debian, Ubuntu, etc) * rpm: libcurl-devel
(Fedora, CentOS, RHEL) * csw: libcurl_dev (Solaris) If libcurl is
already installed, check that ‘pkg-config’ is in your PATH and
PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config is
unavailable you can set INCLUDE_DIR and LIB_DIR manually via: R CMD
INSTALL --configure-vars=‘INCLUDE_DIR=… LIB_DIR=…’
根据提示,安装缺失的包
su