AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Problems:Could not load program termdef/ps/df: Could not load module libc.a(shr.o).

    Posted Tue July 25, 2006 04:54 AM

    Originally posted by: SystemAdmin


    Hi, I have problems in a production machine, I cannot open a session, run commands ps,ls,df -k . The error is:
    Could not load program ps:
    Dependent module libc.a(shr.o) could not be loaded.
    Could not load module libc.a(shr.o).

    Can I help me??
    Please, it's very urgent.
    Thanks & Regards.
    Cristina
    #AIX-Forum


  • 2.  Re: Problems:Could not load program termdef/ps/df: Could not load module libc.a(shr.o).

    Posted Thu July 27, 2006 07:52 AM

    Originally posted by: SystemAdmin


    Cristina: this sounds like your system libraries have gotten messed up somehow. On my system df, for example, shows the following

    07:39:57jlane@unixi300d:~$ ldd /usr/bin/df
    /usr/lib/libcrypt.a(shr.o)
    /usr/lib/libc.a(shr.o)

    libc.a is a symlink

    07:40:09jlane@unixi300d:~$ ls -l /usr/lib/libc.a
    lrwxrwxrwx 1 bin bin 19 1988-02-24 17:46 /usr/lib/libc.a -> /usr/ccs/lib/libc.a
    07:40:23jlane@unixi300d:~$ ls -l /usr/ccs/lib/libc.a
    -r-xr-xr-x 2 bin bin 6814486 2005-01-14 18:38 /usr/ccs/lib/libc.a

    Can you mount the /usr filesystem on another box to check it out? Otherwise you'll have to boot into single-user mode.
    The problem could be any deviation from the expected layout as shown above, missing files, bad permissions, etc.

    HTH

    Jim Lane
    #AIX-Forum


  • 3.  Re: Problems:Could not load program termdef/ps/df: Could not load module libc.a(shr.o).

    Posted Thu July 27, 2006 12:01 PM

    Originally posted by: jubal


    This may not solve your problem, but it typically the first
    trick i try before debugging. installp installations can cause
    the rpm database to become out of date on AIX systems.

    updtvpkg examines every file delivered by installp
    to determine if it provides shared library support. It also
    updates the rpm database.

    updtvpkg is idempotent so it doesnt hurt to run it as a precaution.

    good luck
    #AIX-Forum


  • 4.  Re: Problems:Could not load program termdef/ps/df: Could not load module libc.a(shr.o).

    Posted Thu September 21, 2006 08:00 PM

    Originally posted by: SystemAdmin


    Hello - I'm having the same problem but I know that it is self-inflicted. Our AIX server is running 5.2 and nearing the time when it will be upgraded in about 6 months. The /usr directory was nearly filled up (98%) and I was concerned that it may become full before we do the upgrade. So in the interest of bying time I choose to move a few directories to /usr/local where there was plenty of space. Unfortunatly I moved /usr/css to /usr/local and immediately after deleting the /usr/css directory and attempting to symlink the /usr/local/css dir back to /usr I started getting the same errors.

    Can anyone give me some suggestions on how to recover from this?

    Thanks in advance.
    Bill in OKC
    #AIX-Forum


  • 5.  Re: Problems:Could not load program termdef/ps/df: Could not load module libc.a(shr.o).

    Posted Thu September 21, 2006 08:51 PM

    Originally posted by: SystemAdmin


    I figured it out. Set the LIBPATH variable to where the ccs directory was moved and then everything started working again. Moved it back to /usr and all is good.

    cta
    bill
    #AIX-Forum