linux - "Non Zero Exit Status" R 3.0.1 'XML' and 'RCurl' -
i having bit of trouble installing xml , or rcurl on ubuntu machine 13.10. performed sudo update , upgrades today.
i trying use rattle r. unable install 'xml' required use of rattle. pretty same question asked right here year later , different os. here error messages getting back:
> install.packages("rcurl") installing package ‘/home/steven/r/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ unspecified) trying url 'http://cran.rstudio.com/src/contrib/rcurl_1.95-4.1.tar.gz' content type 'application/x-gzip' length 870915 bytes (850 kb) opened url ================================================== downloaded 850 kb * installing *source* package ‘rcurl’ ... ** package ‘rcurl’ unpacked , md5 sums checked checking curl-config... no cannot find curl-config error: configuration failed package ‘rcurl’ * removing ‘/home/steven/r/x86_64-pc-linux-gnu-library/3.0/rcurl’ warning in install.packages : installation of package ‘rcurl’ had non-zero exit status downloaded source packages in ‘/tmp/rtmpuwbkbs/downloaded_packages’ > install.packages("xml") installing package ‘/home/steven/r/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ unspecified) trying url 'http://cran.rstudio.com/src/contrib/xml_3.98-1.1.tar.gz' content type 'application/x-gzip' length 1582216 bytes (1.5 mb) opened url ================================================== downloaded 1.5 mb * installing *source* package ‘xml’ ... ** package ‘xml’ unpacked , md5 sums checked checking gcc... gcc checking c compiler default output file name... rm: cannot remove 'a.out.dsym': directory a.out checking whether c compiler works... yes checking whether cross compiling... no checking suffix of executables... checking suffix of object files... o checking whether using gnu c compiler... yes checking whether gcc accepts -g... yes checking gcc option accept iso c89... none needed checking how run c preprocessor... gcc -e checking sed... /bin/sed checking pkg-config... /usr/bin/pkg-config checking xml2-config... no cannot find xml2-config error: configuration failed package ‘xml’ * removing ‘/home/steven/r/x86_64-pc-linux-gnu-library/3.0/xml’ warning in install.packages : installation of package ‘xml’ had non-zero exit status downloaded source packages in ‘/tmp/rtmpuwbkbs/downloaded_packages’
not sure on how proceed here.
thank you,
to install curl , xml on ubuntu. run
sudo apt-get install libcurl4-openssl-dev libxml2-dev
the error messages on package install in r indicate curl , xml libraries not present or cannot found.
Comments
Post a Comment