r - unable to install 'XML' package dependency for 'pmml' on Ubuntu -


i trying install 'pmml' package in r using install.packages('') option source. keep getting errors both ways.

trying r

install.packages('pmml',dependencies=t) cannot find xml2-config error: configuration failed package ‘xml’ * removing ‘/home/pepperboy/r/x86_64-pc-linux-gnu-library/3.2/xml’ error: dependency ‘xml’ not available package ‘pmml’ * removing ‘/home/pepperboy/r/x86_64-pc-linux-gnu-library/3.2/pmml’ 

trying source

> install.packages('pmml_1.4.2.tar.gz', repos = null, type="source") installing package ‘/home/pepperboy/r/x86_64-pc-linux-gnu-library/3.2’ (as ‘lib’ unspecified) error: dependency ‘xml’ not available package ‘pmml’ * removing ‘/home/pepperboy/r/x86_64-pc-linux-gnu-library/3.2/pmml’ warning message: in install.packages("pmml_1.4.2.tar.gz", repos = null, type = "source") :   installation of package ‘pmml_1.4.2.tar.gz’ had non-zero exit status 

trying using r cmd install

 % r cmd install pmml_1.4.2.tar.gz                          * installing library ‘/home/pepperboy/r/x86_64-pc-linux-gnu-library/3.2’ error: dependency ‘xml’ not available package ‘pmml’ * removing ‘/home/pepperboy/r/x86_64-pc-linux-gnu-library/3.2/pmml’ 

i have tried install xml library r using these same methods, keep getting similar errors like

error: configuration failed package ‘xml’ * removing ‘/home/pepperboy/r/x86_64-pc-linux-gnu-library/3.2/xml’ 

you need install system library libxm2-dev install xml package (on pmml depends). so, if on debian or ubuntu, install through:

sudo apt-get install libxml2-dev 

and proceed r packages installation. careful check systemrequirements section in home page of r package want install (for xml, see here).


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -