感谢支持
我们一直在努力

Ubuntu下通过添加源来安装codeblocks

在Ubuntu下用vim编辑以下脚本,然后用sudo执行,执行之前别忘了用chmod +x

original install_codeblocks.sh below:

#!/bin/bash
DISTRIB_CODENAME=`cat /etc/lsb-release | grep DISTRIB_CODENAME | sed ‘s/DISTRIB_CODENAME\=\(\.*\)/\1/g’`
WX_DEB=”deb http://apt.wxwidgets.org/ $DISTRIB_CODENAME-wx main”
CB_DEB=”deb http://lgp203.free.fr/ubuntu/ $DISTRIB_CODENAME universe”

echo $WX_DEB > /etc/apt/sources.list.d/wx.list
echo $CB_DEB > /etc/apt/sources.list.d/cb-nightly.list

wget -q http://apt.wxwidgets.org/key.asc -O- | apt-key add –
wget -q http://lgp203.free.fr/public.key -O- | apt-key add –

apt-get update

apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib

apt-get install freeglut3-dev libasound2-dev libxmu-dev libxxf86vm-dev g++ libgl1-mesa-dev libglu1-mesa-dev libraw1394-dev

Code::Blocks 的详细介绍:请点这里
Code::Blocks 的下载地址:请点这里

赞(0) 打赏
转载请注明出处:服务器评测 » Ubuntu下通过添加源来安装codeblocks
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏