Koozali.org: home of the SME Server

libstdc++.so.5 Error

ChrisBuechler

libstdc++.so.5 Error
« on: March 29, 2004, 12:37:45 AM »
Can someone look at this and tell me what I'm doing wrong when trying to make Firebird SQL with 6.0 Beta 3

Thanks,
Chris Buechler

[root@linux1 files]# dir
FirebirdSS-1.5.0.4290-0.i686.rpm  FirebirdSS-1.5.0.4290-0.i686.tar.gz
[root@linux1 files]# tar -zxvf FirebirdSS-1.5.0.4290-0.i686.tar.gz
FirebirdSS-1.5.0.4290-0.i686/
FirebirdSS-1.5.0.4290-0.i686/scripts/
FirebirdSS-1.5.0.4290-0.i686/scripts/preinstall.sh
FirebirdSS-1.5.0.4290-0.i686/scripts/tarinstall.sh
FirebirdSS-1.5.0.4290-0.i686/scripts/tarMainInstall.sh
FirebirdSS-1.5.0.4290-0.i686/scripts/taruninstall.sh
FirebirdSS-1.5.0.4290-0.i686/scripts/tarMainUninstall.sh
FirebirdSS-1.5.0.4290-0.i686/scripts/postinstall.sh
FirebirdSS-1.5.0.4290-0.i686/scripts/preuninstall.sh
FirebirdSS-1.5.0.4290-0.i686/scripts/postuninstall.sh
FirebirdSS-1..5.0.4290-0.i686/scripts/rpmheader.txt
FirebirdSS-1.5.0.4290-0.i686/scripts/rpmfiles.txt
FirebirdSS-1.5.0.4290-0.i686/install.sh
FirebirdSS-1.5.0.4290-0.i686/buildroot.tar.gz
FirebirdSS-1.5.0.4290-0.i686/manifest.txt
[root@linux1 files]# dir
FirebirdSS-1.5.0.4290-0.i686      FirebirdSS-1.5.0.4290-0.i686.tar.gz
FirebirdSS-1.5.0.4290-0.i686.rpm
[root@linux1 files]# cd FirebirdSS-1.5.0.4290-0.i686
[root@linux1 FirebirdSS-1.5.0.4290-0.i686]# dir
buildroot.tar.gz  install.sh  manifest.txt  scripts
[root@linux1 FirebirdSS-1.5.0.4290-0.i686]# ./install.sh
 
Firebird super 1.5.0.4290-0.i686 Installation
 
Press Enter to start installation or ^C to abort
Extracting install data
 
--- Warning ----------------------------------------------
    The installation target directory: /opt/firebird
    Already contains a prior installation of InterBase/Firebird.
    This and files found in /usr/include and /usr/lib will be
    archived in the file : /opt/firebird 20040328 1319.tar.gz
 
Press return to continue or ^C to abort
 
Archiving...
Done.
Deleting...
Done.
Starting Firebird server: /opt/firebird/bin/fbmgr.bin: error while loading share
d libraries: libstdc++.so.5: cannot open shared object file: No such file or dir
ectory
                                                           [ FAILED ]
Fixing firebird's shell to /bin/sh
 
Starting Firebird server: /opt/firebird/bin/fbmgr.bin: error while loading share
d libraries: libstdc++.so.5: cannot open shared object file: No such file or dir
ectory
                                                           [ FAILED ]
Please enter new password for SYSDBA user: masterkey
 

Running ex to modify /etc/init.d/firebird
Install completed
[root@linux1 FirebirdSS-1.5.0.4290-0.i686]#
 
[list=][/list][list=]
Code: [Select]
[/list]

Offline smeghead

  • *
  • 563
  • +0/-0
libstdc++.so.5 Error
« Reply #1 on: March 29, 2004, 06:59:57 AM »
.. gleaned from a Google search:

Error:  libstdc++.so.5: cannot open shared object file: No such file or directory

Problem:  An application is running on Linux 7.x which uses gcc 3.2.x. It gets one of the following error messages:

libstdc++.so.5: cannot open shared object file: No such file or directory
libgcc_s.so.1: cannot open shared object file: No such file or directory

Explanation:  libstdc++.so.5 (the library for gcc 3.2.x) is installed in /usr/local/lib However, the system will only search /usr/lib (where the 2.95.0 and other older libraries are stored).


Solution:  create symbolic links to make the libraries appear in the old folder:

ln -s /usr/local/lib/libstdc++.so.5 /usr/lib/libstdc++.so.5
ln -s /usr/local/lib/libgcc_s.so.1 /usr/lib/libgcc_s.so.1

HTH
..................