Code::Blocks Forums

User forums => Help => Topic started by: r0d on February 29, 2008, 05:36:35 pm

Title: Troubles installing C::B 8.02 on Ubuntu
Post by: r0d on February 29, 2008, 05:36:35 pm
Hello,

first of all, i want to congratulate the team of C::B. I use it regularly for 6 months, in a professional executive, and I am completely satisfied. I do not still know well linux  environments; Up to here I used only Windows, largely because of Visual Studio. It is thus thanks to C:: B that I am now in the Linux world.

Well, because i don't know very well my linux platform (Ubuntu 7.04 - Feisty Fawn - i know, itś an old version, but i got 6 monthes of brutal work on this environment and i'm a bit... fearful), i got troubles to install the new Code Blocks 8.02 version.

I downloaded the tar.gz that contains the .deb packages, but doing a double click on the first one (libcodeblocks2.8-0), the packages manager send me the following error: "Error: Dependency is not satisfiable: libwxgtk22.8-0"

But i checked with Synaptic, and i saw that this library (libwxgtk22.8-0) is already installed.

Does anybody have an idea on what is missing?

Thank you.
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: sammyf70 on February 29, 2008, 07:27:25 pm
Same problem with Gutsy. All the .deb packages in the tar.gz file rely on each other or on dependencies that are already installed but are apparently not recognized.
I compiled RC3 a few days ago. Maybe that's what broke it.

Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: Jenna on February 29, 2008, 07:44:31 pm
Is it really libwxgtk22.8-0 not libwxgtk22.8-0 ?
If yes, I think there is an error in the dependencies.
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: sammyf70 on February 29, 2008, 08:08:16 pm
The dependency not satisfied by "libcodeblocks0_8.02-0ubuntu1_i386.deb" is indeed "libwxgtk2.8-0", not "libwxgtk22.8-0".
I guess that was a typo on the part of r0d. So the problem comes from somewhere else :/
 
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: Blue112 on March 01, 2008, 01:58:51 am
Hello.

On the download page :
Quote
NOTE 2: The Ubuntu packages have been linked against wxGTK-2.8.7, which is not available in the default Ubuntu repositories.To successfully install these packages, you have to add the wxWidgets repository for Ubuntu in your /etc/apt/sources.list (e.g. deb http://apt.wxwidgets.org/ gutsy-wx main).

It's work perfectly.
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: sammyf70 on March 01, 2008, 02:04:49 pm
uh .. thanks! Missed  that when I downloaded the file :)

Still weird that dpkg states that wxGTK-2.8.0 is needed though.
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: Jenna on March 01, 2008, 03:09:36 pm
uh .. thanks! Missed  that when I downloaded the file :)

Still weird that dpkg states that wxGTK-2.8.0 is needed though.

I believe it asks for libwxgtk2.8-0, what's a big difference.

And normally it also tells you which version it needs.
In this case it should be something like : (>=2.8.7.1).
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: binford on March 01, 2008, 03:21:55 pm
I still have troubles installing CB. When I try to install wxGTK2.8-0, it says:

Quote
libwxgtk2.8-0: Depends on: libpango1.0-0 (>= 1.18.3) but 1.18.2-0ubuntu1 is installed.

Apparently the are not all dependencies in the repo which is mentioned on the download page. Am I missing sth?
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: sammyf70 on March 01, 2008, 03:25:39 pm
hmm .. worked for me. Thanks everybody :)

Binford, Synaptic has libpango1.0-0 (1.18.3-0ubuntu1), at least for Gutsy. Did you check for updates?
You might try downloading and installing this package :
http://packages.ubuntu.com/gutsy-updates/libpango1.0-0 (http://packages.ubuntu.com/gutsy-updates/libpango1.0-0)

good luck
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: pasgui on March 01, 2008, 05:04:41 pm
You might try downloading and installing this package :
http://packages.ubuntu.com/gutsy-updates/libpango1.0-0 (http://packages.ubuntu.com/gutsy-updates/libpango1.0-0)

Or you may try under Synaptic Package Manager: Settings->Repositories->Updates; check the line gutsy-updates and reload.

Best regards, pasgui
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: binford on March 01, 2008, 05:07:57 pm
Yepp, now it works. The "gutsy-update" line was commented, cause there was a signature mismatch some time ago. I forgot about that. Thx guys!
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: binaryV on March 03, 2008, 06:51:41 am
Hello.

On the download page :
Quote
NOTE 2: The Ubuntu packages have been linked against wxGTK-2.8.7, which is not available in the default Ubuntu repositories.To successfully install these packages, you have to add the wxWidgets repository for Ubuntu in your /etc/apt/sources.list (e.g. deb http://apt.wxwidgets.org/ gutsy-wx main).

It's work perfectly.

I'm having trouble installing that package.  When I try to install it through Synaptic, I get this message:

"W: GPG error: http://apt.wxwidgets.org gutsy-wx Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E0BCE7F53B087BC"

I suppose it has something to do with what binford was talking about but I don't know what to do about it.
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: mandrav on March 03, 2008, 08:50:57 am
I'm having trouble installing that package.  When I try to install it through Synaptic, I get this message:

"W: GPG error: http://apt.wxwidgets.org gutsy-wx Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E0BCE7F53B087BC"

That's a warning. Just proceed installing C::B now.
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: Jenna on March 03, 2008, 09:52:35 am
I'm having trouble installing that package.  When I try to install it through Synaptic, I get this message:

"W: GPG error: http://apt.wxwidgets.org gutsy-wx Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E0BCE7F53B087BC"

That's a warning. Just proceed installing C::B now.

Or run
Code
wget -q http://apt.wxwidgets.org/key.asc -O-  | sudo apt-key add -
to make apt know the public-key used to sign the packages on wxwidgets.org .
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: r0d on March 03, 2008, 11:43:15 am
Thank you all for your help.
But i can't install CB 8.02 here because of the new proxy configuration (i can't get access to repositories). Damned system team...
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: binaryV on March 03, 2008, 02:17:31 pm
Thanks guys.  I'm up and running and loving it!
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: WILL on March 12, 2008, 05:41:00 am
Quote
That's a warning. Just proceed installing C::B now.
I got the same problem with him. But I still didn't get it install ! I'm sorry I'm a little slow, I don't understand how we can install, just click all on the files from the binary file or do we have some command that I can just type in terminal. I'm really frustrated :( ! Any help would be appreciated a lot !
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: Jenna on March 12, 2008, 07:41:36 am
Quote
That's a warning. Just proceed installing C::B now.
I got the same problem with him. But I still didn't get it install ! I'm sorry I'm a little slow, I don't understand how we can install, just click all on the files from the binary file or do we have some command that I can just type in terminal. I'm really frustrated :( ! Any help would be appreciated a lot !

From the command-line (as root or with sudo) yo can type
Code
dpkg -i <names_of_deb_files_seperated_by_spaces> 

If you do it this way there are no problems with the dependencies between the C::B-packages.
If external dependencies are missing the have to be fullfilled first (libwxgtk2.8 ...).
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: dgrafix on March 13, 2008, 12:58:20 am
So in simple apt get-terms for a noob has anyone got this working?
i tried adding that repo and got the key,
tried both
sudo apt-get install libwxgtk2.8-7
and
sudo apt-get install libwxgtk2.8.7

no joy.
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: Jenna on March 13, 2008, 01:07:58 am
So in simple apt get-terms for a noob has anyone got this working?
i tried adding that repo and got the key,
tried both
sudo apt-get install libwxgtk2.8-7
and
sudo apt-get install libwxgtk2.8.7

no joy.

The package is called libwxgtk2.8-0, so try
Code
sudo apt-get install libwxgtk2.8-0
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: WILL on March 13, 2008, 07:10:40 am
Quote
sudo apt-get install libwxgtk2.8-7
I installed this package ? But I still couldn't find CB on my pc. I'm sorry If I sounds so stupid to you guys, but honestly I'm to new to computer :(. Please help me !
Quote
dpkg -i <names_of_deb_files_seperated_by_spaces>

About this one, "names_of_deb_files_seperated_by_spaces", you means all the file on the .tar file that I download from CodeBlock ( I means binary version for 32bit Ubuntu here ). right ?
Then I tried this :
Quote
chan@MrChan:~$ sudo dpkg -i<codeblocks_8.02-0ubuntu1_i386.deb codeblocks-contrib_8.02-0ubuntu1_i386.deb codeblocks-dbg_8.02-0ubuntu1_i386.deb codeblocks-dev_8.02-0ubuntu1_i386.deb libcodeblocks0_8.02-0ubuntu1_i386.deb libwxsmithlib0_8.02-0ubuntu1_i386.deb libwxsmithlib0-dev_8.02-0ubuntu1_i386.deb>
bash: syntax error near unexpected token `newline'
And It told me :( !!
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: Seronis on March 13, 2008, 01:26:02 pm
make sure there is a space after the  '-i'  and remove the two angle brackets

Code
<type_what_you_need_here>

doesnt mean

Code
<something.deb>

rather it means

Code
something.deb
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: WILL on March 13, 2008, 04:45:23 pm
Code
Thanks ! I did :
[quote]chan@MrChan:~/Desktop/CB$ sudo dpkg -i codeblock_8.02-0ubuntu1_i386.deb codeblocks-contrib_8.02-0ubuntu1_i386.deb codeblocks-dbg_8.02-0ubuntu1_i386.deb codeblocks-dev_8.02-0ubuntu1_i386.deb libcodeblocks0_8.02-0ubuntu1_i386.deb libwxsmithlib0_8.02-0ubuntu1_i386.deb libwxsmithlib0-dev_8.02-0ubuntu1_i386.deb
dpkg: error processing codeblock_8.02-0ubuntu1_i386.deb (--install):
 cannot access archive: No such file or directory
(Reading database ... 130116 files and directories currently installed.)
Preparing to replace codeblocks-contrib 8.02-0ubuntu1 (using codeblocks-contrib_8.02-0ubuntu1_i386.deb) ...
Unpacking replacement codeblocks-contrib ...
Preparing to replace codeblocks-dbg 8.02-0ubuntu1 (using codeblocks-dbg_8.02-0ubuntu1_i386.deb) ...
Unpacking replacement codeblocks-dbg ...
Preparing to replace codeblocks-dev 8.02-0ubuntu1 (using codeblocks-dev_8.02-0ubuntu1_i386.deb) ...
Unpacking replacement codeblocks-dev ...
Preparing to replace libcodeblocks0 8.02-0ubuntu1 (using libcodeblocks0_8.02-0ubuntu1_i386.deb) ...
Unpacking replacement libcodeblocks0 ...
Preparing to replace libwxsmithlib0 8.02-0ubuntu1 (using libwxsmithlib0_8.02-0ubuntu1_i386.deb) ...
Unpacking replacement libwxsmithlib0 ...
Preparing to replace libwxsmithlib0-dev 8.02-0ubuntu1 (using libwxsmithlib0-dev_8.02-0ubuntu1_i386.deb) ...
Unpacking replacement libwxsmithlib0-dev ...
dpkg: dependency problems prevent configuration of codeblocks-contrib:
 codeblocks-contrib depends on codeblocks (= 8.02-0ubuntu1); however:
  Package codeblocks is not installed.
dpkg: error processing codeblocks-contrib (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of codeblocks-dbg:
 codeblocks-dbg depends on codeblocks (= 8.02-0ubuntu1); however:
  Package codeblocks is not installed.
dpkg: error processing codeblocks-dbg (--install):
 dependency problems - leaving unconfigured
Setting up libcodeblocks0 (8.02-0ubuntu1) ...

Setting up libwxsmithlib0 (8.02-0ubuntu1) ...

Setting up libwxsmithlib0-dev (8.02-0ubuntu1) ...
Setting up codeblocks-dev (8.02-0ubuntu1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 codeblock_8.02-0ubuntu1_i386.deb
 codeblocks-contrib
 codeblocks-dbg
chan@MrChan:~/Desktop/CB$

It got some errors, and I still didn't find CB on my pc yet :( ! Could you help ?
Title: Re: Troubles installing C::B 8.02 on Ubuntu
Post by: WILL on March 13, 2008, 04:56:33 pm
Thanks for all your help T_T ! Finally I got it guys, so happy now haha T_T !