ubuntu – The installation of the GetHFData R package failed. An error message indicates that libcurl is missing in my Lubuntu 16.04

I've tried to install the GNU R GetHFData package, but I'm getting an error message like this:

install.packages ("GetHFData")
Installing the package in "/home/nelson/R/x86_64-pc-linux-gnu-library/3.4"
(as "lib" is not specified)
also install the "curl" dependency

URL attempt & # 39; https: //cloud.r-project.org/src/contrib/curl_3.3.tar.gz'

downloaded 363 KB

URL to try https://cloud.r-project.org/src/contrib/GetHFData_1.7.tar.gz'

downloaded 878 KB

  • l & # 39; Installation source the package 'curl' …
    ** package "curl" successfully decompacted and MD5 sum verified
    The libcurl package was not found in the pkg-config search path.
    Maybe you should add the directory containing libcurl.pc & # 39;
    to the PKG_CONFIG_PATH environment variable
    No packages & # 39; libcurl & # 39; find
    The libcurl package was not found in the pkg-config search path.
    Maybe you should add the directory containing
    libcurl.pc & # 39;
    to the PKG_CONFIG_PATH environment variable
    No packages & # 39; libcurl & # 39; find
    Using PKG_CFLAGS =
    Using PKG_LIBS = -lcurl
    ————————- ANTICONF ERROR ———————– —-
    The configuration failed because libcurl was not found. Try to install:

    • 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 & # 39; is in your
      PATH and PKG_CONFIG_PATH contain 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 = … & # 39;

ERROR: The configuration of the 'curl' package failed
* remove &host; /home/nelson/R/x86_64-pc-linux-gnu-library/3.4/curl'
ERROR: 'curl' dependency is not available for 'GetHFData' package
* remove &home /home/nelson/R/x86_64-pc-linux-gnu-library/3.4/GetHFData'

The downloaded source packages are in
"/ Tmp / RtmpvzQXX9 / product_products"
Warning messages:
1: In install.packages ("GetHFData"):
Installing the "curl" package had a non-zero output status
2: In install.packages ("GetHFData"):
The installation of the package 'GetHFData' had a non-zero output status

Does anyone know what's wrong? I have tried to install curl, but it has already been installed on my system.

Thanks in advance for your help and attention, guys!