AIX

AIX

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

 View Only
  • 1.  libstdc++.a

    Posted Wed September 13, 2006 06:23 PM

    Originally posted by: SystemAdmin


    I am trying to install a TrippLite shutdown app on my AIX 5.3 box, and during the install it says it cannot find the file libstdc++.a:

    "Starting PowerAlert Engine...
    exec(): 0509-036 Cannot load program /opt/TrippLite/PowerAlert/engine/pa because
    of the following errors:
    0509-150 Dependent module libstdc++.a(libstdc++.so.5) could not be loa
    ded.
    0509-022 Cannot load module libstdc++.a(libstdc++.so.5).
    0509-026 System error: A file or directory in the path name does not exi
    st."


    I have verified that the file libstdc++.a is present along the following paths:

    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/libstdc++.a
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/ppc64/libstdc++.a
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/pthread/libstdc++.a
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.0.0/pthread/ppc64/libstdc++.a

    I have placed the directories in the PATH of the root user, but the install program still says it cannot find the file. The root user has rwx access to all directories. I have worked with the PowerAlert software support people to no avail. Any help would be appreciated?
    thanks,

    Paul


  • 2.  Re: libstdc++.a

    Posted Thu September 14, 2006 07:07 AM

    Originally posted by: SystemAdmin


    Hi,

    I can't explain all issues here but some useful tips:

    1) ldd <your exec> will show you all the dynamic libraries with the paths the loader is going to look.

    2) check and set correctly your LIBPATH environment variable. LIBPATH will preprend /usr/lib:/lib (the default)

    3) Use "dump -Hv" teh relatives adn asolutes paths of the libraries of your executables will be shown. Remove any absolute paths (will generate pbs): to do this relink with -L (paths to look) and -l (names of libraries with no paths).

    And...
    Have a good day and Fun with AIX, best Unix OS should I say.(But I'm an IBMeur).


  • 3.  Re: libstdc++.a

    Posted Thu September 14, 2006 10:47 AM

    Originally posted by: SystemAdmin



    how do you list the files in an archive file like libstdc++.a?