在安装好虚拟机后进行c++的运行和调试,就需要安装g++、gdb。(在root命令下执行,其他没权限)
g++的安装过程:
首先保证网速畅通,用ping +ip地址检验
ping 192.168.91.128
51 packets transmitted, 51 received, 0% packet loss, time 50750ms
rtt min/avg/max/mdev = 0.024/0.038/0.169/0.025 ms
运行以下指令
-++ ++-
++
gdb安装过程
首先保证网速畅通,用ping +ip地址检验
ping 192.168.91.128
51 packets transmitted, 51 received, 0% packet loss, time 50750ms
rtt min/avg/max/mdev = 0.024/0.038/0.169/0.025 ms
First:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
Second:
yum makecache
Third:
yum -y install gdb
执行完这三条指令,完成下载安装Complete后安装成功