×
UNIX.COM Login
Username:
Password:  
Show Password






👤


Linux

RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Cannot open shared object file: No such file or directory

👤 Login to reply

 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-23-2017
muzaffar.k muzaffar.k is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 23 August 2017, 9:47 AM EDT
Location: bangalore
Posts: 38
Thanks: 0
Thanked 1 Time in 1 Post
Cannot open shared object file: No such file or directory

Hi,

While running tcpdump command on my Fedora 16 machine I am get shared library issue.



Code:
[root@mindlanf-4 ~]# tcpdump
tcpdump: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory

[root@mindlanf-4 ~]# which tcpdump
/usr/software/sbin/tcpdump

I have tried installing the above lib but still it fails,



Code:
[root@mindlanf-4 ~]# yum install libcrypto*
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
Package cryptopp-5.6.1-5.fc16.x86_64 already installed and latest version
Package openssl-1.0.0j-1.fc16.x86_64 already installed and latest version
Package cryptominisat-libs-2.9.3-1.fc16.x86_64 already installed and latest version
Nothing to do
[root@mindlanf-4 ~]#

Let me know if there is anything I am missing to install. please help me to resolve this issue.

Thank you.
Muzaffar
Sponsored Links
    #2  
Old 08-23-2017
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 15 July 2018, 3:56 PM EDT
Location: Aachen, Germany
Posts: 13,051
Thanks: 444
Thanked 4,006 Times in 3,683 Posts
Does a file libcrypto.so.6(.something) exist in the libraries' directories, and / or possibly have a link libcrypto.so.6 pointing to it?

Last edited by RudiC; 08-23-2017 at 09:29 AM..
Sponsored Links
    #3  
Old 08-23-2017
muzaffar.k muzaffar.k is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 23 August 2017, 9:47 AM EDT
Location: bangalore
Posts: 38
Thanks: 0
Thanked 1 Time in 1 Post
Below is the output of ls, let me know if i need to create any softlink



Code:
[root@mindlanf-4 ~]# ls -l /usr/software/sbin/tcpdump
lrwxrwxrwx 1 root root 17 May 25 16:19 /usr/software/sbin/tcpdump -> /usr/sbin/tcpdump
[root@mindlanf-4 ~]# tcpdump
tcpdump: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
[root@mindlanf-4 ~]#

    #4  
Old 08-23-2017
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 15 July 2018, 3:56 PM EDT
Location: Aachen, Germany
Posts: 13,051
Thanks: 444
Thanked 4,006 Times in 3,683 Posts
I was talking of the libraries' directory, NOT the binaries'.
Try sth like


Code:
sudo ldd /usr/sbin/tcpdump 
[sudo] password for user: 
    linux-vdso.so.1 =>  (0x00007ffd54f9b000)
    libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f00628b3000)
    libpcap.so.0.8 => /usr/lib/x86_64-linux-gnu/libpcap.so.0.8 (0x00007f0062671000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f00622a6000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f00620a2000)
    /lib64/ld-linux-x86-64.so.2 (0x000055c20ca58000)
ls -la /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
-rw-r--r-- 1 root root 2361856 Mai 19 16:18 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
find /lib -iname \*libcrypt\* -ls
   187146     40 -rw-r--r--   1 root     root        38428 Jun 16 22:36 /lib/i386-linux-gnu/libcrypt-2.23.so
   187168      0 lrwxrwxrwx   1 root     root           16 Jun 16 22:36 /lib/i386-linux-gnu/libcrypt.so.1 -> libcrypt-2.23.so
   133998   2308 -rw-r--r--   1 root     root      2361856 Mai 19 16:18 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
   168682     40 -rw-r--r--   1 root     root        39224 Jun 16 22:57 /lib/x86_64-linux-gnu/libcrypt-2.23.so
   168764      0 lrwxrwxrwx   1 root     root           16 Jun 16 22:57 /lib/x86_64-linux-gnu/libcrypt.so.1 -> libcrypt-2.23.so
   134132    156 -rw-r--r--   1 root     root       158848 Aug 21  2015 /lib/x86_64-linux-gnu/libcryptsetup.so.4.6.0
   135567      0 lrwxrwxrwx   1 root     root           22 Aug 21  2015 /lib/x86_64-linux-gnu/libcryptsetup.so.4 -> libcryptsetup.so.4.6.0

and post your results.
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cannot open shared object: when starting nrpe lhareigh890 UNIX for Dummies Questions & Answers 1 01-08-2013 04:07 PM
fatal: cannot open file `TNAME' for reading (No such file or directory) kunwar Shell Programming and Scripting 1 03-11-2011 07:03 PM
libodbc.so.1: cannot open shared object file: No such file or directory govindts Red Hat 1 09-20-2010 06:51 PM
libRmath.so: cannot open shared object file: No such file or directory cdbug Programming 6 02-28-2009 10:43 PM
Shared Object File sarwan Linux 0 10-07-2005 05:27 AM



All times are GMT -4. The time now is 12:56 AM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.