Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
我的是物理机装的kali-debian的系统,装vmware,显示gcc not found f
Apps Section
472
views ·
4
replies ·
To
floor
Go
qq320262600
deepin
2018-01-21 02:30
Author
求助,求助
第一次上论坛
Reply
Like 0
Favorite
View the author
All Replies
macaiyun0629
deepin
2018-01-21 02:44
#1
sudo apt install gcc
Copy the Code
Reply
Like 0
View the author
qq320262600
deepin
2018-01-21 03:47
#2
https://bbs.deepin.org/post/152123
升级之后还是没有那个兼容的版本
我兼容的版本是6.4.0
gcc升级之后显示最高4.*
Reply
Like 0
View the author
qq320262600
deepin
2018-01-21 03:50
#3
https://bbs.deepin.org/post/152123
论坛上别人都说是gcc-4.9
那个目录下面只有/usr/bin gcc-7
我在命令行中升级显示的是四点几
Reply
Like 0
View the author
RucLinux
deepin
2018-01-21 16:02
#4
$ gcc -v
看看你本机的是什么版本?
gcc是Linux的重要信赖,不要轻易升级或安装,不过可以通过
http://ftp.gnu.org/gnu/gcc/
下载你需要的版本进行编译
#!/usr/bin/env bash
wget http://ftp.gnu.org/gnu/gcc/gcc-6.3.0/gcc-6.3.0.tar.gz
tar -xzvf gcc-6.3.0.tar.gz
cd gcc-6.3.0
./contrib/download_prerequisites
mkdir gcc-build-6.3.0
cd gcc-build-6.3.0
../configure -enable-checking=release -enable-languages=c,c++ -disable-multilib
make -j4 && make install
Copy the Code
gcc需要在build目录下configure, make -j4这是指4核CPU,如果是8核的就需要make -j8 , ./contrib/download_prerequisites 这个脚本会自动补全信赖。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Looking Deepin ci 25.2.0 Developer/Unstable repositories
How to fix grub boot menu that has disappeared?
Popular Events
More
第一次上论坛