#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    7
    Rep Power
    0

    Postgres wont start ZLIB_1.2.3.3 not found


    Hi

    We ran some updates on our Reddat 6.4 Server and ever since then postgres(9.1.8) would not start. It would give the following error when trying to start.
    /opt/PostgreSQL/9.1/bin/postgres: /lib64/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /opt/PostgreSQL/9.1/bin/../lib/libxml2.so.2)
    I get the same error when doing
    Code:
    ldd /opt/PostgreSQL/9.1/bin/../lib/libxml2.so.2
    I can say that zlib-1.2.3-27.el6.x86_64 was upgraded to 1.2.3-29.el6.x86_64

    and libxml2-2.7.6-8.el6_3.3.x86_64 was upgraded to 2.7.6-12.el6_4.1.x86_64

    The strange thing is if I downgrade postgres to 9.1.4 it works fine even with the updated libs.

    Any ideas ?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    7
    Rep Power
    0
    Hi I solved this thanks to
    jehahn on reddit /r/sysadmin/

    Try this:

    export LD_LIBRARY_PATH=/opt/PostgreSQL/9.1/lib:$LD_LIBRARY_PATH

    (That should be one line)

    Then start postgres. If that works then whoever built your postgres installation did it wrong, and it's not pulling in its libraries properly. There are ways to fix this at build time (e.g. setting LD_RUN_PATH), but without rebuilding you'll need to tweak whatever script you're using to start postgres to have that line in it. (If you're not using a script to start postgres, you'll probably want to write one.)

IMN logo majestic logo threadwatch logo seochat tools logo