
上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人
1.3.2 实践步骤
如果你在使用Debian或者Ubuntu系统,则需要使用apt-get工具安装软件。如果你使用基于Fedora的系统,则需要使用dnf工具安装软件。
1.3.2.1 基于Debian的系统
这些步骤适用于所有Debian、Ubuntu和Linux Mint。
1.在安装软件包之前,更新存储库缓存:

2.使用apt-get安装GDB和Valgrind,并在提示时回答y:

1.3.2.2 基于Fedora的系统
这些步骤适用于所有基于Fedora的系统,例如CentOS和Red Hat。如果你使用了较旧的系统,可能需要使用yum代替dnf:
使用dnf安装GDB和Valgrind,并在提示时回答y:

1.3.2.3 验证安装
以下步骤同时适用于基于Debian的系统和基于Fedora的系统:
验证GDB和Valgrind的安装:
