小编Sri*_*sha的帖子

如何在 Ubuntu 18.04 中安装 gcc 4.8?

我目前使用的是 Ubuntu 18.04,我需要 MATLAB 的 gcc 4.8。所以我尝试使用安装 gcc-4.8

$ sudo apt-get install gcc-4.8
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-117.118_amd64.deb  404  Not Found [IP: 2403:8940:3:1::f 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Run Code Online (Sandbox Code Playgroud)

所以我运行了命令

sudo apt-get update 
Run Code Online (Sandbox Code Playgroud)

我没有显示任何错误,但运行 gcc version 命令给出了这个

$ gcc -v
Command 'gcc' not found, but can be installed with:
sudo apt install gcc
Run Code Online (Sandbox Code Playgroud)

以前我曾经有 7.5,但现在不是。

gcc c compiler software-installation

3
推荐指数
1
解决办法
1852
查看次数

标签 统计

c ×1

compiler ×1

gcc ×1

software-installation ×1