1
2

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 3 years have passed since last update.

「libmpfr.so.4: cannot open shared object file」を解決したお話

Last updated at Posted at 2018-05-12

メタゲノムのk-mer カウントがしたくて,jellyfish-2.2.10 をインストールしようとしたところ,
./configureで以下のエラーが出た.

gawk: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory

どうやら,libmpfr.so.4 がないらしい.

$ ldd $(which awk)

linux-vdso.so.1
libreadline.so.7 => ~/.linuxbrew/lib/libreadline.so.7
libmpfr.so.4 => not found
libgmp.so.10 => ~/.linuxbrew/lib/libgmp.so.10 
libdl.so.2 => ~/.linuxbrew/lib/libdl.so.2 
libc.so.6 => ~/.linuxbrew/lib/libc.so.6 
libncursesw.so.6 => ~/.linuxbrew/lib/libncursesw.so.6 
~/.linuxbrew/lib/ld.so 

たしかに,libmpfr.so.4 は not found である.

brew でmpfr パッケージをさがしたら
~/.linuxbrew/Cellar/mpfr/4.0.1/lib/libmpfr.so.6があった.
libmpfr.so.6 はlibmpfr.so.4 を内包していると以下の記事に書いてあった.
gawk compiled against libmpfr.so.6, not libmpfr.so.4

そのため,そっちにシンボリックリンクつないであげることで解決.

$ ln -s ~/.linuxbrew/Cellar/mpfr/4.0.1/lib/libmpfr.so.6 libmpfr.so.4

これで3日間くらい悩んでました...笑

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?