Hi. I am installing R and RStudio on Ubuntu 22.04.2 LTS. I am not installing inside anaconda.
I am able to get through tutorials until I need to use tidyverse.
When I install the tidyverse package, I get a large number of errors.
Could there be problem with the Ubuntu version?
I have uninstalled and reinstalled. This changed nothing.
I also successfully installed the "lifecycle" package (as per the posting on 2023-01-21)
see below for the errors
install.packages("tidyverse")
Installing package into ‘/home/mycomputer/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘gargle’, ‘curl’, ‘systemfonts’, ‘textshaping’, ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘ragg’, ‘rvest’
trying URL 'https://cloud.r-project.org/src/contrib/gargle_1.3.0.tar.gz'
Content type 'application/x-gzip' length 345590 bytes (337 KB)
downloaded 337 KB
trying URL 'https://cloud.r-project.org/src/contrib/curl_5.0.0.tar.gz'
Content type 'application/x-gzip' length 682047 bytes (666 KB)
etc
etc
- 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 containinglibcurl.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] --------------------------------
Configuration failed because libcurl was not found. Try installing: - deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
- rpm: libcurl-devel (Fedora, CentOS, RHEL)
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 MESSAGE] ---------------------------
:1:10: fatal error: curl/curl.h: No such file or directory
compilation terminated.
ERROR: configuration failed for package ‘curl’
- removing ‘/home/mycomputer/R/x86_64-pc-linux-gnu-library/4.2/curl’
- installing source package ‘systemfonts’ ...
** package ‘systemfonts’ successfully unpacked and MD5 sums checked
** using staged installation
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containingfontconfig.pc' to the PKG_CONFIG_PATH environment variable No package 'fontconfig' found Package freetype2 was not found in the pkg-config search path. Perhaps you should add the directory containing
freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lfontconfig -lfreetype
--------------------------- [ANTICONF] --------------------------------
Configuration failed to find the fontconfig freetype2 library. Try installing: - deb: libfontconfig1-dev (Debian, Ubuntu, etc)
- rpm: fontconfig-devel (Fedora, EPEL)
- csw: fontconfig_dev (Solaris)
- brew: freetype (OSX)
If fontconfig freetype2 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a fontconfig freetype2.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] ---------------------------
:1:10: fatal error: fontconfig/fontconfig.h: No such file or directory
compilation terminated.
ERROR: configuration failed for package ‘systemfonts’
- removing ‘/home/mycomputer/R/x86_64-pc-linux-gnu-library/4.2/systemfonts’
ERROR: dependency ‘systemfonts’ is not available for package ‘textshaping’ - removing ‘/home/mycomputer/R/x86_64-pc-linux-gnu-library/4.2/textshaping’
ERROR: dependency ‘curl’ is not available for package ‘httr’ - removing ‘/home/mycomputer/R/x86_64-pc-linux-gnu-library/4.2/httr’
ERROR: dependency ‘httr’ is not available for package ‘gargle’ - removing ‘/home/mycomputer/R/x86_64-pc-linux-gnu-library/4.2/gargle’
ERROR: dependencies ‘systemfonts’, ‘textshaping’ are not available for package ‘ragg’ - removing ‘/home/mycomputer/R/x86_64-pc-linux-gnu-library/4.2/ragg’
ERROR: dependency ‘httr’ is not available for package ‘rvest’ - removing ‘/home/mycomputer/R/x86_64-pc-linux-gnu-library/4.2/rvest’
ERROR: dependencies ‘gargle’, ‘httr’ are not available for package ‘googledrive’ - removing ‘/home/mycomputer/R/x86_64-pc-linux-gnu-library/4.2/googledrive’
ERROR: dependencies ‘curl’, ‘gargle’, ‘googledrive’, ‘httr’ are not available for package ‘googlesheets4’ - removing ‘/home/mycomputer/R/x86_64-pc-linux-gnu-library/4.2/googlesheets4’
ERROR: dependencies ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘ragg’, ‘rvest’ are not available for package ‘tidyverse’ - removing ‘/home/mycomputer/R/x86_64-pc-linux-gnu-library/4.2/tidyverse’
The downloaded source packages are in
‘/tmp/Rtmp6ZNhq9/downloaded_packages’
Warning messages:
1: In install.packages("tidyverse") :
installation of package ‘curl’ had non-zero exit status
2: In install.packages("tidyverse") :
installation of package ‘systemfonts’ had non-zero exit status
3: In install.packages("tidyverse") :
installation of package ‘textshaping’ had non-zero exit status
4: In install.packages("tidyverse") :
installation of package ‘httr’ had non-zero exit status
5: In install.packages("tidyverse") :
installation of package ‘gargle’ had non-zero exit status
6: In install.packages("tidyverse") :
installation of package ‘ragg’ had non-zero exit status
7: In install.packages("tidyverse") :
installation of package ‘rvest’ had non-zero exit status
8: In install.packages("tidyverse") :
installation of package ‘googledrive’ had non-zero exit status
9: In install.packages("tidyverse") :
installation of package ‘googlesheets4’ had non-zero exit status
10: In install.packages("tidyverse") :
installation of package ‘tidyverse’ had non-zero exit status