package 'esquisse' had non-zero exit status

I am trying to install esquisse package and I get following errors. Similar errors are seen for tidyverse and plotly package as well. I don't have sudo rights on my debian linux pc so anything other than admin rights to install packages can be helpful

install.packages("esquisse",dependencies = T)
Installing package into ‘/home/3S-LAB/snawaz/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
also installing the dependencies ‘systemfonts’, ‘xml2’, ‘gdtools’, ‘curl’, ‘datamods’, ‘officer’, ‘rvg’, ‘rio’, ‘hrbrthemes’

trying URL 'https://cloud.r-project.org/src/contrib/systemfonts_1.0.4.tar.gz'
Content type 'application/x-gzip' length 81757 bytes (79 KB)
==================================================
downloaded 79 KB

trying URL 'https://cloud.r-project.org/src/contrib/xml2_1.3.3.tar.gz'
Content type 'application/x-gzip' length 283965 bytes (277 KB)
==================================================
downloaded 277 KB

trying URL 'https://cloud.r-project.org/src/contrib/gdtools_0.2.4.tar.gz'
Content type 'application/x-gzip' length 33426 bytes (32 KB)
==================================================
downloaded 32 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/datamods_1.2.0.tar.gz'
Content type 'application/x-gzip' length 637792 bytes (622 KB)
==================================================
downloaded 622 KB

trying URL 'https://cloud.r-project.org/src/contrib/officer_0.4.1.tar.gz'
Content type 'application/x-gzip' length 689265 bytes (673 KB)
==================================================
downloaded 673 KB

trying URL 'https://cloud.r-project.org/src/contrib/rvg_0.2.5.tar.gz'
Content type 'application/x-gzip' length 31168 bytes (30 KB)
==================================================
downloaded 30 KB

trying URL 'https://cloud.r-project.org/src/contrib/rio_0.5.29.tar.gz'
Content type 'application/x-gzip' length 445401 bytes (434 KB)
==================================================
downloaded 434 KB

trying URL 'https://cloud.r-project.org/src/contrib/hrbrthemes_0.8.0.tar.gz'
Content type 'application/x-gzip' length 2379836 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

trying URL 'https://cloud.r-project.org/src/contrib/esquisse_1.1.0.tar.gz'
Content type 'application/x-gzip' length 2428080 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

* 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 containing `fontconfig.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] ---------------------------
<stdin>:1:10: fatal error: fontconfig/fontconfig.h: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘systemfonts’
* removing ‘/home/3S-LAB/snawaz/R/x86_64-pc-linux-gnu-library/4.1/systemfonts’
Warning in install.packages :
  installation of package ‘systemfonts’ 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/3S-LAB/snawaz/R/x86_64-pc-linux-gnu-library/4.1/xml2’
Warning in install.packages :
  installation of package ‘xml2’ had non-zero exit status
* 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/3S-LAB/snawaz/R/x86_64-pc-linux-gnu-library/4.1/curl’
Warning in install.packages :
  installation of package ‘curl’ had non-zero exit status
ERROR: dependency ‘systemfonts’ is not available for package ‘gdtools’
* removing ‘/home/3S-LAB/snawaz/R/x86_64-pc-linux-gnu-library/4.1/gdtools’
Warning in install.packages :
  installation of package ‘gdtools’ had non-zero exit status
ERROR: dependency ‘xml2’ is not available for package ‘officer’
* removing ‘/home/3S-LAB/snawaz/R/x86_64-pc-linux-gnu-library/4.1/officer’
Warning in install.packages :
  installation of package ‘officer’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘rio’
* removing ‘/home/3S-LAB/snawaz/R/x86_64-pc-linux-gnu-library/4.1/rio’
Warning in install.packages :
  installation of package ‘rio’ had non-zero exit status
ERROR: dependency ‘rio’ is not available for package ‘datamods’
* removing ‘/home/3S-LAB/snawaz/R/x86_64-pc-linux-gnu-library/4.1/datamods’
Warning in install.packages :
  installation of package ‘datamods’ had non-zero exit status
ERROR: dependencies ‘officer’, ‘gdtools’, ‘xml2’ are not available for package ‘rvg’
* removing ‘/home/3S-LAB/snawaz/R/x86_64-pc-linux-gnu-library/4.1/rvg’
Warning in install.packages :
  installation of package ‘rvg’ had non-zero exit status
ERROR: dependency ‘gdtools’ is not available for package ‘hrbrthemes’
* removing ‘/home/3S-LAB/snawaz/R/x86_64-pc-linux-gnu-library/4.1/hrbrthemes’
Warning in install.packages :
  installation of package ‘hrbrthemes’ had non-zero exit status
ERROR: dependency ‘datamods’ is not available for package ‘esquisse’
* removing ‘/home/3S-LAB/snawaz/R/x86_64-pc-linux-gnu-library/4.1/esquisse’
Warning in install.packages :
  installation of package ‘esquisse’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmppLYIl3/downloaded_packages’

You are missing these three system dependencies, you absolutely need them in order for those packages to work since the corresponding R packages are just wrappers for those system libraries.

You need to contact someone with sudo rights and ask them to install those system dependencies for you.

ok Thanks. I will ask them. A side question: I tried to use esquisse package on google colab but when I click on the local host link which the esquisse package gives , it doesn't open in the browser window. Any solution for that?
I tried this because I doesn't require any sudo rights

Sorry but I don't understand what you mean, since this is a very different question I think you should ask it on a new topic providing a relevant REPRoducible EXample (reprex) illustrating your issue.

1 Like

Ok thanks I have created new topic

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.