Dear ladies and gentlemen,
First ,I extend my thanks to
Mr.B Ganesh for shedding some light in this problem(mentioned below).As he
recomended to add the required shared library in the LD_LIBRARY_PATH.,I've
also tried it but without any sucess.Then,one website recommended me to try
ldconfig command which they recommended for FreeBSD Linux .They mentioned
that to add a shared library one need to use :"ldconfig -m <the path to
shared library>".But there is no "ldconfig -m" facility in the kernel
(Kernel version:2.4.8,Mandrake Linux 8.1 not as mentioned below).All I have
is"ldconfig -l" command to add libraries individully,which didn't add the
reqired library I wanted.I then used the setenv() function(mentioned in
stdlib.h) to set the LD_LIBRARY_PATH.Surprisingly,when I wanted to test the
the result by using getenv() function,the result was the particular path was
added to the environment variable(as from the value returned by getenv())
but I am back to the square one.Please suggest me a remedy as the
software(gdbm in which the problem of shared files) is very imporatnt for
the project.
Ps:I forgot to mention:I checked it using whereis command and it
mentioned that three files libgdbm.so.2 is installed in /usr/lib/ and
libgdbm.so.3(which is the problematic shared file) and libgdm.so is in
/usr/local/lib/. I've reinstalled the whole package but without much sucess.
----- Original Message -----
From: "BGanesh" <bga@xxxxxxxx>
To: "Sachin" <sachinr@xxxxxxx>; "Linux&&Madras" <ilugc@xxxxxxxxxxxxxxxxxx
Sent: Thursday, December 26, 2002 11:10 PM
Hello,come
I am usind gdbm for my
project.Though I am able to install correctly,I am unable to run the
application because of denied access permission to a shared library( the
error message reads as:"Error while loading shared library:libgdbm.so.3
.Cannot open shared object file.No such file or directory").What am I
supposed to do?
Check is the library is installed via find. Looks like the lib paths are
messed up.
Also how
one locate the path for shared Library.I am using Mandrake Linux 8.1
(Kernel Version 2.78)
you can use (without the quotes) "whereis ibgdbm.so" to locate it. Then
export that path to LD_LIBRARY_PATH (look up google)
whereis, which, and apropos are three /very/ handy commands
regards
BGa
--
We will find a way, or we will make one - Hannibal