在 Fedora 26 安裝 Blender 後,從「程式選單」開啟 Blender 卻沒有出現任何視窗。再從「終端機」開啟以觀察錯誤訊息,
[SiB@Core-i7 ~]$ blender
blender: error while loading shared libraries: libtbb.so.2: cannot open shared object file: No such file or directory.gz
似乎是 libtbb.so.2 這個函式庫未安裝。或保險起見用 ldd 查詢是否有其它函式庫也沒裝,
[SiB@Core-i7 ~]$ ldd /usr/bin/blender
linux-vdso.so.1 (0x00007ffdb7dbb000)
libpng16.so.16 => /lib64/libpng16.so.16 (0x00007f78dcdda000) libz.so.1 => /lib64/libz.so.1 (0x00007f78dcbc3000)
· · · · ·
libopenvdb.so.4.0 => /lib64/libopenvdb.so.4.0 (0x00007f78d76d4000)
libtbb.so.2 => not found
libAlembic.so.1.7 => /lib64/libAlembic.so.1.7 (0x00007f78d72cc000)
· · · · ·
libfreebl3.so => /lib64/libfreebl3.so (0x00007f78b160a000)
只看到 libtbb.so.2 這個函式庫未安裝,再查一下該安裝的套件名稱。
[root@Core-i7 ~]# dnf provides *libtbb.so*
opencl-1.2-intel-cpu-1:6.4.0.25-1.x86_64 : OpenCL\u2122 runtime for Intel® CPU device
軟體庫 :@System
符合之來源:
Other : *libtbb.so.2
tbb-2017.7-1.fc26.x86_64 : The Threading Building Blocks library abstracts low-level threading details
軟體庫 :@System
符合之來源:
Other : *libtbb.so.2
tbb-2017.7-1.fc26.i686 : The Threading Building Blocks library abstracts low-level threading details
軟體庫 :fedora
符合之來源:
Provide : libtbb.so.2
tbb-2017.7-1.fc26.x86_64 : The Threading Building Blocks library abstracts low-level threading details
軟體庫 :fedora
符合之來源:
Other : *libtbb.so.2
應該就是 tbb 這個套件了,補安裝它
[root@Core-i7 ~]# dnf install tbb
就可以正常啟動 Blender 了。
已測試版本:
沒有留言:
張貼留言
感謝你耐心看完本文,歡迎留下任何指正、建議,筆者會儘快回應。(English is also welcome.)