Share

12 Responses to “How To Fix symbol lookup error: /usr/sbin/httpd2-prefork: undefined symbol: apr_ldap_ssl_init”

    12 Comments:
  1. Carlo says:

    Hey, I have the same problem. After I updated to Ubuntu 8.10 apache stopped working! I tried your solution to re-link the files but with no luck! Do you have any other suggestion?

  2. Well, it's hard to say without playing around with that particular system. I'd say double check everything, and if that doesn't work, try to work out another solution. But you already knew that. :-/

  3. The damn problem keeps coming back every once in a while. People, what keeps doing this!?

  4. Cody Erben says:

    Based off this post, I was able to poke around and the the following resolved my issues with this on Ubuntu 8.10:

    sudo aptitude reinstall libapr1 libaprutil1

    Thanks for posting your original findings…it helped point me in the right direction !

  5. Luis says:

    I had the same problem in Slackware 12.1 with default installation.

    The first link I tried to re-issue was the right one:
    ln -sf libaprutil-1.so.0.2.12 libaprutil-1.so.0

    Apparently the link is the same as the old, but httpd now runs.

    Thank you.

  6. Jes struck says:

    hey i have tried youre approach but it still not working for me

  7. Rhys Ulerich says:

    I also ran into this problem, but the root cause was that I'd built the Apache Portable Runtime in /usr/local for some other development work, completely forgot about it, and apache2 was picking up libraries from /usr/local/lib before /usr/lib.

  8. Mudassir says:

    i have still following error when starting apache

    /usr/sbin/apache2: symbol lookup error: /usr/sbin/apache2: undefined symbol: apr_os_uuid_get

  9. Mark says:

    If this does not help, check by 'ldd' whether your subversion Apache module is compiled with LDAP support enabled. If so, recompile apr-util with –with-ldap.

  10. Gonzalo says:

    I was having this problem all day long. I'm using a VPS with ubuntu-8.10-i386-minimal and being a total Linux newbie like me, it was a nightmare to fix it.

    I searched in a lot of places but I kept having the same problems. After all, I combined all the commands that I found and it worked :P

    sudo aptitude reinstall libapr1 libaprutil1
    sudo a2enmod ldap
    cd /usr/lib/
    sudo ln -sf libaprutil-1.so.0.2.12 libaprutil-1.so.0
    sudo ln -sf libapr-1.so.0.2.12 libapr-1.so.0
    sudo /etc/init.d/apache2 stop
    sudo /etc/init.d/apache2 start

    I hope it works for you!

  11. newbie says:

    tried all those things..still doesnt work..can anyone help..its urgent..

    • ambinanitelo says:

      I have the same problem and something was wrong with apr version.

      ls -l libapr* gives me

      libapr-1.a
      libapr-1.la
      libapr-1.so -> libapr-1.so.0.4.2
      libapr-1.so.0 -> libapr-1.so.0.4.2
      libapr-1.so.0.3.8
      libapr-1.so.0.4.2
      libaprutil-1.so.0 -> libaprutil-1.so.0.3.9
      libaprutil-1.so.0.3.9

      so there is 0.4.2, 0.3.8 and 0.3.9 – Three libapr versions at the same time!

      I did sudo ln -sf libapr-1.so.0.3.8 libapr-1.so.0 and it resolves my problem – apache starts now.

Leave a Reply

Connect with Facebook