Find the answer to your Linux question:
Results 1 to 3 of 3
Dear gentlemen, I am struggeling with a problem since 3 days with no results, the problem was similarly faced by other members but my case looks different. After I finished ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2012
    Posts
    1

    cannot open shared object file: No such file or directory


    Dear gentlemen,

    I am struggeling with a problem since 3 days with no results, the problem was similarly faced by other members but my case looks different.

    After I finished installing Oracle 10g express, I proceeded by installing BAAN Vc application on debian.

    When I reach a certain part of the installation I get the following error and the installation aborts.

    /usr2/cdrom/ln.0000/bse/install/bin/compress6.2: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
    /usr2/cdrom/ln.0000/bse/install/bin/bshell6.2: error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directory

    I installed and upgraded the library
    apt-get install libstdc++5
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libstdc++5 is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    Searched for the file libstdc++.so.5

    find / -name libstdc++.so.5 –print
    /usr/lib/libstdc++.so.5
    ls -l /usr/lib/libstdc++.so.5
    lrwxrwxrwx 1 root root 18 May 13 14:50 /usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.7
    find / -name libstdc++.so.5.0.7
    /usr/lib/libstdc++.so.5.0.7
    ls -l /usr/lib/libstdc++.so.5.0.7
    -rw-r--r-- 1 root root 829320 Jun 20 2010 /usr/lib/libstdc++.so.5.0.7
    Executed the library
    /usr/lib/libstdc++.so.5.0.7
    -bash: /usr/lib/libstdc++.so.5.0.7: Permission denied
    chmod 777 /usr/lib/libstdc++.so.5.0.7
    Executed the library
    /usr/lib/libstdc++.so.5.0.7
    Segmentation fault

    Rerun the installation and ended up with the same problem

    find / -name libpam.so.0 –print
    /lib/libpam.so.0
    /usr/lib/libpam.so.0

    Not sure if this is the right command
    apt-get install libpam0g
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libpam0g is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    echo $LD_LIBRARY_PATH
    giving blank line

    Please help

  2. #2
    Just Joined!
    Join Date
    May 2012
    Posts
    9

    Environmental variables

    Hi

    You can use Environmental variable setup using the "declare"
    command . for example

    declare -x PWD="/root"
    declare -x SHELL="/bin/bash"

    In such way you can try for $LD_LIBRARY_PATH

    declare -x $LD_LIBRARY_PATH="/path which you installed libstdc++.so.5"

    To set the variable permanently kindly update the same in user's .profile file .

  3. #3
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    586
    As user root, do:
    Code:
    cd /usr/lib
    ln -s libstdc++.so.5.0.7  libstdc++.so.5
    ls -l libstdc++.so.5*

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •