codeblocks无法启动 安装不成功的解决

在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
Post by: Sowaco on December 23, 2009, 10:57:03 am

I also have had problems to install Codeblocks on Ubuntu (Karmic).

I have tried to use Jens packets without success.  So I switched to "http://lgp203.free.fr/ubuntu/".

Here are my the steps to fix all 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
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值