一颗小豌豆呀 發表於 2019-8-18 23:57:00

linux(deepin)下Clion的安装及环境配置

<p><span style="font-size: 15px">最近心血来潮安装了linux系统后,本来打算使用Codeblocks (平时打ACM用的比较多),但是编译的时候一直报</span></p>
<p><span style="font-size: 15px">”It seems that this project has not been built yet.</span><br><span style="font-size: 15px">Do you want to build it now?"就很难受,百度找了很多博客也不管用,于是果断弃坑改用Clion,</span><span style="font-size: 15px">好在之前的Windows就在使用Clion对安装也比较熟悉。</span></p>
<p><span style="font-size: 15px">其他需要注意的也就是 给Deepin配置gcc环境。</span></p>
<p><span style="font-size: 15px">大致总结一下:</span></p>
<p><span style="font-size: 15px">1、Clion 官方下载地址:https://www.jetbrains.com/clion/download/#section=linux</span></p>
<p><span style="font-size: 15px"><img src="https://img2018.cnblogs.com/blog/1696527/201908/1696527-20190818235646247-2123613145.png" alt=""></span></p>
<p><span style="font-size: 15px">2、下载完就直接解压安装</span></p>
<p><span style="font-size: 15px">找到所在的文件夹打开 clion.sh文件</span></p>
<p><span style="font-size: 15px">当然你也可以使用终端</span></p>
<div class="cnblogs_code">
<pre>tar -zxvf CLion-<span style="color: rgba(128, 0, 128, 1)">2019.2</span>.tar.gz   <span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">解压安装文件</span></pre>
</div>
<div class="cnblogs_code">
<pre>cd clion-<span style="color: rgba(128, 0, 128, 1)">2019.2</span>/bin/<span style="color: rgba(0, 0, 0, 1)">
.</span>/clion.sh                        <span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">运行</span></pre>
</div>
<p><span style="font-family: &quot;comic sans ms&quot;, sans-serif; font-size: 15px">运行后走过回来这个页目下让你选择路径,这个时候需要安装一下gcc环境</span></p>
<p>&nbsp;</p>
<p><img src="https://img2018.cnblogs.com/blog/1696527/201908/1696527-20190818235336917-1878777130.png" alt=""></p>
<p><span style="font-family: &quot;comic sans ms&quot;, sans-serif; font-size: 15px">打开终端输入以下指令</span></p>
<div class="cnblogs_code">
<pre>sudo apt-<span style="color: rgba(0, 0, 255, 1)">get</span> install build-<span style="color: rgba(0, 0, 0, 1)">essential
sudo apt</span>-<span style="color: rgba(0, 0, 255, 1)">get</span> install libgmp-dev libmpfr-dev libmpc-dev libisl-<span style="color: rgba(0, 0, 0, 1)">dev
sudo apt</span>-<span style="color: rgba(0, 0, 255, 1)">get</span><span style="color: rgba(0, 0, 0, 1)"> install cmake
sudo apt</span>-<span style="color: rgba(0, 0, 255, 1)">get</span> install lsb-core</pre>
</div>
<p><span style="font-family: &quot;comic sans ms&quot;, sans-serif; font-size: 15px">如果在安装的时候绕过了这一步,可以在File ---&gt; Setting ---&gt; Build ---&gt; Toolchains 里找到设置进行更改,保存完之后就可以成功运行编写的程序了。</span></p><br><br>
来源:https://www.cnblogs.com/Suiyue-Li/p/11374656.html
頁: [1]
查看完整版本: linux(deepin)下Clion的安装及环境配置