Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error while installing firebird

Status
Not open for further replies.

nnaga

Technical User
Jun 12, 2003
13
IN
hai guys,

I am trying to install FireBird database in my pc. I am getting the following error during installation.
# rpm -ivh FirebirdCS-1.5.0.4290-0.i686.rpm
Preparing... ########################################### [100%] 1:FirebirdCS ########################################### [100%] /opt/firebird/bin/gsec: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory error: execution of %post scriptlet from FirebirdCS-1.5.0.4290-0 failed, exit status 127

My OS is Redhat 7.2.

Thanks in advance for your help.

NNaga.
 
Did you look for libstdc++.so.5 ?
Code:
locate libstdc++.so.5
should print at least /usr/lib/libstdc++.so.5
If nothing occours try
Code:
locate libstdc++.so.
 
Hai StefanWagner,

I tried locating but no result so I tried to give link as per this instruction

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 seach /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

but there is no libstdc++.so.5 in /usr/local/lib at all.

can you tell how to get libstdc++.so.5.

Rgds,
NNaga.
 
yes:

It's one of the most important libraries on linux (read: library standard c++ ).

You shouldn't in any case delete your old lib. This could break your system. But installing a parallel one (libstdc++.so.5 and libstdc++.so.3 i.e.) should work.

libgcc should be found at gcc.gnu.org too.
 
apt good, rpm bad (that's some debian propaganda for sleipner214 ;-))

personally, i hate the trial-and-error process of rpm -ivh <file>, going to rpmfind.net or rpm.pbone.net to solve dependancy issue, download another rpm, rpm -ivh <file1> <file2>, going to rpmfind.net or rpm.pbone.net to solve dependancy issue, download another rpm, rpm -ivh <file1> <file2> <file3>.... not sure if mandrake's 'urpmi' scripts are packaged for redhat, fedora, or other rpm-based distro. i think that's one of mandrake's biggest attractions though (being able to 'urpmi <package>' and have it do all the dirty work for you).

apt has been ported to redhat 9 and fedora. i highly recommend it if you are running an rpm-based system. you can find info on it at
----
JBR
 
Hi flugh,

How it is related to my problem, pls explain.

Rgds,
NNaga.
 
Lines 4 through 8 of your post:
[tt]
# rpm -ivh FirebirdCS-1.5.0.4290-0.i686.rpm
Preparing... ########################################### [100%] 1:FirebirdCS ########################################### [100%] /opt/firebird/bin/gsec: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory error: execution of %post scriptlet from FirebirdCS-1.5.0.4290-0 failed, exit status 127
[/tt]
It's just that rpms always seemed to give me headaches when installing, regardless of the vendor.

Also:
[tt]
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
[/tt]
I would rather suggest editting /etc/ld.so.conf and adding the desired lib path to it, then running ldconfig (make it 'ldconfig -v' if you want to see some verbose output).

Also:
[tt]
but there is no libstdc++.so.5 in /usr/local/lib at all.

can you tell how to get libstdc++.so.5.
[/tt]
I searched at and found that libstdc++ provides libstdc++.so.5. You can find the rpm here:
ftp://fr2.rpmfind.net/linux/redha/7.2/en/os/i386/RedHat/RPMS/libstdc++-2.96-98.i386.rpm
Looks like there is a security update for it too, but the links led to 404's.

----
JBR
 
Thanks a lot, problem got solved by installing the said rpm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top