Code::Blocks Forums
User forums => Help => Topic started by: Jerome on April 08, 2013, 02:27:02 am
-
I am reinstalling C::B because of a complete system reinstall, Debian Squeeze on amd64. I have set up my sources according to this page;
http://apt.jenslody.de/
but that page does not specify how to actually install C::B, that is, a package name to use with apt-get. In the past, I downloaded a tar from Berlios and managed to unpack it and install it, although it has always been a complicated procedure due to dependencies. But this time I can't get it to work, because of dependencies. So, I tried apt-get install codeblocks (can't hurt, right?). Apparently that package does exist, I assume on jens repository, but it also has dependency issues, as follows;
root@Thor:/home/jerome# apt-get install codeblocks
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
codeblocks : Depends: libcodeblocks0 (= 12.11svn8938-1) but 12.11-2 is to be installed
Depends: libwxbase2.8-0 (>= 2.8.12.1) but 2.8.10.1-3+b1 is to be installed
Depends: libwxgtk2.8-0 (>= 2.8.12.1) but 2.8.10.1-3+b1 is to be installed
E: Broken packages
These are the same dependencies that caused problems for the manual install.
I found a post on this, but it was from 2011, so I am starting a new topic. Any assistance will be appreciated.
Jerome
-
As I state on my site, you need to install wxWidgets from apt.wxwidgets.org if you are on squeeze.
You have to do this first and you have to remove the old codeblocks-packages (release 12.11-2) manually or more easy with a package manager (preferred for most users).
I have no time to give further advices at the moment, sorry, but I just took a short look here, before a long week with work and most time no internet.
Sorry.
-
A bit more detailed answer because I have solved the same problem when populating my new comp.
(1) Uninstall Code Blocks completely (also wxSmith).
(2) Uninstall wxWidgets completely.
(3) Get public key for wxwidgets.org repository:
wget -q http://apt.wxwidgets.org/key.asc -O- | apt-key add -
(4) Add wxwidgets.org repository to your software sources:
deb http://apt.wxwidgets.org/ squeeze-wx main
deb-src http://apt.wxwidgets.org/ squeeze-wx main
(5) Install wxWidgets 2.8.12 development packages from the wxwidgets.org repository. Do not install from the "overall" repository! The packages there are old and, moreover, with bad setup.h so that even if you install and even if you install Code Blocks, you'll be unable to compile.
(6) Add Jen's repository to your software sources:
deb http://apt.jenslody.de/stable squeeze main
deb-src http://apt.jenslody.de/stable squeeze main
(7) Download Jen's public key from the repository: download jens-lody-debian-keyring
(8) Download Code Blocks from the repository. This should pass now and you should be able to compile.
-
Thanks to both of you for replying. I think I have got it working now. Some notes;
a) the above command to get the wxwidgets key did not work for me, so I did it in two steps;
# wget -q http://apt.wxwidgets.org/key.asc
# apt-key add key.asc
To install wxwidgets;
# apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev
I then used synaptic to install code::blocks, in a rather complicated set of steps involving multiple upgrades and installs.