CentOS-7安装eclipse-cpp
安装桌面环境
CentOS-7安装桌面环境命令
yum -y groupinstall 'Server with GUI'
安装eclipse-cdt
下载地址
http://mirrors.neusoft.edu.cn/eclipse/technology/epp/downloads/release/2019-06/R/eclipse-cpp-2019-06-R-linux-gtk-x86_64.tar.gz
安装
mkdir /opt/package/eclipse-cdt
cd /opt/package/eclipse-cdt/
#上传安装文件到此目录
tar -zxf eclipse-cpp-2019-06-R-linux-gtk-x86_64.tar.gz -C /opt/
mv /opt/eclipse /opt/eclipse-cpp
启动
在图形界面执行/opt/eclipse-cpp/eclipse启动程序
添加桌面快捷方式
cat <<EOF >/usr/share/applications/eclipse-cpp.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=eclipse-cpp
Comment=
Exec=/opt/eclipse-cpp/eclipse
Icon=/opt/eclipse-cpp/icon.xpm
Path=
Terminal=false
StartupNotify=false
EOF
chmod u+x /usr/share/applications/eclipse-cpp.desktop
然后就可以启启动eclipse-cpp 进行C语言开发
安装后常用设置
设置工具栏
eclipse-cpp的工具栏默认占用了2行,取消不不必要的中继按钮,使其变为1行,设置方法如下
Window-->Perspective-->Customize Perpective-->保留File 和 Lunch即可