The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[FreeBSD 6.2] libm.so.3 error

Discussion in 'General Discussion' started by Esky, Mar 9, 2008.

  1. Esky

    Esky Active Member

    Joined:
    Mar 15, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Netherlands
    cPanel Access Level:
    DataCenter Provider
    Last night cpanel broke down (probably after it ran upcp) and every 5 minute I get a mail saying it is down so I ran /scripts/upcp --force on the prompt and it ends with:

    Code:
    ==> Post Install Complete
    ...Done
    Updating Addons.../usr/libexec/ld-elf.so.1: /usr/local/lib/compat/pkg/libm.so.3: unsupported file layout
    ...Done
    Running postinstall scripts.../usr/libexec/ld-elf.so.1: /usr/local/lib/compat/pkg/libm.so.3: unsupported file layout
    /usr/libexec/ld-elf.so.1: /usr/local/lib/compat/pkg/libm.so.3: unsupported file layout
    Scanning suexec_log...Done
    ...Done
    
    how do I fix libm.so.3? what package do I need to reinstall?
     
  2. JamesSmith

    JamesSmith Well-Known Member

    Joined:
    Sep 17, 2003
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK, Luton
    Hi,

    First tip: Don't run automatic updates, turn those off from the Update Config.

    I've also experienced this same issue. I believe its caused by cPanel trying to update a compat package from ports. Its completely screwing everything on the server.
     
  3. Esky

    Esky Active Member

    Joined:
    Mar 15, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Netherlands
    cPanel Access Level:
    DataCenter Provider
    :)
    Thought I had turned it off, but apparantly not......

    how did you fix it?
     
  4. JamesSmith

    JamesSmith Well-Known Member

    Joined:
    Sep 17, 2003
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK, Luton
    I've reinstalled compat5x and it seems to have fixed it.
     
  5. uhhosting

    uhhosting Member
    PartnerNOC

    Joined:
    Jan 21, 2007
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Whoops, wrong account.
     
  6. JamesSmith

    JamesSmith Well-Known Member

    Joined:
    Sep 17, 2003
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK, Luton
    If you're running FreebSD 64bit, try running this:

    cd /usr/ports/misc/compat5x && make deinstall && make reinstall && mv /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg.old && ln -s /usr/local/lib/compat /usr/local/lib/compat/pkg

    And then restart cPanel:

    /etc/init.d/cpanel4 start

    It looks like cPanel is installing the 32bit compat5x port, rather than the 64bit port, which is generally already installed.

    Let me know how this goes for you.
     
  7. Esky

    Esky Active Member

    Joined:
    Mar 15, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Netherlands
    cPanel Access Level:
    DataCenter Provider
    million thanx, that fixed it and looks better than the fix cPanel suggested ;)
     
Loading...

Share This Page