-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Linux, libpcap > 0.9
This came up recently (will link relevant issues). The resolution is to symlink the older version manually to the newer version. Error looks like this:
[root@host /]# ./bin/mongosniff
/opt/data/mongodb/install/bin/mongosniff: error while loading shared libraries: libpcap.so.0.9: cannot open shared object file: No such file or directory
This happens even when a newer version of libpcap is installed (1.0 for example). The resolution is to symlink the missing dependency to the newer version somewhere in the LD_LIBRARY_PATH
The easiest way to do this is to symlink the old version in the same folder as the newer version:
[root@host lib64]# cd /path/to/lib/libpcap.so.1.0.0 [root@host lib64]# ln -s libpcap.so.1.0.0 libpcap.so.1.0.0 libpcap.so.0.9 [root@host lib64]# ls -l libpcap.so* lrwxrwxrwx 1 root root 16 Sep 15 08:50 libpcap.so.0.9 -> libpcap.so.1.0.0 lrwxrwxrwx. 1 root root 16 Jul 26 21:39 libpcap.so.1 -> libpcap.so.1.0.0 -rwxr-xr-x 1 root root 225808 Nov 11 2010 libpcap.so.1.0.0