Sponsored Content
Operating Systems Linux Cannot open shared object file: No such file or directory Post 303002384 by RudiC on Wednesday 23rd of August 2017 09:57:15 AM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
SWITCH_ROOT(8)						       System Administration						    SWITCH_ROOT(8)

NAME
switch_root - switch to another filesystem as the root of the mount tree SYNOPSIS
switch_root [-hV] switch_root newroot init [arg...] DESCRIPTION
switch_root moves already mounted /proc, /dev and /sys to newroot and makes newroot the new root filesystem and starts init process. WARNING: switch_root removes recursively all files and directories on the current root filesystem. OPTIONS
-h, --help show help and exit -V, --version show version number and exit RETURN VALUE
switch_root returns 0 on success and 1 on failure. NOTES
switch_root will fail to function if newroot is not the root of a mount. If you want to switch root into a directory that does not meet this requirement then you can first use a bind-mounting trick to turn any directory into a mount point: mount --bind $DIR $DIR SEE ALSO
mount(8) chroot(2) init(8) mkinitrd(8) AUTHORS
Peter Jones <pjones@redhat.com> Jeremy Katz <katzj@redhat.com> Karel Zak <kzak@redhat.com> AVAILABILITY
The switch_root command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. util-linux June 2009 SWITCH_ROOT(8)
All times are GMT -4. The time now is 01:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy