Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-526

mongosniff: depends strictly on libpcap versions, fixing

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 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
      

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            adamc Adam Comerford
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 27 weeks, 3 days ago