How to compile and install gcc7.3 without network?

prerequisites:

1. Because the compilation time is relatively long, you need to set the xshell client remote connection tool to not drop the line

 

 2. Server settings

vi /etc/ssh/sshd_config

Remove the pound sign before ClientAliveInterval 0 and ClientAliveCountMax 3. And change the value of ClientAliveInterva to 60. Then service sshd restart restarts the ssh service.

Three, gcc installation

1.tar -zxvf gcc-7.3.0.tar.gz
2.cd gcc-7.3.0
3.mkdir gcc-build-7.3.0
4.cd gcc-build-7.3.0
5.../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
6.nohup make >& make.log & //后台运行gcc编译程序
7.tail -f nobup.out
8.make install
9.gcc -v
 

 

Guess you like

Origin blog.csdn.net/weixin_71921932/article/details/129422325