Author Topic: Install C::B latest STABLE version on Debian Squeeze - Dependencies issues  (Read 16208 times)

Offline Léa Massiot

  • Multiple posting newcomer
  • *
  • Posts: 39
Hello.

I'm trying to install the lasted C::B STABLE version on Debian Squeeze.

I've downloaded:
Code
codeblocks_12.11-1_amd64-debian-stable.tar.bz2 
codeblocks-dbg_12.11-1_i386-debian-stable.tar.bz2 (squeeze)
at this address:
http://www.codeblocks.org/downloads/26#linux64

I've unzipped and untared these two archives.
I got the following ".deb" files:
Code
codeblocks_12.11-1_amd64.deb
codeblocks-common_12.11-1_all.deb
codeblocks-contrib_12.11-1_amd64.deb
codeblocks-contrib-common_12.11-1_all.deb
codeblocks-contrib-dbg_12.11-1_amd64.deb
codeblocks-dbg_12.11-1_amd64.deb
codeblocks-dev_12.11-1_amd64.deb
codeblocks-headers_12.11-1_all.deb
codeblocks-libwxcontrib0_12.11-1_amd64.deb
codeblocks-wxcontrib-dev_12.11-1_amd64.deb
codeblocks-wxcontrib-headers_12.11-1_all.deb
libcodeblocks0_12.11-1_amd64.deb
libwxsmithlib0_12.11-1_amd64.deb
libwxsmithlib0-dev_12.11-1_amd64.deb
wxsmith-dev_12.11-1_amd64.deb
wxsmith-headers_12.11-1_all.deb

I put these files in "/usr/local/codeblocks".

I tried:
Code
root> dpkg -i *.deb

I have dependencies problems.
So, I read I should install the ".deb" packages in a certain order...
I started with "libcodeblocks0_12.11-1_amd64.deb" which apparently depends on:
Code
libwxbase2.8-0 (>= 2.8.12.1)
libwxgtk2.8-0 (>= 2.8.12.1)

It seems that there is a problem as I have only a 2.8.10 version available on my system:
Code
root> apt-cache show libwxbase2.8-0
[...]
Source: wxwidgets2.8 (2.8.10.1-3)
Version: 2.8.10.1-3+b1
[...]

Yet, I installed that package despite everything:
Code
root> apt-get install libwxbase2.8-0

and ran:
Code
root>  dpkg -i libcodeblocks0_12.11-1_amd64.deb
Selecting previously deselected package libcodeblocks0.
(Reading database ... 55687 files and directories currently installed.)
Unpacking libcodeblocks0 (from libcodeblocks0_12.11-1_amd64.deb) ...
dpkg: dependency problems prevent configuration of libcodeblocks0:
 libcodeblocks0 depends on libwxbase2.8-0 (>= 2.8.12.1); however:
  Package libwxbase2.8-0 is not installed.
 libcodeblocks0 depends on libwxgtk2.8-0 (>= 2.8.12.1); however:
  Package libwxgtk2.8-0 is not installed.
dpkg: error processing libcodeblocks0 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libcodeblocks0

I even tried:
Code
root> dpkg -i --force-depends *.deb
root> apt-get install -f
The latest command execution results in the cancellation of all that was done after the first command was complete.

It looks like to me that I won't be able to install this stable C::B on my stable Debian installation (as I do not want testing or unstable things on my computer...)

Can you confirm this or tell me how to install properly C::B (STABLE)?

Thank you.

P.S. I won't install a nightly build instead.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
I used the wxWidgets-packages from apt.wxwidgets.org for building.
It looks like I missed to remove the sources.list entry for it, when actual stable was released.

I just started a rebuild of the stable packages against debians wxWidgets-packages, if they are ready I will reupload the packages when they are ready.

Offline Léa Massiot

  • Multiple posting newcomer
  • *
  • Posts: 39
Okay. I'm looking forward to the new stable release.
Can you let me know here when it's ready (and where)?

Thank you.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
Okay. I'm looking forward to the new stable release.
Can you let me know here when it's ready (and where)?

Thank you.
You can download the 12,11-2 release-files for stable from our download site or use my repo.
Instructions how to use it can be found on my server (see signature).

@MortenMacFly:
can you upload the 12.11-2 files for debian stable to sourceforge ?

Offline dfatcb

  • Multiple posting newcomer
  • *
  • Posts: 67
Yeah, I'm trying to update through the synaptic package manager and having problems, no matter what codeblocks part I try to update it has dependency issues .. for example:

codeblocks:
  Depends: libcodeblocks0 (=12.11svn8710-1) but 10.05-1 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
  Depends: codeblocks-common (=12.11svn8710-1) but 10.05-1 is to be installed



Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
You try to install a nightly.
The nightlies for stable are still linked against wx2.8.12 until I build new ones (this weekend).
If you read the note on my site you can see how to install the release version (12.11-2) for stable.
In short, you have to use the "release" section instead of the "main" section.
If it still gives problems with 10.05, you can remove it first. The user-configuration will not be deleted by uninstallation.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
Newest nightlies for debian stable on my server are now also build against wx2.8.10.
The revision is svn r8783.

All other linux nightlies are also updated to 8783, of course.

Offline Léa Massiot

  • Multiple posting newcomer
  • *
  • Posts: 39
Thank you.
I could install C::B properly.

Offline dfatcb

  • Multiple posting newcomer
  • *
  • Posts: 67
Worked first time now.  thanks.

nino_decoy

  • Guest
While this thread is old, I have been unable to find a more recent relevant discussion. The solutions above may or may not work for someone else with the same problem, but if not then the solution below is most useful in the context provided above.

You try to install a nightly.
The nightlies for stable are still linked against wx2.8.12 until I build new ones (this weekend).
If you read the note on my site you can see how to install the release version (12.11-2) for stable.
In short, you have to use the "release" section instead of the "main" section.
If it still gives problems with 10.05, you can remove it first. The user-configuration will not be deleted by uninstallation.

I had very similar problems.
From Synaptic:
codeblocks 12.11-1 required codeblocks-common to be uninstalled (can't remember what version) and then
"Depends: codeblocks-common (=12.11-2) but 12.11-1 is to be installed"
My issues were finally resolved by simply going through your site and manually downloading the 12.11-2 .deb files for my architecture (AMD64) and installing them with dpkg. contribs is broken but I understand that has to do with a hunspell version dependency? no big. Codeblocks reports filemanager broken, too.

I opened Synaptic to see if I could reproduce the errors to paste more information, but now it's going to try to upgrade codeblocks... Suuuure why not?


Solution (for me):
Completely removed codeblocks using Synaptic.
Manually install keyring and debs for my architecture from http://apt.jenslody.de/stable/pool/release/
Open Synaptic, Reload, Upgrade.

Notes: Codeblocks-contrib-common and Codeblocks-contrib-dbg broken. I can live with that.
It may have actually been easier to compile and install from source but I was having trouble with that, too. Immaterial to this topic.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
At the moment (or better since some weeks) there is a problem, because debian has switched one version further, so the stable package are now for oldstable and the testing packages are for stable.
I'm not sure, whether the packages on my server (below stable and testing) are for oldstable and -testing, or for the actual releases.
Too much other stuff in my mind at the moment and I can really not remember, whether I already did a rebuiuld or not.
I will look into it as soon as I find the time (and upload actual packages to berlios/sf also), sorry for any inconvenience.

That's just for the release packages, the nightlies are for new stable and testing as always.