Ubuntu 安装Cmd Markdown

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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值