Restoring a deleted symbolic link

Use the following procedure to restore a symbolic link from the /usr/lib/libc.a library to the /usr/ccs/lib/libc.a path.

The information in this how-to scenario was tested using specific versions of AIX®. The results you obtain might vary significantly depending on your version and level of AIX.

  1. With root authority, set the LIBPATH environment variable to point to the /usr/ccs/lib directory by typing the following commands:
    # LIBPATH=/usr/ccs/lib:/usr/lib
    # export LIBPATH
    At this point, you should be able to execute system commands.
  2. To restore the links from the /usr/lib/libc.a library and the /lib directory to the /usr/lib directory, type the following commands:
    ln -s /usr/ccs/lib/libc.a /usr/lib/libc.a
    ln -s /usr/lib /lib
    At this point, commands should run as before. If you still do not have access to a shell, skip the rest of this procedure and continue with the next section, Restoring a deleted system library file.
  3. Type the following command to unset the LIBPATH environment variable.
    unset LIBPATH