News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

I can't run Codeblocks

Started by Mentos, November 17, 2009, 12:39:56 PM

Previous topic - Next topic

fabi545

where can i downgrade libwxbase?

in the Software management I can't find it  :?

Sowaco

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:


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.


sudo synaptic


Insert the "lgp203.free.fr" - Repository into sources.list.

Start an editor:


sudo nano /etc/apt/sources.list


Insert following lines, save and exit.


##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.


sudo apt-get update


Import key for the repository.


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


Again some cleanups.


sudo apt-get autoremove


Install everything.


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.


codeblocks


After these steps, everything works fine....


Regards
  Andreas

fabi545

#17
But I have OpenSUSE so I can't use apt-get :(

froff

fabi545
start synaptic, select package and press Ctrl+E or select "Force version" from main menu.
You have to be connected to wxwidgets repository first to see their version in synaptic.
Select it and apply changes. Synaptic will show information, that packae will be downgraded.


Uh... suse.
Probably you don't have synaptic :)
See documentation how to force package version in suse.

Jenna

Does synaptic exist for OpenSUSE ?
I don't think so.

Quote from: jens on November 18, 2009, 11:13:10 AM
openSuse 11.2 always runs without errors with C::B from this repo: http://download.opensuse.org/repositories/devel:/tools:/ide/openSUSE_11.2/ .
All system software updated (C::B version is 5919).

Does this not work ?

Search for wxGTK and and probably wxGTK-devel, I don't know the exact names at the moment.
Maybe I find the time later (this evening ?) to start my virtual OpenSUSE machine, to look how the packages are called exactly, and which versions I have installed.

jabahpureza

Quote from: Sowaco on December 23, 2009, 10:57:03 AM
After these steps, everything works fine....

Regards
  Andreas

your instructions worked perfectly here. (Ubuntu 9.10 amd64)
Thank you very much!
jjR

Jenna

Quote from: heefan on June 09, 2010, 07:44:36 AM
Hi guys

I also got the problem

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

My linux is : Ubuntu 10.04LTS.
How can I solve the problem? how to find  jens repo?
Thanks
Please do not cross-post !
I gave you a hint in the thread you started with the same question.