Ubuntu搭建C++开发环境
使用IDE:Clion
虚拟机:VMware+Ubuntu18.04
1. 安装Vim
个人习惯vim,先安装一下
sudo apt-get install vim2. 安装git
2.1 安装git
sudo apt-get update
sudo apt-get install git2.2 生成ssh
cd
ssh-keygen -t rsa -C "your_email@example.com"2.3 将ssh秘钥设置到git仓库上
cd
cd .ssh/
cat id_rsa.pub
#拿到key,添加到git仓库就可以下载git项目了2.4 配置
3. 安装Clion
3.1 下载Clion Linux版:https://www.jetbrains.com/clion/download/#section=linux
3.2 安装Clion
3.3 破解Clion:http://idea.lanyus.com/
4. 安装C++开发环境
完成!
补充
安装中文输入法:https://blog.csdn.net/qq_27806947/article/details/80157419
切换gcc版本(有的时候gcc版本高了出问题):https://www.cnblogs.com/fogcell/p/6628520.html?utm_source=itdadao&utm_medium=referral(切换g++的版本也是这样做!)
Last updated
Was this helpful?