Hello everyone, I got bunch of errors while installing devtools in WSL ubuntu, I appreciate your help in advance
I tried all the solutions such as updating openssl, installing libxml2,libcurl4,libssl , using dependencies=TRUE , ...
but it did not work, because of limitation in using url I just write some errors occured
install.packages("devtools")
Installing package into ‘/home/masoud2204/R/x86_64-pc-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘systemfonts’, ‘textshaping’, ‘gert’, ‘ragg’, ‘usethis’, ‘pkgdown’
URL 'https://cloud.r-project.org/src/contrib/systemfonts_1.1.0.tar.gz': status was 'SSL connect error'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cloud.r-project.org/src/contrib/systemfonts_1.1.0.tar.gz'
....
installation of package ‘pkgdown’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpXcrDp1/downloaded_packages’
You didn't show the actual error messages about why those packages failed to install. It is probably because their required system packages are missing. You can look them up like this:
installing source package ‘ragg’ ...
** package ‘ragg’ successfully unpacked and MD5 sums checked
** using staged installation
Package libtiff-4 was not found in the pkg-config search path.
Perhaps you should add the directory containing libtiff-4.pc' to the PKG_CONFIG_PATH environment variable Package 'libtiff-4', required by 'virtual:world', not found Package 'libjpeg', required by 'virtual:world', not found Package libtiff-4 was not found in the pkg-config search path. Perhaps you should add the directory containing libtiff-4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libtiff-4', required by 'virtual:world', not found
Package 'libjpeg', required by 'virtual:world', not found
Using PKG_CFLAGS=
Using PKG_LIBS=-lfreetype -lpng16 -ltiff -lz -ljpeg -lbz2
-----------------------------[ ANTICONF ]-------------------------------
Configuration failed to find one of freetype2 libpng libtiff-4 libjpeg. Try installing:
csw: libfreetype_dev libpng16_dev libtiff_dev libjpeg_dev (Solaris)
If freetype2 libpng libtiff-4 libjpeg is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a freetype2 libpng libtiff-4 libjpeg.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: ft2build.h: No such file or directory
compilation terminated.
ERROR: configuration failed for package ‘ragg’
removing ‘/home/masoud2204/R/x86_64-pc-linux-gnu-library/4.4/ragg’
Warning in install.packages :
installation of package ‘ragg’ had non-zero exit status
installing source package ‘usethis’ ...
** package ‘usethis’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
DONE (usethis)
ERROR: dependency ‘ragg’ is not available for package ‘pkgdown’
removing ‘/home/masoud2204/R/x86_64-pc-linux-gnu-library/4.4/pkgdown’
Warning in install.packages :
installation of package ‘pkgdown’ had non-zero exit status
and another problem that I noticed is that when I want to run <apt-get -y update>, I get these messages
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)