用freebsd-update 从10.3升级到11.0后,出现几个问题:
1、XFCE4的桌面背景图片丢失了,成了深蓝色,由于不影响使用,也觉得这个蓝色背景不错,不处理;
2、zathura打开pdf,一片黑,pkg重装后依然;
3、libreoffice不能使用了,启动后不出现任何界面。
还是首先处理zathura。打开终端,直接输入zathura,输出如下
error: could not load plugin /usr/local/lib/zathura/pdf.so (Shared object "libjpeg.so.8" not found, required by "libpoppler.so.63")(zathura:958): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.vfs.HalVolumeMonitor is not supported
原来是找不到libjpeg.so.8,上google搜索,找到文章如下
虽然没有解决我的问题,但是学到了ldd ,pkg which的用法,开卷有益啊。
cd /usr/local/lib查看一下是否存在libjpeg.so.8
-rw-r--r-- 1 root wheel 544802 Oct 2 12:17 libjpeg.a-rwxr-xr-x 1 root wheel 373944 Oct 2 12:17 libjpeg.so.8.0.2
存在libjpeg.so.8.0.2,应该不会有问题啊
顺手输入
# ls -l libpopp*lrwxr-xr-x 1 root wheel 23 Oct 6 02:13 libpoppler-cpp.so -> libpoppler-cpp.so.0.3.0lrwxr-xr-x 1 root wheel 23 Oct 6 02:13 libpoppler-cpp.so.0 -> libpoppler-cpp.so.0.3.0-rwxr-xr-x 1 root wheel 90616 Oct 6 02:13 libpoppler-cpp.so.0.3.0lrwxr-xr-x 1 root wheel 24 Oct 6 02:47 libpoppler-glib.so -> libpoppler-glib.so.8.8.0lrwxr-xr-x 1 root wheel 24 Oct 6 02:47 libpoppler-glib.so.8 -> libpoppler-glib.so.8.8.0-rwxr-xr-x 1 root wheel 381144 Oct 6 02:47 libpoppler-glib.so.8.8.0lrwxr-xr-x 1 root wheel 20 Oct 6 02:13 libpoppler.so -> libpoppler.so.63.0.0lrwxr-xr-x 1 root wheel 20 Oct 6 02:13 libpoppler.so.63 -> libpoppler.so.63.0.0-rwxr-xr-x 1 root wheel 2788648 Oct 6 02:13 libpoppler.so.63.0.0
发现了好多符号连接,会不会是这个问题于是照猫画虎
# ln -s libjpeg.so.8.0.2 libjpeg.so.8# ls -l libjpeg*-rw-r--r-- 1 root wheel 544802 Oct 2 12:17 libjpeg.alrwxr-xr-x 1 root wheel 16 Oct 10 15:14 libjpeg.so.8 -> libjpeg.so.8.0.2-rwxr-xr-x 1 root wheel 373944 Oct 2 12:17 libjpeg.so.8.0.2
然后zathura正常了,libreoffice也正常