Author Topic: I can't run Codeblocks  (Read 22267 times)

Offline fabi545

  • Single posting newcomer
  • *
  • Posts: 3
Re: I can't run Codeblocks
« Reply #15 on: December 23, 2009, 10:24:32 am »
where can i downgrade libwxbase?

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

Offline Sowaco

  • Single posting newcomer
  • *
  • Posts: 4
Re: I can't run Codeblocks
« Reply #16 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

Offline fabi545

  • Single posting newcomer
  • *
  • Posts: 3
Re: I can't run Codeblocks
« Reply #17 on: December 23, 2009, 11:07:59 am »
But I have OpenSUSE so I can't use apt-get :(
« Last Edit: December 23, 2009, 11:14:28 am by fabi545 »

Offline froff

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: I can't run Codeblocks
« Reply #18 on: December 23, 2009, 01:10:38 pm »
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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: I can't run Codeblocks
« Reply #19 on: December 23, 2009, 01:15:57 pm »
Does synaptic exist for OpenSUSE ?
I don't think so.

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.

Offline jabahpureza

  • Single posting newcomer
  • *
  • Posts: 2
Re: I can't run Codeblocks
« Reply #20 on: June 09, 2010, 01:01:37 am »
After these steps, everything works fine....

Regards
  Andreas

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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: I can't run Codeblocks
« Reply #21 on: June 09, 2010, 09:29:33 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.