Step1: 官网下载压缩包
https://www.zybuluo.com/cmd/
Step2: 解压缩包
tar -xvf cmd_markdown_linux64.tar.gz
- 解压后得到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)
https://blog.csdn.net/qq_39441784/article/details/109484723
https://www.cnblogs.com/ww3113306/p/9433621.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)