Linux安装Leanote蚂蚁笔记2.6桌面客户端遇到的error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory错误

今天安装Leanote(蚂蚁笔记)软件遇到的一个问题

./Leanote: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

提示的是libgconf -2.so.4这个可执行文件的依赖的动态链接库找不到

只需执行sudo apt-get install libgconf-2-4

再执行可执行文件,问题解决。

本人遇到的问题是自己的Ubuntu18.04安装Leanote(蚂蚁笔记)这个软件解压后

hou@hou-Lenovo-G50-80:~/software/leanote-desktop-linux-x64-v2.6$ ls
content_shell.pak  libffmpeg.so            locales           snapshot_blob.bin
icudtl.dat         libnode.so              __MACOSX          version
Leanote LICENSE natives_blob.bin leanote.png LICENSES.chromium.html resources

执行./Leanote时遇到的

具体的过程如下

hou@hou-Lenovo-G50-80:~/software/leanote-desktop-linux-x64-v2.6$ ./Leanote 
./Leanote: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
hou@hou-Lenovo-G50-80:~/software/leanote-desktop-linux-x64-v2.6$ sudo apt-get install libgconf-2-4
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会同时安装下列软件:
  gconf-service gconf-service-backend gconf2-common
下列【新】软件包将被安装:
  gconf-service gconf-service-backend gconf2-common libgconf-2-4
升级了 0 个软件包,新安装了 4 个软件包,要卸载 0 个软件包,有 55 个软件包未被升级。
需要下载 845 kB 的归档。
解压缩后会消耗 8,050 kB 的额外空间。
您希望继续执行吗? [Y/n] Y
获取:1 http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 gconf2-common all 3.2.6-4ubuntu1 [700 kB]
获取:2 http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 libgconf-2-4 amd64 3.2.6-4ubuntu1 [84.8 kB]
获取:3 http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 gconf-service-backend amd64 3.2.6-4ubuntu1 [58.1 kB]
获取:4 http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 gconf-service amd64 3.2.6-4ubuntu1 [2,036 B]
已下载 845 kB,耗时 4秒 (225 kB/s)  
正在选中未选择的软件包 gconf2-common。
(正在读取数据库 ... 系统当前共安装有 210731 个文件和目录。)
正准备解包 .../gconf2-common_3.2.6-4ubuntu1_all.deb  ...
正在解包 gconf2-common (3.2.6-4ubuntu1) ...
正在选中未选择的软件包 libgconf-2-4:amd64。
正准备解包 .../libgconf-2-4_3.2.6-4ubuntu1_amd64.deb  ...
正在解包 libgconf-2-4:amd64 (3.2.6-4ubuntu1) ...
正在选中未选择的软件包 gconf-service-backend。
正准备解包 .../gconf-service-backend_3.2.6-4ubuntu1_amd64.deb  ...
正在解包 gconf-service-backend (3.2.6-4ubuntu1) ...
正在选中未选择的软件包 gconf-service。
正准备解包 .../gconf-service_3.2.6-4ubuntu1_amd64.deb  ...
正在解包 gconf-service (3.2.6-4ubuntu1) ...
正在设置 gconf2-common (3.2.6-4ubuntu1) ...

Creating config file /etc/gconf/2/path with new version
正在处理用于 sgml-base (1.29) 的触发器 ...
正在处理用于 libc-bin (2.27-3ubuntu1) 的触发器 ...
正在设置 libgconf-2-4:amd64 (3.2.6-4ubuntu1) ...
正在设置 gconf-service-backend (3.2.6-4ubuntu1) ...
正在设置 gconf-service (3.2.6-4ubuntu1) ...
正在处理用于 libc-bin (2.27-3ubuntu1) 的触发器 ...
hou@hou-Lenovo-G50-80:~/software/leanote-desktop-linux-x64-v2.6$ ls
content_shell.pak  libffmpeg.so            locales           snapshot_blob.bin
icudtl.dat         libnode.so              __MACOSX          version
Leanote            LICENSE                 natives_blob.bin
leanote.png        LICENSES.chromium.html  resources
hou@hou-Lenovo-G50-80:~/software/leanote-desktop-linux-x64-v2.6$ ./Leanote 
Gtk-Message: 22:13:50.774: Failed to load module "canberra-gtk-module"
load: file:///home/hou/software/leanote-desktop-linux-x64-v2.6/resources/app/note.html
focus
openUrl { frame: true,
  height: 400,
  html: 'login.html',
  resizable: false,
  show: true,
  width: 278 }
openUrl { 'chromium-args': '--enable-smooth-scrolling',
  frame: true,
  height: 600,
  html: 'note.html?from=login',
  icon: 'public/images/logo/leanote_icon_blue.png',
  toolbar: false,
  transparent: false,
  width: 1100 }
focus
db inited [main]
images is loaded [main]
blur
focus

猜你喜欢

转载自www.cnblogs.com/himonkey/p/9383725.html