Error- ld.so.1: expr: fatal: libgmp.so.3: open failed:No such file or directory

Hi Friends

I have a compiler(Sun Forte,I believe) running in my Solaris 9 box.
since y'day my development team is finding this error when they compile:

ld.so.1: expr: fatal: libgmp.so.3: open failed: No such file or directory

I ran a search for this file and found it in one of my file systems.Am appending the output herewith:

[!]root: find / -name libgmp.so.3
/oasis/ist75dev/pdir/lib/libgmp.so.3
[!]root: ls -l /oasis/ist75dev/pdir/lib/libgmp.so.3
lrwxrwxrwx 1 ist75dev oasis 41 Jul 15 19:41 /oasis/ist75dev/pdir/lib/libgmp.so.3 -> /home2/adamnjan/sun/lib/engines/libgmp.so
@ /
[!]root: ls -l /home2/adamnjan/sun/lib/engines/libgmp.so
-r-xr-xr-x 1 715 501 4092 Mar 28 01:41 /home2/adamnjan/sun/lib/engines/libgmp.so
@ /
[!]root: cd /home2
@ /home2
[!]root: ls -ld /home2
drwxrwxr-x 176 root 522 3584 May 22 23:30 /home2
@ /home2
[!]root: ls -ld /home2/ad
adamnjan admin
@ /home2
[!]root: ls -ld /home2/ad
adamnjan admin
@ /home2
[!]root: ls -ld /home2/adamnjan/
drwxr-xr-x 87 715 501 10752 Jul 16 03:24 /home2/adamnjan/
@ /home2
[!]root: ls -ld /home2/adamnjan/sun/
drwxrwxr-x 14 715 501 512 Apr 29 00:55 /home2/adamnjan/sun/
@ /home2
[!]root: ls -ld /home2/adamnjan/sun/lib
drwxrwxr-x 7 715 501 1536 May 27 03:06 /home2/adamnjan/sun/lib
@ /home2
[!]root: ls -ld /home2/adamnjan/sun/lib/engines
drwxrwxr-x 2 715 501 512 Mar 28 01:41 /home2/adamnjan/sun/lib/engines

The lib file is present and the link to it looks fine.
Any suggections on this issue??

Thanks
HG

add the path "/oasis/ist75dev/pdir/lib/" to your
LD_LIBRARY_PATH env variable

Hi Amrit

The path is available in LD_LIBRARY_PATH and am still getting the error.:confused:

HG

---------- Post updated at 11:28 AM ---------- Previous update was at 10:38 AM ----------

Amit,

It seems that my dev team is getting a new error.

libcrypto.so.0.9.8 open failed.

Attaching the below which might help :

[!]root: ldd /oasis/ist75dev/pdir/lib/libgmp.so.3
libcrypto.so.0.9.8 => (file not found)
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libc.so.1 => /usr/lib/libc.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Sun-Fire-V490/lib/libc_psr.so.1

Any idea how i can download this?

HG

---------- Post updated at 02:50 PM ---------- Previous update was at 11:28 AM ----------

Folks,

Can somebody chip in as it's a production issue.
Thanks -in- advance.

HG

---------- Post updated at 03:22 PM ---------- Previous update was at 02:50 PM ----------

Folks,

I copied libcrypto.so file from one of my other servers(Same OS version and hardware) and linked it to libcrypto.so.0.9.8.

The ldd command referred it correctly:

[!]root: ldd /oasis/ist75dev/pdir/lib/libgmp.so.3
libcrypto.so.0.9.8 => /usr/openwin/lib/libcrypto.so.0.9.8
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libc.so.1 => /usr/lib/libc.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Sun-Fire-V490/lib/libc_psr.so.1

But i am getting this error when i compile:

ld.so.1: expr: fatal: relocation error: file /usr/local/bin/expr: symbol __gmpz_init_set_str: referenced symbol not found

Stalemate...as of now...

HG