Sri*_*sha 3 gcc c compiler software-installation
我目前使用的是 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,但现在不是。
打开终端并输入:
sudo apt install linux-libc-dev
sudo apt-get -f install
sudo apt install gcc-4.8
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1852 次 |
| 最近记录: |