Results 1 to 7 of 7

Thread: configure cannot find libxml2

  1. #1

    Default configure cannot find libxml2

    I wan to rebuild a source rpm package (cfengine). configure doesn't find libxml2 but I have already installed libxml2 and libxml2-devel. I don't know why...

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,999

    Default Re: configure cannot find libxml2

    Please do nott (only) tell stories, but show the computer text you get so people here can make their own assessments of your problem, not influenced by your interpretation.

    Copy/paste the text (prompt, command, output and next prompt) in a post between CODE tags. You get he CODE tags by clicking on the # button in the tool bar of the post editor.
    Henk van Velden

  3. #3
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: configure cannot find libxml2

    daylight1 wrote:
    >
    > I wan to rebuild a source rpm package (cfengine). configure doesn't find
    > libxml2 but I have already installed libxml2 and libxml2-devel. I don't
    > know why...
    >
    >

    Better approach would have been to install it from the repos
    http://software.opensuse.org/package/cfengine
    --
    GNOME 3.6.2
    openSUSE Release 12.3 (Dartmouth) 64-bit
    Kernel Linux 3.7.10-1.16-desktop

  4. #4

    Default Re: configure cannot find libxml2

    More specific what I'm doing.

    Code:
    > rpmbuild --rebuild cfengine-3.5.2-65.1.src.rpm
    Installing cfengine-3.5.2-65.1.src.rpm
    warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID a0e46e11
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7504
    + umask 022
    + cd /usr/src/packages/BUILD
    + cd /usr/src/packages/BUILD
    + rm -rf cfengine-3.5.2
    + /usr/bin/gzip -dc /usr/src/packages/SOURCES/cfengine-3.5.2.tar.gz
    + tar -xf -
    + STATUS=0
    Code:
    [...]
    Code:
    checking acl/libacl.h presence... yes
    checking for acl/libacl.h... yes
    checking for xmlFirstElementChild in -lxml2... no
    configure: error: Cannot find libxml2
    error: Bad exit status from /var/tmp/rpm-tmp.62819 (%build)
    
    
    
    
    RPM build errors:
        InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID a0e46e11
        Bad exit status from /var/tmp/rpm-tmp.62819 (%build)

  5. #5

    Default Re: configure cannot find libxml2

    And which versions of libxml2 and libxml2-devel do you have?

    Apparently, xmlFirstElementChild is only available since libxml 2.7.3:
    https://github.com/sparklemotion/nokogiri/issues/303

    And cfengine doesn't support older versions anymore:
    https://github.com/cfengine/core/pull/340

  6. #6

    Default Re: configure cannot find libxml2

    The installed versions are older. Both packages have the version 2.6.23-15.37.1. That means that I have no chance to get it working?

  7. #7

    Default Re: configure cannot find libxml2

    Quote Originally Posted by daylight1 View Post
    The installed versions are older. Both packages have the version 2.6.23-15.37.1. That means that I have no chance to get it working?
    Apparently not.

    Either build an older version of cfengine, or install newer libxml2 packages.

    On which distribution/version are you trying to build, btw?
    Even 10.2 (7 years old!) included a higher version (2.6.26) already...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •