Debian安装C语言环境

参考链接

  1. gcc:https://my.oschina.net/emacs_8766486/blog/17213484

  2. make:https://blog.csdn.net/m0_48096446/article/details/139989347

  3. gdb:https://blog.csdn.net/kaixian2003/article/details/114642610

gcc

确保系统包列表是最新的

复制代码
sudo apt-get update

GCC 编译器可能依赖于一些其他软件包,因此在安装 GCC 之前,最好先安装这些依赖。可以使用以下命令安装推荐的依赖:

复制代码
sudo apt-get install build-essential

安装gcc

复制代码
sudo apt-get install gcc

检查gcc是否安装成功

复制代码
gcc --version

make

同样确保系统包列表是最新的

复制代码
sudo apt-get update

安装make工具

复制代码
sudo apt install make

验证make是否成功安装

复制代码
make --version

gdb

安装gdb

复制代码
sudo apt install gdb

验证gdb是否成功安装

复制代码
gdb --version
相关推荐
谜之锋4 天前
银河麒麟 Debian 系统离线deb包安装Mariadb 数据库指南
数据库·debian·mariadb
美丽的欣情9 天前
RK3588 Debian 交叉编译环境搭建(Windows + VMware Debian + CMake)
运维·windows·debian
是店小二呀20 天前
画架构图不想依赖在线平台?把Excalidraw装进自己的NAS
人工智能·debian
七歌杜金房23 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
2601_961875241 个月前
决战申论100题2026|最新|范文
linux·容器·centos·debian·ssh·fabric·vagrant
AI帮小忙1 个月前
Debian系linux操作系统里安装OpenClaw
linux·运维·debian
sxd20011 个月前
Debian #1135514 bug引发的思考
网络·debian·bug
一池秋_2 个月前
chroot-debian一键部署
android·容器·debian
来点抹茶吗2 个月前
U-Boot、内核移植与根文件系统构建(BeagleBone Green Gateway&AM335X)
linux·嵌入式硬件·ubuntu·debian
赵民勇2 个月前
Debian包systemd服务处理
debian