dot安装和使用

1.安装

apt-get install graphviz

如果报错说缺少依赖文件,则使用apt自动安装依赖项

apt-get -f install

我在安装中报错:

dpkg: unrecoverable fatal error, aborting:
 fork failed: Cannot allocate memory

重新执行安装命令时,出现新错误

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 

按照提示执行

dpkg --configure -a

又报错

Errors were encountered while processing:
 graphviz:i386

网上搜索后,尝试如下解决

aptitude update

报错:

The program 'aptitude' is currently not installed. You can install it by typing:
apt install aptitude

根据提示,执行

apt install aptitude

报错

You might want to run 'apt-get -f install' to correct these:

根据提示执行

apt-get -f install

完成,重新安装 graphviz

apt-get install graphviz

成功

 

可见,错误原因是aptitude没安装。

 

2.使用

参考:https://zhuanlan.zhihu.com/p/21993254

  https://www.tianmaying.com/tutorial/graphviz

The program 'aptitude' is currently not installed. You can install it by typing:apt install aptitude

 

转载于:https://www.cnblogs.com/yangxinrui/p/10261450.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值