Hi,

Thank you very much for the swift response, both your suggestions are exactly
spot on! I'm off to report them to Spack so that they can update the package
definition. Thank you also for teaching me a little bit about resolving these
problems in general :)

Best,

David

On 10/22/2017 10:51 PM, Bruno Haible wrote:
Hi,

This is how configure was invoked:

./configure
--prefix=/cnk/common/tools/spack/opt/spack/linux-ubuntu12.04-x86_64/gcc-6.4.0/gettext-0.19.8.1-iyq7wap5sppgofyeunv7j36rvmeewop4
--disable-java --disable-csharp --with-included-glib
--with-included-gettext --with-included-libcroco --without-emacs
--with-lispdir=/cnk/common/tools/spack/opt/spack/linux-ubuntu12.04-x86_64/gcc-6.4.0/gettext-0.19.8.1-iyq7wap5sppgofyeunv7j36rvmeewop4/share/emacs/site-lisp/gettext
--without-cvs
--with-ncurses-prefix=/cnk/common/tools/spack/opt/spack/linux-ubuntu12.04-x86_64/gcc-6.4.0/ncurses-6.0-c7c4oxnzvvria76haxxvhnoej3zv65vh
--with-libxml2-prefix=/cnk/common/tools/spack/opt/spack/linux-ubuntu12.04-x86_64/gcc-6.4.0/libxml2-2.9.4-xdv2bdnzahsvgsfzgx5k3hp76kpstxqi
--with-included-libunistring
The relevant option here is
   
--with-libxml2-prefix=/cnk/common/tools/spack/opt/spack/linux-ubuntu12.04-x86_64/gcc-6.4.0/libxml2-2.9.4-xdv2bdnzahsvgsfzgx5k3hp76kpstxqi

On bi-arch platforms (like Ubuntu x86_64) libraries may be installed in
$prefix/lib or $prefix/lib64. Maybe the configuration script has made the wrong
guess about it. Try putting a symlink
   $prefix/lib64 -> $prefix/lib
or vice versa.

If this hint does not help, then try not using this --with-libxml2-prefix
option, and instead set LDFLAGS and CPPFLAGS:
   CPPFLAGS="-I$prefix/include" LDFLAGS="-L$prefix/lib -Wl,-rpath,$prefix/lib"
or
   CPPFLAGS="-I$prefix/include" LDFLAGS="-L$prefix/lib64 
-Wl,-rpath,$prefix/lib64"

Bruno



Reply via email to