感谢支持
我们一直在努力

Linux下code::block的安装与错误排除【Ubuntu 10.04】

在Ubuntu 10.04上安装CodeBlocks碰到无法启动的问题,错误讯息如下,


codeblocks: relocation error: /usr/lib/libcodeblocks.so.0: symbol _ZN13wxAuiNotebook7SetFontERK6wxFont, version WXU_2.8.5 not defined in file libwx_gtk2u_aui-2.8.so.0 with link time reference


网路上找了很多解法来试,下面的解法才work!


(Linux的套件相依姓与本身作业系统的相容性问题真的不少)


原文讨论串CodeBlocks Forum
以下是节录Sowaco的文章.


Title: Re: I can’t run Codeblocks
E Insert the “lgp203.free.fr” – Repository into sources.list.


Start an editor:


Code:
sudo nano /etc/apt/sources.list


Insert following lines, save and exit.


Code:
##CodeBlocks<br % the problems:


Remove all ‘old’ packages:


Code:
sudo apt-get remove build-essential gdb
sudo apt-get remove libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx2.8-doc
sudo apt-get remove libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx2.6-doc
sudo apt-get remove wx-common
sudo apt-get autoremove


Use synaptic, search for wx* lib’s and remove them.


Code:
sudo synaptic


Insert the “lgp203.free.fr” – Repository into sources.list.


Start an editor:


Code:
sudo nano /etc/apt/sources.list


Insert following lines, save and exit.


Code:
##CodeBlocks
deb http://lgp203.free.fr/ubuntu karmic universe
deb-src http://lgp203.free.fr/ubuntu karmic universe
deb http://lgp203.free.fr/ubuntu karmic unstable
deb-src http://lgp203.free.fr/ubuntu karmic unstable


Update list.


Code:
sudo apt-get update


Import key for the repository.


Code:
wget -q http://lgp203.free.fr/public.key -O- | sudo apt-key add –


Again some cleanups.


Code:
sudo apt-get autoremove


Install everything.


Code:
sudo apt-get install build-essential
sudo apt-get install gdb


sudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib
sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common


Now, Codeblocks should start.


Code:
codeblocks


After these steps, everything works fine….



Regards
Andreas

赞(0) 打赏
转载请注明出处:服务器评测 » Linux下code::block的安装与错误排除【Ubuntu 10.04】
分享到: 更多 (0)

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

支付宝扫一扫打赏

微信扫一扫打赏