当前位置: 首页 > 工具软件 > Cmd Markdown > 使用案例 >

Ubuntu 安装Cmd Markdown

戚建德
2023-12-01

Step1: 官网下载压缩包

https://www.zybuluo.com/cmd/

Step2: 解压缩包

tar -xvf cmd_markdown_linux64.tar.gz # 我这里是ubuntu20.04,下载的64位压缩包
  • 解压后得到5个文件,名为Cmd Markdown的可执行文件是需要运行的

Step3: 在终端执行

./Cmd\ Markdown # 第一次执行报错
./Cmd Markdown: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

Step4: 安装缺少的依赖

  • 在终端输入如下命令
sudo apt -y install libgconf2-4 # 第一次执行报错
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libgconf2-4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libgconf2-4' has no installation candidate

Step5: 更新源

sudo apt update
  • 我这里遇到了一个报错,是我的源有问题,修改完就更新成功了
  • apt源的位置 -> /etc/apt/sources.list.d

Step6: 再次安装依赖,执行程序

sudo apt -y install libgconf-2-4

Creating config file /etc/gconf/2/path with new version
Setting up gconf-service (3.2.6-6ubuntu1) ...
Processing triggers for sgml-base (1.29.1) ...
Setting up libgconf-2-4:amd64 (3.2.6-6ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Setting up gconf-service-backend (3.2.6-6ubuntu1) ...  # 到这里就安装成功了

 ./Cmd\ Markdown 
[1461229:0914/091418:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Gtk-Message: 09:14:18.137: Failed to load module "canberra-gtk-module"
[1461229:0914/091418:INFO:CONSOLE(0)] "Creating Application Cache with manifest https://www.zybuluo.com/static/zybuluo.mdeditor.appcache", source: https://www.zybuluo.com/mdeditor (0)   
# 弹出窗口,终端刷LOG,执行成功

  • 参考链接

https://blog.csdn.net/qq_39441784/article/details/109484723
https://www.cnblogs.com/ww3113306/p/9433621.html

 类似资料: