のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

wsl ubuntu 16.04 fontview error while loading shared libraries: libraqm.so.0: cannot open shared object file: No such file or directory

m_fujii@None53-Surface:~/github/fontview
$ ./build/fontview
./build/fontview: error while loading shared libraries: 
  libraqm.so.0: cannot open shared object file: No such file or directory
m_fujii@None53-Surface:~/github/fontview
$ ldd ./build/fontview
        linux-vdso.so.1 =>  (0x00007ffffb943000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007ff6ff190000)
        libharfbuzz.so.0 => /usr/local/lib/libharfbuzz.so.0 (0x00007ff6feefa000)
        libfribidi.so.0 => /usr/lib/x86_64-linux-gnu/libfribidi.so.0 (0x00007ff6fece0000)
        libraqm.so.0 => not found
  (略)

sudo ldconfig -vをしたら、表示できるようになった。

$ sudo ldconfig

$ sudo ldconfig -v
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
        libfakeroot-0.so -> libfakeroot-tcp.so
/usr/local/lib:
        libraqm.so.0 -> libraqm.so.0.500.0
        libharfbuzz.so.0 -> libharfbuzz.so.0.10501.0
        libharfbuzz-icu.so.0 -> libharfbuzz-icu.so.0.10501.0