CodeBlocks cannot be started when it is installed on Ubuntu10.04. The error message is: codeblocks: relocationerror:/usr/lib/libcodeblocks. so.0: Success, versionWXU_2.8.5notdefinedinfilelibwx_gtk2u _
When CodeBlocks is installed on Ubuntu 10.04 and cannot be started, the error message is as follows,
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
I have tried a lot of solutions on the Internet. The solutions below work!
(The compatibility between Linux suites and their operating systems is quite a lot)
Discussion string: CodeBlocks Forum
The following is an article about 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
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
The 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 shoshould start.
Code:
Codeblocks
After these steps, everything works fine ....
Regards
Andreas