Code: block installation and troubleshooting in Linux [Ubuntu10.04]

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.