* installing *source* package ‘xml2’ ... ** package ‘xml2’ successfully unpacked and MD5 sums checked Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable No package 'libxml-2.0' found Package libxml-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libxml-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libxml-2.0' found Could not find libxml2. Please install libxml2-devel (rpm) or libxml2-dev (deb). ERROR: configuration failed for package ‘xml2’ * removing ‘/home/yiting/R/i686-redhat-linux-gnu-library/3.1/xml2’ Warning in install.packages : installation of package ‘xml2’ had non-zero exit status ERROR: dependency ‘xml2’ is not available for package ‘rversions’ * removing ‘/home/yiting/R/i686-redhat-linux-gnu-library/3.1/rversions’ Warning in install.packages : installation of package ‘rversions’ had non-zero exit status ERROR: dependency ‘rversions’ is not available for package ‘devtools’ * removing ‘/home/yiting/R/i686-redhat-linux-gnu-library/3.1/devtools’ Warning in install.packages : installation of package ‘devtools’ had non-zero exit status The downloaded source packages are in ‘/tmp/Rtmpvz0ZSk/downloaded_packages’
**Could not find libxml2. Please install libxml2-devel (rpm) or libxml2-dev (deb).**
你要先解決這個問題。
> 在linux上打了 yum install libxml2-devel ,但是出現"程式記憶體區段錯誤 (core dumped)" 的錯誤訊息
這要去查詢libxml2相關資源。我的經驗是,也許把套件列表更新一下就可以解決了。或是自己下載原始碼,然後建置安裝也可以。Wush
tar -xvf libxml2-2.7.6.tar.gz
cd libxml2-2.7.6
./configure
make
sudo make install