ntpd fails to start on RHEL 5.3, not finding library that IS there.

ntpd fails to start on RHEL 5.3, not finding library that IS there. I don't get why since I can see the file is actually in the sytem and it's the same location as what's in ldd. Does anyone have any ideas? I've cut and pasted some info below so you can see what I see.

# service ntpd start
Starting ntpd: ntpd: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
                                                           [FAILED]
# find / -name libcrypto.so.6 -print
/lib/libcrypto.so.6
/lib64/libcrypto.so.6
# ls -l `find / -name libcrypto.so.6 -print`
lrwxrwxrwx 1 root root 19 Aug 11  2010 /lib64/libcrypto.so.6 -> libcrypto.so.0.9.8e
lrwxrwxrwx 1 root root 19 Oct  1 14:56 /lib/libcrypto.so.6 -> libcrypto.so.0.9.8e
# find / -name libcrypto.so.0.9.8e -print
/lib/libcrypto.so.0.9.8e
/lib64/libcrypto.so.0.9.8e
# ls -l `find / -name libcrypto.so.0.9.8e -print`
-rwxr-xr-x 1 root root 1365504 Dec 16  2008 /lib64/libcrypto.so.0.9.8e
-rwxr-xr-x 1 root root 1295264 Dec 16  2008 /lib/libcrypto.so.0.9.8e
# ldd /usr/sbin/ntpd
        libm.so.6 => /lib64/libm.so.6 (0x00002ae68eada000)
        libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00002ae68ed5d000)
        libcap.so.1 => /lib64/libcap.so.1 (0x00002ae68f0ae000)
        libc.so.6 => /lib64/libc.so.6 (0x00002ae68f2b3000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002ae68f609000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00002ae68f80d000)
        /lib64/ld-linux-x86-64.so.2 (0x00002ae68e8bd000)
#
teckwiz01Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

upanwarCommented:
#ldconfig
This may help you if lib files are there.
upanwarCommented:
If still you are not getting success then since you are using the RHEL 5.3 then you can know the package which containes the the dependent library file by executing the below given command.

# rpm -q --redhatprovides libgsl.so.0

you need rpmdb-redhat package to be installed on your system to use this option.

After getting the package you can check wheter that package is installed or not.

rpm -qa | grep -i <Package name>

If package is not installed then you can install that package with yum or rpm command.

rpm -ivh <Package name>

or

yum install <Package Name>
upanwarCommented:
Oops paste wrong command in my earlier comment.

# rpm -q --redhatprovides libcrypto.so.6
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

teckwiz01Author Commented:
I've never seen that --redhatprovides option before, but this is what I'm getting.

rpm -q --redhatprovides libcrypto.so.6
no package provides libcrypto.so.6
teckwiz01Author Commented:
Maybe you meant "--whatprovides"?
teckwiz01Author Commented:
It is..

rpm -q --whatprovides libcrypto.so.6
openssl-0.9.8e-7.el5
upanwarCommented:
--whatprovides and --redhatprovides  are same options but I have always treid --redhatprovides.

If you have installed rpmdb-redhat  in your box then --redhatprovides would give you the package name which contains the lib files. I have attached a doc which suggest to use --redhatprovides.

Since you have got package name openssl-0.9.8e-7.el5 have you chaecked whether it is installed.

 Deployment-Guide-RHEL5.pdf
teckwiz01Author Commented:
OK... Oh, and btw, I havent responded cause the box crashed and on reboot, it would not come up. Had to reimage and do all over again. I'm still having issues with ntp, but not the same. It starts ok, but when look at status it is not up.
upanwarCommented:
After staring the ntp service have you seen something in logs related to service.

It seems you are getting message that ntp starting but actually it is not getting start.

/var/log/messages may give some clue.
upanwarCommented:
After staring the ntp service have you seen something in logs related to service.

It seems you are getting message that ntp starting but actually it is not getting start.

/var/log/messages may give some clue.
upanwarCommented:
Have you got some clue in /var/log/messages for your ntp issue ? if so then please show us.

and could you please show us output of below given command:

# ntpdare -d <NTP server  IP/Hostname>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
teckwiz01Author Commented:
Sorry, the system crashed. I had to rebuild it and upon doing so, the problem was solved. Whatever was wrong, I won't be able to identify any longer.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.