Cannot open shared object file: No such file or directory


 
Thread Tools Search this Thread
Operating Systems Linux Cannot open shared object file: No such file or directory
# 1  
Old 08-23-2017
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
# 2  
Old 08-23-2017
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 10:29 AM..
# 3  
Old 08-23-2017
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
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cannot open shared object: when starting nrpe

Got this error when starting nrpe Starting nagios-nrpe: nagios-nrpe/usr/sbin/nrpe: error while loading shared libraries: libssl.so.0.9.8: Pls advise ---------- Post updated at 04:05 PM ---------- Previous update was at 04:05 PM ---------- os is Debian lenny ---------- Post updated... (1 Reply)
Discussion started by: lhareigh890
1 Replies

2. Shell Programming and Scripting

Awk: cannot open file (No such file or directory)

Hello folks! I am new to Shell and awk scripting. This is my shell script that receives a string as an input from the user from the stdin. #!bin/sh printf "Enter your query\n" read query cmd=`echo $query | cut -f 1 -d " "` input_file=`echo $query | cut -f 2 -d " "` printf $input_file... (10 Replies)
Discussion started by: radiohead_
10 Replies

3. Shell Programming and Scripting

Cannot open [No such file or directory]

I am seeking help on one script that I created to celan up database audit files. The error returned is $./clean_audit.sh: /opt/oracle/logs/audit_clean.log: cannot open The same script is working on other 2 or 3 servers. But not working on other 4 servers. All servers are Oracle Linux. Here is... (21 Replies)
Discussion started by: duke0001
21 Replies

4. Shell Programming and Scripting

fatal: cannot open file `TNAME' for reading (No such file or directory)

Hi, I am running this command through a shell script and getting the error mentioned in the subject line: testing.awk -f x.txt TNAME My testing.awk file contains something like ++++++++++++++++++ #!/usr/bin/awk -f BEGIN{ TAB_NAME="INSERT_ONE_" ARGV ; } if ( $1=="JAM_ONE" &&... (1 Reply)
Discussion started by: kunwar
1 Replies

5. Red Hat

shared object

Hi, I would like to create a shared object ( .so). This shared object 1. uses the functions from a library. 2. Also it should be able to use the global variable in an app To achieve this what should I do ? 1) To use the functions in the library should I give the -ld option while... (1 Reply)
Discussion started by: rvan
1 Replies

6. Red Hat

libodbc.so.1: cannot open shared object file: No such file or directory

We are trying to install third party software on this unix server... Here is the error message we are getting... error while loading shared libraries: libodbc.so.1: cannot open shared object file: No such file or directory It seems like odbc driver is not installed... >rpm -q unixODBC... (1 Reply)
Discussion started by: govindts
1 Replies

7. UNIX for Advanced & Expert Users

how to open a last modified file in a directory

how to directly open a last modified file in a directory? Please help (5 Replies)
Discussion started by: apsprabhu
5 Replies

8. Programming

libRmath.so: cannot open shared object file: No such file or directory

% locate Rmath /m/backup/backup/lib/R/include/Rmath.h /usr/lib/R/include/Rmath.h % gcc -g -o stand stand.c -I/usr/lib/R/include/ -lRmath -lm % ./stand ./stand: error while loading shared libraries: libRmath.so: cannot open shared object file: No such file or directory What's the trouble... (6 Replies)
Discussion started by: cdbug
6 Replies

9. UNIX for Dummies Questions & Answers

copy file from UNIX to shared directory

Hi, I want to copy a file from unix machine to a shared windows directory. i tried using the ftp command but i was able to transfer the file only to my local directory. Is there any way we can transfer/copy the files from unix to windows shared directory.......... Please help. Thanks (5 Replies)
Discussion started by: sireesha15
5 Replies

10. Linux

Shared Object File

Hi All, I created the share object file using gcc -shared -fpic mypp.cpp -o myp.so but, pls tell me how to link this .so file to my client program. Thanks (0 Replies)
Discussion started by: sarwan
0 Replies
Login or Register to Ask a Question