Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: LinuxNewb on April 11, 2008, 05:18:34 am

Title: Installing Code::Blocks on Ubuntu 7.10
Post by: LinuxNewb on April 11, 2008, 05:18:34 am
Hello,

Can somebody please tell me how to install Code::Blocks on my Linux machine (Ubuntu 7.10)?

It installed easily on my Mac, my Windows Vista PC, and on my Windows XP PC at work.
Why is it such a pain to get it running on Ubuntu?

I've downloaded the latest DEB packages but when I try to install them they say they are all dependent on eachother.
This should be a lot simpler than it is.

Anyway, I guess I'm just a bit frustrated right now. If someone could give me a hand, that would be great, because Code::Blocks is my favorite editor and the C++ tools I'm using now only work on Linux.
Title: Re: Installing Code::Blocks on Ubuntu 7.10
Post by: Jenna on April 11, 2008, 07:46:16 am
If you don't post the exact error -message it's hard to find out what really happens.

I guess you don't have the right version of wxWidgets installed.

Have you read "Note 2" on the download-page (http://www.codeblocks.org/downloads/5) [edit]or and (for ubuntu-users who do not use gutsy)[/edit] the original wxWidgets-article about installing wxWidgets on ubuntu and debian (http://wiki.wxpython.org/InstallingOnUbuntuOrDebian) ?
Title: Re: Installing Code::Blocks on Ubuntu 7.10
Post by: leon on April 11, 2008, 11:21:17 am
I tried recently to upgade my version of CB and was told that I needed wxwidgets 2.8 and 7.10 has package for 2.6 by default.
Title: Re: Installing Code::Blocks on Ubuntu 7.10
Post by: Jenna on April 11, 2008, 11:30:50 am
I tried recently to upgade my version of CB and was told that I needed wxwidgets 2.8 and 7.10 has package for 2.6 by default.

Have you read "Note 2" on the download-page (http://www.codeblocks.org/downloads/5) or the original wxWidgets-article about installing wxWidgets on ubuntu and debian (http://wiki.wxpython.org/InstallingOnUbuntuOrDebian) ?

The "or" should be replaced by an "and", because you might need other packages, if you do not use gutsy (i will do so in my first post).

No more to say.

Edit:

Or use the repo provided by pasgui.
Read more: http://lgp203.free.fr/spip/spip.php?article1 (http://lgp203.free.fr/spip/spip.php?article1)
Title: Re: Installing Code::Blocks on Ubuntu 7.10
Post by: drdos2006 on April 12, 2008, 12:19:41 am
Here is how I did it.

http://ubuntuforums.org/showthread.php?t=750323

regards
Title: Re: Installing Code::Blocks on Ubuntu 7.10
Post by: san on April 12, 2008, 11:55:09 am
I use the [LGP] (pasgui) repository for code::blocks on ubuntu 7.10 and the official wxwidgets repository.

Check this page for more information: http://lgp203.free.fr/spip/spip.php?article1

Very easy (just add two repositories) and install code::blocks. Now updates will come without having to check it manually etc.


[edit]
Ah Jens already mentioned this repository.. well let me explain it as simple as it can get


1) Add the repositories to /etc/apt/sources.list:

Open the file with a graphical editor as root. Paste the following line in a terminal.
Code
gksu gedit /etc/apt/sources.list

Paste this at the end:
Code
# codeblocks
deb http://lgp203.free.fr/ubuntu/ gutsy universe
# wx widgets
deb http://apt.wxwidgets.org/ gutsy-wx main

2) To make sure your package system trusts these sources add their keys.

Enter these two lines at the terminal
Code
wget -q http://lgp203.free.fr/public.key -O- | sudo apt-key add -
wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -

And update the packages by entering the following lines on the terminal:
Code
sudo apt-get update
sudo apt-get upgrade

3) Install code::blocks

Enter the following line in the terminal
Code
sudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib


Now that was not hard was it? It's just a bit different than the windows/osx install but remember that now you automaticly receive the new nightly builds!

Enjoy!