[CIG-LONG] Compiling Gale 2 on Ubuntu 16.04

David Boutelier david.boutelier at newcastle.edu.au
Wed Nov 9 16:23:18 PST 2016


Hi,


I am trying to compile Gale-2_0_1 on a Ubuntu 16.04 workstation to get the benefit of parallel acceleration.


I do have the libxml2 library but the configure script does not find it.


This where my libxml is:


david at CG106-3XZ3TF2:/usr/lib/x86_64-linux-gnu$ pwd
/usr/lib/x86_64-linux-gnu

david at CG106-3XZ3TF2:/usr/lib/x86_64-linux-gnu$ ls -la libxml2*
-rw-r--r-- 1 root root 2947916 Jun  4 02:57 libxml2.a
lrwxrwxrwx 1 root root      16 Jun  4 02:57 libxml2.so -> libxml2.so.2.9.3
lrwxrwxrwx 1 root root      16 Oct 21 20:37 libxml2.so.2 -> libxml2.so.2.9.3
-rw-r--r-- 1 root root 1805560 Jun  4 02:57 libxml2.so.2.9.3

So I started compiling with the argument libxml2-lib-dir like this


david at CG106-3XZ3TF2:~/Gale-2_0_1$ ./configure.sh --libxml2-lib-dir='/usr/lib/x86_64-linux-gnu'
scons: Reading SConscript files ...
Checking whether the C++ compiler worksyes
Checking for package libXML2... no

****  ERROR ****
Failed to locate required package libXML2.
Details in 'config.log'


************************************
If you require help, send the files:
config.log
config.cfg (if it exists)
to: cig-long at geodynamics.org



and this is the content of the config.log


file /home/david/Gale-2_0_1/config/config.py,line 66:
Configure(confdir = .sconf_temp)

Configuring using:
  config/scons/scons.py --config=force -f SConfigure --libxml2-lib-dir=/usr/lib/x86_64-linux-gnu

file /home/david/Gale-2_0_1/config/cxx.py,line 11:
Configure(confdir = .sconf_temp)
scons: Configure: Checking whether the C++ compiler works
.sconf_temp/conftest_0.cpp <-
  |
  |int main()
  |{
  |    return 0;
  |}
  |
g++ -o .sconf_temp/conftest_0.o -c .sconf_temp/conftest_0.cpp
scons: Configure: yes


  Failed to find static or shared libraries for 'libXML2'.
  Static missing: ['xml2']
  Shared missing: ['xml2']
  Looked in: ['/usr/lib']
  Failed to find static or shared libraries for 'libXML2'.
  Static missing: ['xml2']
  Shared missing: ['xml2']
  Looked in: ['/usr/lib']
  Failed to find static or shared libraries for 'libXML2'.
  Static missing: ['xml2']
  Shared missing: ['xml2']
  Looked in: ['/usr/lib64']
  Failed to find static or shared libraries for 'libXML2'.
  Static missing: ['xml2']
  Shared missing: ['xml2']
  Looked in: ['/usr/lib64']
  Failed to find static or shared libraries for 'libXML2'.
  Static missing: ['xml2']
  Shared missing: ['xml2']
  Looked in: ['/usr/local/lib']
  Failed to find static or shared libraries for 'libXML2'.
  Static missing: ['xml2']
  Shared missing: ['xml2']
  Looked in: ['/usr/local/lib']
  Failed to find static or shared libraries for 'libXML2'.
  Static missing: ['xml2']
  Shared missing: ['xml2']
  Looked in: ['/usr/local/lib64']
  Failed to find static or shared libraries for 'libXML2'.
  Static missing: ['xml2']
  Shared missing: ['xml2']
  Looked in: ['/usr/local/lib64']



I am perplexed. Can you guide me ? What I am missing?


Thanks

David

________________________________
DAVID BOUTELIER
School of Environmental and Life Sciences,
The University of Newcastle, University Drive, Callaghan 2304 NSW


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/cig-long/attachments/20161110/7650c1ca/attachment.html>


More information about the CIG-LONG mailing list