Code::Blocks Forums

User forums => Help => Topic started by: tool46and2 on January 29, 2016, 07:41:13 am

Title: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: tool46and2 on January 29, 2016, 07:41:13 am
There is no way to install the debian .deb files in ubuntu 15.10.

The debian 32 bit binary release of codeblocks 16 comes with a bunch of .deb files.

You have to install the included libcodeblocks0_16.01_i386.deb file first because the other six .deb files depend on it, but it depends on libwxbase3.0.2.
I apparently only have libwxbase3.0 installed.

So I googled around and I found this page:

http://codelite.org/LiteEditor/WxWidgets30Binaries#toc2

Which I followed, and I did manage to install libwxbase3.0.2, but the dependency is still unmet when I try to install the .deb.

Building from source turned out to be a huge waste of time, it took forever on my old machine, and when I finally finished installing codeblocks it would not launch.

It complained about libcodeblocks0.so being missing, or something similar to that.

Help me. I'd rather not build from source again if it can be avoided.
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: MortenMacFly on January 29, 2016, 07:58:51 am
There is no way to install the debian .deb files in ubuntu 15.10.
Please wait, Ubuntu packages are in the making... For Linux distros we don't have them at hand all at the same time. Its not as easy as with Windows you know...
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: tool46and2 on January 29, 2016, 08:07:38 am
Oh, all right then. There really is no hurry. I just wanted to try out the new version.
I don't have any issues with C::B 13.12, anyway.

Any idea on how long it will take?
A few days, a week, certainly not longer than a month, right?

I don't know how long these things usually take.
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: MortenMacFly on January 29, 2016, 12:15:37 pm
Any idea on how long it will take?
A few days, a week, certainly not longer than a month, right?
Only a few days, hopefully. In fact, if I would know how to do the packaging I could do it myself. But one of the Linux Pro's (devs) has already mentioned he'll produce one. Hopefully on weekend becasue its a working days you know...
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: reminisc3 on January 30, 2016, 12:41:45 am
I can confirm the dependency issues on Ubuntu 15.10. Tried installing the .deb and had the same issue. Eager to install the new version, because I had some issues with 13.12 on Ubuntu 15.10.

I installed and tested 16 today at work on Windows and it's excellent so far.

Thanks DEVS for all your hard work!
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: MortenMacFly on January 30, 2016, 07:14:42 am
We have a first Ubuntu release on the server which might work for you... Please provide feedback...

More to come.
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: tool46and2 on January 30, 2016, 07:55:58 am
Oh, but is there going to be a Ubuntu x86 only release?
My linux machine is 32 bit only because it's really old.
That's why it's running linux.


Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: MortenMacFly on January 30, 2016, 10:37:50 am
My linux machine is 32 bit only because it's really old.
More to come.
Patience is a virgin... ;-)
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: camilocc on January 30, 2016, 12:37:54 pm
I had almost the same issues posted in the start of this topic but for 64 bit version of Ubuntu 15.10.

And with the trusty version of the recent 64 Ubuntu build of Code::Blocks, Ubuntu 15.10 fails with some error about ABI incompatiblity in "wxcontainers?".
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: camilocc on February 02, 2016, 12:52:28 am
I tried to run Code::Blocks 16.01 at Ubuntu 15.10 (64bit).

Unpacked codeblocks-16.01-amd64-trusty.tar.xz (Ubuntu 14.04/14.10)

Installed libcodeblocks0_16.01_amd64.deb, codeblocks-common_16.01_all.deb and codeblocks_16.01_amd64.deb, in this order.

There were only pre-installation warning about "non-official" sources. Installation run fine.

When I run codeblocks command from Terminal, the following error message is shown and program doesn't come up:

Fatal Error: Mismatch between the program and library build versions detected.
The library used 2.8 (no debug,Unicode,compiler with C++ ABI 1009,wx containers,compatible with 2.6),
and your program used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.6).
Aborted (core dumped)

There will be a Ubuntu wily (15.04, 15.10) version?

Or workaround for using this trusty target package?
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: MortenMacFly on February 02, 2016, 10:59:49 am
Fatal Error: Mismatch between the program and library build versions detected.
obfuscated??? Any idea?
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: MortenMacFly on February 02, 2016, 11:01:43 am
...can you try this PPA and provide feedback, please?

https://code.launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: oBFusCATed on February 02, 2016, 08:47:08 pm
Fatal Error: Mismatch between the program and library build versions detected.
obfuscated??? Any idea?
Different compilers used for codeblocks and wxgtk most probably. wxGTK is build with newer compiler than codeblocks.
The ppa is the way to install cb anyway.
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: MortenMacFly on February 02, 2016, 09:42:37 pm
There will be a Ubuntu wily (15.04, 15.10) version?
Please use this PPA:

https://code.launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable

...and report back if it is working for you. Thank you!
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: linuser42 on February 02, 2016, 10:52:18 pm
Please use this PPA:

https://code.launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable

...and report back if it is working for you. Thank you!

I'm using that ppa and everything works (Ubuntu 15.10).
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: camilocc on February 02, 2016, 11:31:08 pm
...can you try this PPA and provide feedback, please?

https://code.launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable

Perfect!!

I used the following commands at Ubuntu 15.10 64-bit:

su root
add-apt-repository ppa:damien-moore/codeblocks-stable
apt-get update
apt-get install codeblocks


Perfect!!
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: tool46and2 on February 03, 2016, 05:53:54 am
Yeah, it works well, but it still doesn't include some features that are present in the Windows version.

Like automatically adding a newline and auto-indenting into a newly created block.
(pressing enter after a function definition auto indents, then pressing a left bracket completes the block)

That's the only reason I wanted to upgrade. It's a very convenient feature that is unfortunately missing.

I've checked my Windows C::B editor config, and compared that with the linux C::B config and there are absolutely no differences.

Why isn't this feature present in the linux release?
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: MortenMacFly on February 03, 2016, 07:45:08 am
Why isn't this feature present in the linux release?
There is no functional difference between the Linux and Windows version except the Widows-only plugins (that make no sense under Linux anyways). Please have a look at the editor properties. So not the settings file but really the editor config (UI). It is not recommended to work directly on config files as it may corrupt them and make them unusable. Settings should only be changed through C::B itself.
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: dmoore on February 03, 2016, 08:08:02 am
Yeah, it works well, but it still doesn't include some features that are present in the Windows version.

Like automatically adding a newline and auto-indenting into a newly created block.
(pressing enter after a function definition auto indents, then pressing a left bracket completes the block)

That's the only reason I wanted to upgrade. It's a very convenient feature that is unfortunately missing.

I've checked my Windows C::B editor config, and compared that with the linux C::B config and there are absolutely no differences.

Why isn't this feature present in the linux release?

Did you install the codeblocks-contrib package? Do you have all the same plugins enabled (particularly smart indent, I think)?
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: jimistephen on February 03, 2016, 10:38:58 pm
I was having the same problem with 14.04. Got a hold of Damien and he helped me work out the ppa (was saying I was imputing more than one repository) have it working fine now.
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: tool46and2 on February 04, 2016, 05:25:59 am
Did you install the codeblocks-contrib package? Do you have all the same plugins enabled (particularly smart indent, I think)?

Nope, I didn't even know that a codeblocks-contrib package existed nor is it mentioned anywhere that I should install it.

But yeah, installing the contrib package fixed it. Thanks.

If anyone else wants auto indent run:

    sudo apt-get install codeblocks-contrib

(you probably do want this, it speeds up coding if you're a slow typer)
Title: Re: Trouble installing C::B 16.01 on Ubuntu 15.10 (unsatisfiable dependencies)
Post by: beauxq on February 08, 2016, 02:38:39 am
Using that ppa, for me, it still says it can't satisfy the dependencies.

Code
add-apt-repository ppa:damien-moore/codeblocks-stable 
apt-get update
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 (= 16.01~ubuntu15.10.1) but 16.01 is to be installed
              Depends: codeblocks-common (= 16.01~ubuntu15.10.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Edit:
nevermind, I found the problem. Something I tried to do earlier was messing it up. I had to undo what I tried to do earlier.