Hello, I am able to install the tidyverse package on a computer with Windows OS, but not on Debian 10 stable. (I am new to R and RStudio and somewhat new to Debian.)
I have the latest R and RStudio. While I easily install the packages for our workshop, the tidyverse is not getting installed. The more detailed output is at the very end of this message, but in short, the problem seems to start while installing the package curl, which is part of tidyverse: ---------------------- * 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 ---------------------- When I try to install libcurl, I get: ---------------------------- install.packages("libcurl") Installing package into ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘libcurl’ is not available for this version of R A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages ------------------------------ Another suggestions is to install libcurl4-openssl-dev, but when I try to, I get: ----------------------------- > install.packages("libcurl4-openssl-dev") Installing package into ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘libcurl4-openssl-dev’ is not available for this version of R A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages ------------------------------ Here is my session info: --------------------------------------- > sessionInfo() R version 4.1.0 (2021-05-18) Platform: x86_64-pc-linux- gnu (64-bit) Running under: Debian GNU/Linux 10 (buster) Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.8.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.8.0 locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.1.0 tools_4.1.0 ------------------------------ And below is the full output with all the errors when trying to tidyverse. I tried installing it on Debian 11 Testing, but no luck there either, although the errors were different. Thank you in advance for your help. Luben -------------------------------------- > install.packages("tidyverse") Installing package into ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1’ (as ‘lib’ is unspecified) also installing the dependencies ‘gargle’, ‘curl’, ‘ids’, ‘openssl’, ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘rvest’, ‘xml2’ trying URL ' https://cloud.r-project.org/src/contrib/gargle_1.2.0.tar.gz' Content type 'application/x-gzip' length 313418 bytes (306 KB) ================================================== downloaded 306 KB trying URL 'https://cloud.r-project.org/src/contrib/curl_4.3.2.tar.gz' Content type 'application/x-gzip' length 793345 bytes (774 KB) ================================================== downloaded 774 KB trying URL 'https://cloud.r-project.org/src/contrib/ids_1.0.1.tar.gz' Content type 'application/x-gzip' length 91213 bytes (89 KB) ================================================== downloaded 89 KB trying URL ' https://cloud.r-project.org/src/contrib/openssl_1.4.4.tar.gz' Content type 'application/x-gzip' length 1311285 bytes (1.3 MB) ================================================== downloaded 1.3 MB trying URL ' https://cloud.r-project.org/src/contrib/googledrive_2.0.0.tar.gz' Content type 'application/x-gzip' length 1593656 bytes (1.5 MB) ================================================== downloaded 1.5 MB trying URL ' https://cloud.r-project.org/src/contrib/googlesheets4_0.3.0.tar.gz' Content type 'application/x-gzip' length 435126 bytes (424 KB) ================================================== downloaded 424 KB trying URL 'https://cloud.r-project.org/src/contrib/httr_1.4.2.tar.gz' Content type 'application/x-gzip' length 159950 bytes (156 KB) ================================================== downloaded 156 KB trying URL 'https://cloud.r-project.org/src/contrib/rvest_1.0.0.tar.gz' Content type 'application/x-gzip' length 94134 bytes (91 KB) ================================================== downloaded 91 KB trying URL 'https://cloud.r-project.org/src/contrib/xml2_1.3.2.tar.gz' Content type 'application/x-gzip' length 271876 bytes (265 KB) ================================================== downloaded 265 KB trying URL ' https://cloud.r-project.org/src/contrib/tidyverse_1.3.1.tar.gz' Content type 'application/x-gzip' length 702779 bytes (686 KB) ================================================== downloaded 686 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 ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1/curl’ Warning in install.packages : installation of package ‘curl’ had non-zero exit status * installing *source* package ‘openssl’ ... ** package ‘openssl’ successfully unpacked and MD5 sums checked ** using staged installation Using PKG_CFLAGS= --------------------------- [ANTICONF] -------------------------------- Configuration failed because openssl was not found. Try installing: * deb: libssl-dev (Debian, Ubuntu, etc) * rpm: openssl-devel (Fedora, CentOS, RHEL) * csw: libssl_dev (Solaris) * brew: openssl@1.1 (Mac OSX) If openssl is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a openssl.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 MESSAGE] --------------------------- tools/version.c:1:10: fatal error: openssl/opensslv.h: No such file or directory #include <openssl/opensslv.h> ^~~~~~~~~~~~~~~~~~~~ compilation terminated. -------------------------------------------------------------------- ERROR: configuration failed for package ‘openssl’ * removing ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1/openssl’ Warning in install.packages : installation of package ‘openssl’ had non-zero exit status * installing *source* package ‘xml2’ ... ** package ‘xml2’ successfully unpacked and MD5 sums checked ** using staged installation Package libxml-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libxml-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libxml-2.0' found Package libxml-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libxml-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libxml-2.0' found Using PKG_CFLAGS= Using PKG_LIBS=-lxml2 ------------------------- ANTICONF ERROR --------------------------- Configuration failed because libxml-2.0 was not found. Try installing: * deb: libxml2-dev (Debian, Ubuntu, etc) * rpm: libxml2-devel (Fedora, CentOS, RHEL) * csw: libxml2_dev (Solaris) If libxml-2.0 is already installed, check that 'pkg-config' is in your PATH and PKG_CONFIG_PATH contains a libxml-2.0.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 ‘xml2’ * removing ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1/xml2’ Warning in install.packages : installation of package ‘xml2’ had non-zero exit status ERROR: dependency ‘openssl’ is not available for package ‘ids’ * removing ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1/ids’ Warning in install.packages : installation of package ‘ids’ had non-zero exit status ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’ * removing ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1/httr’ Warning in install.packages : installation of package ‘httr’ had non-zero exit status ERROR: dependency ‘httr’ is not available for package ‘gargle’ * removing ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1/gargle’ Warning in install.packages : installation of package ‘gargle’ had non-zero exit status ERROR: dependencies ‘httr’, ‘xml2’ are not available for package ‘rvest’ * removing ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1/rvest’ Warning in install.packages : installation of package ‘rvest’ had non-zero exit status ERROR: dependencies ‘gargle’, ‘httr’ are not available for package ‘googledrive’ * removing ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1/googledrive’ Warning in install.packages : installation of package ‘googledrive’ had non-zero exit status ERROR: dependencies ‘curl’, ‘gargle’, ‘googledrive’, ‘httr’, ‘ids’ are not available for package ‘googlesheets4’ * removing ‘/home/luben/R/x86_64-pc-linux-gnu- library/4.1/googlesheets4’ Warning in install.packages : installation of package ‘googlesheets4’ had non-zero exit status ERROR: dependencies ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’ * removing ‘/home/luben/R/x86_64-pc-linux-gnu-library/4.1/tidyverse’ Warning in install.packages : installation of package ‘tidyverse’ had non-zero exit status The downloaded source packages are in ‘/tmp/RtmpF0FDpx/downloaded_packages’ > library(tidyverse) Error in library(tidyverse) : there is no package called ‘tidyverse’ _______________________________________________ R-SIG-Debian mailing list R-SIG-Debian@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-debian