DIYMacServer » Apache

3 posts

Incompatible library version error on apache start

started at 07 May 2009
started by aratcliffe
last reply from richard
  • aratcliffe
    07 May 2009
    #

    Apache successfully builds on my system but fails to start with the following error:

    [adam@GUIWSM0K httpd-2.2.11]$ sudo apachectl start
    dyld: Library not loaded: /opt/local/lib/libaprutil-1.0.dylib
    Referenced from: /usr/sbin/httpd
    Reason: Incompatible library version: httpd requires version 4.0.0 or later, but libaprutil-1.0.dylib provides version 3.0.0
    /usr/sbin/apachectl: line 78: 59729 Trace/BPT trap $HTTPD -k $ARGV

    Running otool on the library file gives the following output:

    [adam@GUIWSM0K httpd-2.2.11]$ sudo otool -L /opt/local/lib/libaprutil-1.0.dylib/opt/local/lib/libaprutil-1.0.dylib:
    /opt/local/lib/libaprutil-1.0.dylib (compatibility version 4.0.0, current version 4.4.0)
    /opt/local/lib/db46/libdb-4.6.dylib (compatibility version 0.0.0, current version 0.0.0)
    /opt/local/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0)
    /opt/local/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
    /opt/local/lib/libapr-1.0.dylib (compatibility version 4.0.0, current version 4.3.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.3)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

    I'm not overly familiar with building software from source so am a bit lost as to where to go from here.

    Any help would be much appreciated.

    Cheers
    Adam

  • aratcliffe
    07 May 2009
    #

    It seems I was missing the --with-included-apr configure option. All's good now!

    Cheers
    Adam

  • 07 May 2009
    #

    Thanks for letting us know you solved it.

Reply

You must log in to post.