Thanks GenoMax!
Thank you very much for your kindly response! I have installed libxml2 library and also tried to install XML-3.98 alone but get Error2/3. My 64bit-PC is lying on Ubuntu 12.04 LTS system.
Error2: install XML alone
$ cd XML
$ sh ./configure --host=x86_64
......
Minor 9, Patch 1 for 2.9.1
Located parser file -I/usr/local/include/libxml2/parser.h
Checking for 1.8: -I/usr/local/include/libxml2
Using libxml2.*
checking for gzopen in -lz... no
checking for xmlParseFile in -lxml2... no
checking for xmlParseFile in -lxml... no
configure: error: "libxml not found"
Error3: install XML in R
>install.package("XML")
.......
/usr/bin/ld: /usr/local/lib/libxml2.a(error.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libxml2.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [XML.so] Error 1
ERROR: compilation failed for package ‘XML’
* removing ‘/usr/local/lib64/R/library/XML’
The downloaded source packages are in
‘/tmp/RtmpsOfYSc/downloaded_packages’
Updating HTML index of packages in '.Library'
Making packages.html ... done
Warning message:
In install.packages("XML") :
installation of package ‘XML’ had non-zero exit status
Libxml2:
$ sudo apt-get install libxml2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxml2 is already the newest version.
The following packages were automatically installed and are no longer required:
natefoo-taxonomy python-numexpr tk-table python-gnuplot libhdf5-serial-1.8.4
liblzo2-2 natefoo-add-scores galaxy-server-test python-tables macs14
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 569 not upgraded.
$ which xml2-config
/usr/local/bin/xml2-config
Originally posted by GenoMax
View Post
Error2: install XML alone
$ cd XML
$ sh ./configure --host=x86_64
......
Minor 9, Patch 1 for 2.9.1
Located parser file -I/usr/local/include/libxml2/parser.h
Checking for 1.8: -I/usr/local/include/libxml2
Using libxml2.*
checking for gzopen in -lz... no
checking for xmlParseFile in -lxml2... no
checking for xmlParseFile in -lxml... no
configure: error: "libxml not found"
Error3: install XML in R
>install.package("XML")
.......
/usr/bin/ld: /usr/local/lib/libxml2.a(error.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libxml2.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [XML.so] Error 1
ERROR: compilation failed for package ‘XML’
* removing ‘/usr/local/lib64/R/library/XML’
The downloaded source packages are in
‘/tmp/RtmpsOfYSc/downloaded_packages’
Updating HTML index of packages in '.Library'
Making packages.html ... done
Warning message:
In install.packages("XML") :
installation of package ‘XML’ had non-zero exit status
Libxml2:
$ sudo apt-get install libxml2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxml2 is already the newest version.
The following packages were automatically installed and are no longer required:
natefoo-taxonomy python-numexpr tk-table python-gnuplot libhdf5-serial-1.8.4
liblzo2-2 natefoo-add-scores galaxy-server-test python-tables macs14
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 569 not upgraded.
$ which xml2-config
/usr/local/bin/xml2-config
Comment