HI, im trying to install 'sparklyr' package in Rstudio under redhat-linux, but it's not possible due to the configuration of 'xml2'. can anyone helps me?
Here is the code i execute and the anwers by RStudio..
> install.packages("sparklyr")
Installing package into ‘/home/jjimenez/R/x86_64-redhat-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependency ‘xml2’
probando la URL 'https://cran.rstudio.com/src/contrib/xml2_1.2.0.tar.gz'
Content type 'application/x-gzip' length 251614 bytes (245 KB)
==================================================
downloaded 245 KB
probando la URL 'https://cran.rstudio.com/src/contrib/sparklyr_0.7.0.tar.gz'
Content type 'application/x-gzip' length 3026072 bytes (2.9 MB)
==================================================
downloaded 2.9 MB
* installing *source* package ‘xml2’ ...
** package ‘xml2’ successfully unpacked and MD5 sums checked
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/jjimenez/R/x86_64-redhat-linux-gnu-library/3.4/xml2’
Warning in install.packages :
installation of package ‘xml2’ had non-zero exit status
ERROR: dependency ‘xml2’ is not available for package ‘sparklyr’
* removing ‘/home/jjimenez/R/x86_64-redhat-linux-gnu-library/3.4/sparklyr’
Warning in install.packages :
installation of package ‘sparklyr’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpbgJk2u/downloaded_packages’
Thanks and regards