[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] building gettext with custom libxml2
From: |
Bruno Haible |
Subject: |
Re: [bug-gettext] building gettext with custom libxml2 |
Date: |
Sun, 22 Oct 2017 22:51:35 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-96-generic; KDE/5.18.0; x86_64; ; ) |
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