On 07/21/2012 10:42 AM, John Kane wrote:
I am getting what appears to be an Unbuntu level error in trying to install the
XML package.

Both commands:
install.packages("XML:)
install.packages("XML", dependencies = TRUE)
  give an error .

The full installation script is below but the problem to my very inexperenced 
eye seems to be here:

checking for pkg-config... /usr/bin/pkg-config
checking for xml2-config... no
Cannot find xml2-config
ERROR: configuration failed for package ‘XML’

I seem to have libxml1 version 2.7.8defg.1ubuntu installed if this is relevent.

Any suggestions would be gratefully received.

  Ubuntu 12.04
sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: i686-pc-linux-gnu (32-bit)

John,

The Ubuntu package you need to install is "libxml2-dev". Or you could install "r-cran-xml" from the cran2deb4ubuntu PPA and it will resolve all the dependencies for you. Details here:

https://launchpad.net/~marutter/+archive/c2d4u

Hope this helps,
Michael



--
Dr. Michael A. Rutter
School of Science
Penn State Erie, The Behrend College
4205 College Drive
Erie, PA 16563
http://math.bd.psu.edu/faculty/rutter
[email protected]

_______________________________________________
R-SIG-Debian mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Reply via email to