After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 521091 - configure: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/
configure: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/
Status: RESOLVED WONTFIX
Product: libxslt
Classification: Platform
Component: general
1.1.22
Other Mac OS
: Low minor
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2008-03-07 21:34 UTC by Andrew SG Rojek
Modified: 2009-01-06 19:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrew SG Rojek 2008-03-07 21:34:58 UTC
Installing libxml2-2.6.30 and then libxslt-1.1.22 on iMac OSX 10.5.2.

Encountered the above error whilst configuring libxslt.

First run was without any definitions of the locations of the libxml2 files (config, headers and libs)
and libxslt found the factory installed software that was too out of date. On the second run, I got the
above error when specifying the directories for libxml2 when configuring libxslt.

Fortunately, all the problems were solved when I specified the source code directory with
'--with-libxml-src' that defines all the required directories automatically and the code
make, test and install were almost flawless.

However, below is the output from the test that may or may not be significant.

## Running general tests
bug-165 result
0a1,4 > runtime error: file ./bug-165.xsl line 6 element value-of > Variable 'pStyle' has not been declared. > runtime error: file ./bug-165.xsl line 6 element value-of > XPath evaluation returned no result.
## Running general tests without dictionaries
bug-165 result
0a1,4 > runtime error: file ./bug-165.xsl line 6 element value-of > Variable 'pStyle' has not been declared. > runtime error: file ./bug-165.xsl line 6 element value-of > XPath evaluation returned no result.
Comment 1 Daniel Veillard 2008-03-10 09:28:40 UTC
What is your bug report about ?
 - the configure errror ? 
 - the test error ?
it's unclear, and I have no OSX licence, for portability 
problems ask on the mailing-list.

Daniel
Comment 2 Andrew SG Rojek 2008-03-27 01:06:22 UTC
Thank you for the reply.
The error was generated whilst running the tests.

To follow up on the ./configure problem regarding libxml2 in more detail,
OSX has an old version of libxml2 pre-installed and libxslt would not compile.

I tried to identify the individual directories with:
     --with-libxml-prefix=/usr/local/bin
     --with-libxml-include-prefix=/usr/local/include/libxml2/libxml
     --with-libxml-libs-prefix=/usr/local/lib
but libxslt apparently could not find them.

I finally managed to install libxslt by identifying the source directory
of libxml2 using --with-libxml-src.

Hope this clarifies your question.
Comment 3 Daniel Macks 2008-03-27 08:24:06 UTC
Not sure it affects your test failure, but do you have /usr/local/bin in your PATH when you call ./configure? I'm pretty sure OS X compilers automatically search /usr/local/{include,lib}, but is libxslt's ./configure wants to learn about the local libxml2, it might be running the "xml2-config" program installed by libxml2 in /usr/local/bin (not a compiler test).
Comment 4 Andrew SG Rojek 2008-03-27 14:31:31 UTC
Thanks for reply.

Standard path are all pre-configured and /usr/local/... added to PATH. However, /usr/local/... added after /usr/... Could well find the older version before it finds the newer version. I've set-up PKG_CONFIG_PATH to /usr/local/lib first to search for newer versions as well.

Regarding the test results, I'm assuming the error is relate to python in libxml2. The library 'libxml2-python' is not automatically installed due to a ./configure error, but is in the process of being corrected and Daniel has published a bash script that installs the library. However, I'm not sure if the bash script is relevant to newer versions of libxml2 and that the error is related to python.

Configuring libxml2 and libxslt --without-python as well as specifying the source directory of libxml2 when configuring libxslt eliminates all the problems except for the test errors.