I'm trying to install the XML package on Ubuntu 10.10, and I keep getting a warning message the XML could not be found and had non-zero exit status. How can I fix this problem?> install.packages()Loading Tcl/Tk interface ... done --- Please select a CRAN mirror for use in this session --- Installing package(s) into ‘/home/amathew/R/i686-pc-linux-gnu-library/2.13’ (as ‘lib’ is unspecified) trying URL ' http://streaming.stat.iastate.edu/CRAN/src/contrib/XML_3.4-0.tar.gz' Content type 'application/x-gzip' length 896195 bytes (875 Kb) opened URL =================================================downloaded 875 Kb * installing *source* package ‘XML’ ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E No ability to remove finalizers on externalptr objects in this verison of R 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/amathew/R/i686-pc-linux-gnu-library/2.13/XML’ The downloaded packages are in ‘/tmp/Rtmp2V4huR/downloaded_packages’ Warning message: In install.packages() : installation of package 'XML' had non-zero exit status Thank You, Abraham [[alternative HTML version deleted]]
---------------------------------------- Date: Fri, 22 Jul 2011 20:06:34 -0600 From: abmathewks at gmail.com To: r-help at r-project.org Subject: [R] xml2-config issues I'm trying to install the XML package on Ubuntu 10.10, and I keep getting a warning message the XML could not be found and had non-zero exit status. How can I fix this problem?> install.packages()Loading Tcl/Tk interface ... done --- Please select a CRAN mirror for use in this session --- Installing package(s) into ?/home/amathew/R/i686-pc-linux-gnu-library/2.13? (as ?lib? is unspecified) trying URL ' http://streaming.stat.iastate.edu/CRAN/src/contrib/XML_3.4-0.tar.gz' Content type 'application/x-gzip' length 896195 bytes (875 Kb) opened URL =================================================downloaded 875 Kb * installing *source* package ?XML? ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E No ability to remove finalizers on externalptr objects in this verison of R 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/amathew/R/i686-pc-linux-gnu-library/2.13/XML? [ my text, hotmail won't highlight original? ] you probably need to get libxml2 and then you should be able to run xml2-config from command line to verfiy it is there. This is a specific pkg-config ( man pkg-config for details ). For some non-R things yum or apt-get has not gotten the most recent versions but generally your package manager should be just fine. The downloaded packages are in ?/tmp/Rtmp2V4huR/downloaded_packages? Warning message: In install.packages() : installation of package 'XML' had non-zero exit status Thank You, Abraham [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
On Fri, 22 Jul 2011, Abraham Mathew wrote:> I'm trying to install the XML package on Ubuntu 10.10, and I keep getting > a warning message the XML could not be foundNo, that is not the *error* message you quote below.> and had non-zero exit status. How can I fix this problem?Install libxml2 ... including the development version. (The difference is described in the R-admin manual which you should have read by now.)> >> install.packages() > Loading Tcl/Tk interface ... done > --- Please select a CRAN mirror for use in this session --- > Installing package(s) into ?/home/amathew/R/i686-pc-linux-gnu-library/2.13? > (as ?lib? is unspecified) > trying URL ' > http://streaming.stat.iastate.edu/CRAN/src/contrib/XML_3.4-0.tar.gz' > Content type 'application/x-gzip' length 896195 bytes (875 Kb) > opened URL > =================================================> downloaded 875 Kb > > * installing *source* package ?XML? ... > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ISO C89... none needed > checking how to run the C preprocessor... gcc -E > No ability to remove finalizers on externalptr objects in this verison of R > 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/amathew/R/i686-pc-linux-gnu-library/2.13/XML? > > The downloaded packages are in > ?/tmp/Rtmp2V4huR/downloaded_packages? > Warning message: > In install.packages() : > installation of package 'XML' had non-zero exit status > > > Thank You, > Abraham > > [[alternative HTML version deleted]] > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595