[R] xml2-config issues

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Jul 23 13:48:49 CEST 2011


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 found

No, 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



More information about the R-help mailing list