linux学习100篇8:ERROR: configuration failed for package 'curl'

ERROR: dependencies 'httr', 'xml2' are not available for package 'GEOquery'
* removing '/usr/local/lib/R/site-library/GEOquery'

The downloaded source packages are in
    '/tmp/RtmpkVS6KY/downloaded_packages'
Warning messages:
1: In .inet_warning(msg) :
  installation of package 'curl' had non-zero exit status
2: In .inet_warning(msg) :
  installation of package 'openssl' had non-zero exit status
3: In .inet_warning(msg) :
  installation of package 'xml2' had non-zero exit status
4: In .inet_warning(msg) :
  installation of package 'httr' had non-zero exit status
5: In .inet_warning(msg) :
  installation of package 'GEOquery' had non-zero exit status
> install.packages("curl")
Installing package into '/usr/local/lib/R/site-library'
(as 'lib' is unspecified)
trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/curl_4.3.1.tar.gz'
Content type 'application/x-gzip' length 793230 bytes (774 KB)
==================================================
downloaded 774 KB

* installing *source* package 'curl' ...
** package 'curl' successfully unpacked and MD5 sums checked
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
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=...'
--------------------------------------------------------------------
ERROR: configuration failed for package 'curl'
* removing '/usr/local/lib/R/site-library/curl'

The downloaded source packages are in
    '/tmp/RtmpkVS6KY/downloaded_packages'
Warning message:
In install.packages("curl") :
  installation of package 'curl' had non-zero exit status
> q()
Save workspace image? [y/n/c]: n
(base) root@BC-25-at-66-181:~/software# sudo apt install libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cdbs debhelper dh-autoreconf dh-strip-nondeterminism dh-translations intltool
  intltool-debian jq libarchive-zip-perl libencode-locale-perl
  libfile-listing-perl libfile-stripnondeterminism-perl libfile-which-perl
  libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
  libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libio-html-perl
  libio-socket-ssl-perl libjq1 liblwp-mediatypes-perl liblwp-protocol-https-perl
  libnet-http-perl libnet-ssleay-perl libonig4 libtimedate-perl libtry-tiny-perl
  liburi-perl libwww-perl libwww-robotrules-perl libxml-parser-perl
  perl-openssl-defaults po-debconf python3-scour scour
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  libcurl4-doc libidn11-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev
  libssl-dev
The following NEW packages will be installed:
  libcurl4-openssl-dev
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 301 kB of archives.
After this operation, 1,426 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcurl4-openssl-dev amd64 7.58.0-2ubuntu3.13 [301 kB]
Fetched 301 kB in 0s (1,127 kB/s)            
Selecting previously unselected package libcurl4-openssl-dev:amd64.
(Reading database ... 76882 files and directories currently installed.)
Preparing to unpack .../libcurl4-openssl-dev_7.58.0-2ubuntu3.13_amd64.deb ...
Unpacking libcurl4-openssl-dev:amd64 (7.58.0-2ubuntu3.13) ...
Setting up libcurl4-openssl-dev:amd64 (7.58.0-2ubuntu3.13) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
(base) root@BC-25-at-66-181:~/software# sudo apt install libxml2-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cdbs debhelper dh-autoreconf dh-strip-nondeterminism dh-translations intltool
  intltool-debian jq libarchive-zip-perl libencode-locale-perl
  libfile-listing-perl libfile-stripnondeterminism-perl libfile-which-perl
  libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl
  libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libio-html-perl
  libio-socket-ssl-perl libjq1 liblwp-mediatypes-perl liblwp-protocol-https-perl
  libnet-http-perl libnet-ssleay-perl libonig4 libtimedate-perl libtry-tiny-perl
  liburi-perl libwww-perl libwww-robotrules-perl libxml-parser-perl
  perl-openssl-defaults po-debconf python3-scour scour
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  libxml2-dev
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 756 kB of archives.
After this operation, 3,559 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxml2-dev amd64 2.9.4+dfsg1-6.1ubuntu1.3 [756 kB]
Fetched 756 kB in 0s (2,688 kB/s)   
Selecting previously unselected package libxml2-dev:amd64.
(Reading database ... 76903 files and directories currently installed.)
Preparing to unpack .../libxml2-dev_2.9.4+dfsg1-6.1ubuntu1.3_amd64.deb ...
Unpacking libxml2-dev:amd64 (2.9.4+dfsg1-6.1ubuntu1.3) ...
Setting up libxml2-dev:amd64 (2.9.4+dfsg1-6.1ubuntu1.3) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
(base) root@BC-25-at-66-181:~/software# 

你可能感兴趣的:(linux学习100篇8:ERROR: configuration failed for package 'curl')