在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.listInsert 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 autoremoveUse synaptic, search for wx* lib"s and remove them.Code:
sudo synapticInsert the "lgp203.free.fr" - Repository into sources.list.Start an editor:Code:
sudo nano /etc/apt/sources.listInsert 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 unstableUpdate list.Code:
sudo apt-get updateImport 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 autoremoveInstall everything.Code:
sudo apt-get install build-essential
sudo apt-get install gdbsudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib
sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-commonNow, Codeblocks should start.Code:
codeblocksAfter these steps, everything works fine....
Regards
AndreasRedHat Linux 9.0下P4VP-MX主板显卡分辨率问题在线音乐播放咪咕Linux版相关资讯 Ubuntu教程
- Ubuntu教程 - 使用Ubuntu拷贝CD和 (12/18/2013 14:38:16)
- 让Ubuntu 12.10支持RAR和7Z文件解 (11/15/2012 18:51:50)
- Windows 7硬盘安装Ubuntu 12.10图 (11/03/2012 19:22:47)
| - 完美安装Ubuntu 12.10最新AMD显卡 (11/27/2012 08:17:47)
- Win 7硬盘安装Ubuntu 12.10 (11/05/2012 13:30:34)
- 虚拟机上Ubuntu 11.10升级到12.04 (10/12/2012 20:00:38)
|
本文评论 查看全部评论 (0)