Author Topic: Installing Code::Blocks on Ubuntu 7.10  (Read 14487 times)

LinuxNewb

  • Guest
Installing Code::Blocks on Ubuntu 7.10
« 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.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Installing Code::Blocks on Ubuntu 7.10
« Reply #1 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 [edit]or and (for ubuntu-users who do not use gutsy)[/edit] the original wxWidgets-article about installing wxWidgets on ubuntu and debian ?

Offline leon

  • Single posting newcomer
  • *
  • Posts: 4
Re: Installing Code::Blocks on Ubuntu 7.10
« Reply #2 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.
Glass Arcade, Tauntonions
Noli illegitimi carborundum

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Installing Code::Blocks on Ubuntu 7.10
« Reply #3 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 or the original wxWidgets-article about installing wxWidgets on ubuntu and debian ?

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

Offline drdos2006

  • Single posting newcomer
  • *
  • Posts: 3
Re: Installing Code::Blocks on Ubuntu 7.10
« Reply #4 on: April 12, 2008, 12:19:41 am »

Offline san

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Installing Code::Blocks on Ubuntu 7.10
« Reply #5 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: [Select]
gksu gedit /etc/apt/sources.list
Paste this at the end:
Code: [Select]
# 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: [Select]
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: [Select]
sudo apt-get update
sudo apt-get upgrade

3) Install code::blocks

Enter the following line in the terminal
Code: [Select]
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!

« Last Edit: April 12, 2008, 12:07:34 pm by san »