Soy nuevo en Linux y R.No se puede instalar el paquete R en Ubuntu 11.04
he instalado R 2.12 en Ubuntu 11.04. Hoy he intentado instalar un nuevo paquete, por lo que me encontré con el siguiente comando:
install.packages('XML')
Pero la instalación falló y dio la siguiente información:
* 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/spirit/R/i686-pc-linux-gnu-library/2.12/XML’
The downloaded packages are in
‘/tmp/RtmpoZYxnv/downloaded_packages’
Warning message:
In install.packages("XML") :
installation of package 'XML' had non-zero exit status
También probé:
sudo install.packages('XML')
Pero da la misma información de error.
¿Alguien me puede dar algún consejo? Gracias por adelantado.
Instalar 'xml2-config'? –
@WayneWerner ¿no te da vergüenza cerrar una pregunta (¡útil!) 2 años después de que se dio una solución (útil)? Y publicando un comentario como que ni siquiera leíste el último ... – user14764
Esta pregunta me ayudó (nuevamente) en Ubuntu 14.04 – geneorama