0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mongosniffで「libpcap.so.0.9: cannot open shared object file」の対処法

Last updated at Posted at 2014-01-28

mongosniffコマンドで以下のように怒られた時の対処法

$ ./bin/mongosniff: error while loading shared libraries: libpcap.so.0.9: cannot open shared object file: No such file or directory

とりあえずlibpcap-develを入れる

$ sudo yum install libpcap-devel

これでlibpcap-develの0.9がインストールされればよいんだけど、CentOS6とかだと1.系がインストールされてしまい、依然としてlibpcap.so.0.9は見つからない状態。

そんな場合は強引に1.系のライブラリを0.9としてリンクしてやればよい。

まずはライブラリを探す。

$ find / -name "libpcap.so*"
/usr/lib64/libpcap.so.1
/usr/lib64/libpcap.so.1.4.0
/usr/lib64/libpcap.so

であとはmongosniffが欲しがっているlibpcap.so.0.9のリンクを作ってやればよい

$ ln -s /usr/lib64/libpcap.so /usr/lib64/libpcap.so.0.9

とりあえずこれで無難に動いてますよ~

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?