Error to install Bibliometrix package (XML, remtrez, pubmedR) in Debian 11

Hello! I try install Bibliometrix package, but i obtained 3 error... This is the comands line

> install.packages("bibliometrix")
Installing package into ‘/home/jorberr/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘rentrez’, ‘XML’, ‘pubmedR’

probando la URL 'https://cloud.r-project.org/src/contrib/rentrez_1.2.3.tar.gz'
Content type 'application/x-gzip' length 84042 bytes (82 KB)
==================================================
downloaded 82 KB

probando la URL 'https://cloud.r-project.org/src/contrib/XML_3.99-0.9.tar.gz'
Content type 'application/x-gzip' length 970514 bytes (947 KB)
==================================================
downloaded 947 KB

probando la URL 'https://cloud.r-project.org/src/contrib/pubmedR_0.0.3.tar.gz'
Content type 'application/x-gzip' length 20497 bytes (20 KB)
==================================================
downloaded 20 KB

probando la URL 'https://cloud.r-project.org/src/contrib/bibliometrix_3.2.1.tar.gz'
Content type 'application/x-gzip' length 495975 bytes (484 KB)
==================================================
downloaded 484 KB

* installing *source* package ‘XML’ ...
** package ‘XML’ successfully unpacked and MD5 sums checked
** using staged installation
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking how to run the C preprocessor... gcc -E
checking for sed... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking for xml2-config... no
Cannot find xml2-config
ERROR: configuration failed for package ‘XML’
* removing ‘/home/jorberr/R/x86_64-pc-linux-gnu-library/4.0/XML’
Warning in install.packages :
  installation of package ‘XML’ had non-zero exit status
ERROR: dependency ‘XML’ is not available for package ‘rentrez’
* removing ‘/home/jorberr/R/x86_64-pc-linux-gnu-library/4.0/rentrez’
Warning in install.packages :
  installation of package ‘rentrez’ had non-zero exit status
ERROR: dependencies ‘rentrez’, ‘XML’ are not available for package ‘pubmedR’
* removing ‘/home/jorberr/R/x86_64-pc-linux-gnu-library/4.0/pubmedR’
Warning in install.packages :
  installation of package ‘pubmedR’ had non-zero exit status
ERROR: dependency ‘pubmedR’ is not available for package ‘bibliometrix’
* removing ‘/home/jorberr/R/x86_64-pc-linux-gnu-library/4.0/bibliometrix’
Warning in install.packages :
  installation of package ‘bibliometrix’ had non-zero exit status

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

HELP!

You are missing the xml2 system library, you haven't told us what Linux distribution your are using so I can't give you a specific command to install it but can easily Google how to install xml2 on your specific Linux OS

Thanks for you response! I edited the title with de distribution (Debian 11), now will try install xml2 and comment how it result.

In that case run this command on a system terminal

sudo apt install libxml2

It's installed :confused:

$ sudo apt install libxml2
[sudo] password for jorberr: 
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
libxml2 ya está en su versión más reciente (2.9.13+dfsg-0+0~20220410.11+debian11~1.gbp692312).
fijado libxml2 como instalado manualmente.
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 2 no actualizados.

Try with

sudo apt install libxml2-dev

NOW YES! The 'bibliometrix' package was installed succefully :v:

Very thanks

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.