17228 Posts in 1618 Topics- by 1636 Members - Latest Member: bob1955

FORUM RULES

Pages: [1]
  Print  
Author Topic: Code:Block How to install in ubuntu.  (Read 435 times) Average Rating: 0
Tech Girl V 0.01 [MONI]
Administrator
Brown Shield
*

Fame: 480
Offline Offline

Posts: 2226


Tech Girl V 0.01 [MONI]


« on: November 03, 2008, 06:42:38 AM »

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:

gksu gedit /etc/apt/sources.list


Paste this at the end:

# codeblocks
deb http://lgp203.free.fr/ubuntu/ gutsy universe
# wx widgets
deb http://apt.wxwidgets.org/ gutsy-wx main

Note: Depending on what version of Ubuntu you are using, in step 1 you
may need to replace gutsy with feisty.


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

Enter these two lines at the terminal:

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:

sudo apt-get update
sudo apt-get upgrade


3) Install Code::Blocks

Enter the following line in the terminal:

sudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib


You are able to step 3 whenever you want you to get the latest nightly build.

You should see Code::Blocks in the Programming Languages listing of your programs.
Enjoy!


source
Logged

LoVeSmItH
Administrator
Purple Shield
*

Fame: 363
Offline Offline

Posts: 1982


Góδƒóršáκεη


« Reply #1 on: November 03, 2008, 07:25:00 AM »

yo chahi purano version ko ubuntu ko lagi ho hai gutsy gibbon bhaneko 7.x version ko ubuntu ho.
Logged

Tech Girl V 0.01 [MONI]
Administrator
Brown Shield
*

Fame: 480
Offline Offline

Posts: 2226


Tech Girl V 0.01 [MONI]


« Reply #2 on: November 03, 2008, 07:29:15 AM »

Ya... this is not good can u plz tell me how to install new one..
Logged

LoVeSmItH
Administrator
Purple Shield
*

Fame: 363
Offline Offline

Posts: 1982


Góδƒóršáκεη


« Reply #3 on: November 03, 2008, 07:33:22 AM »

may be these things doesnt work on new version...or may be it works
why dont yo go and fetch same tutorials from the place same place for hardy
or may be it works if you replace word gutsy with hardy
Logged

_khAttAm_
White Shield
*

Fame: 4
Offline Offline

Posts: 28


« Reply #4 on: November 14, 2008, 02:42:05 PM »

For Hardy Heron:
Replace gutsy with hardy and it will wok without problems...

For Intrepid Ibex:
will not work as of now, as http://apt.wxwidgets.org/dists/ does not have an entry for intrepid.... so just change to intrepid in the 1st entry only.. then refresh and try to install code blocks.. if it does, great.. well if it does not and says something like "it depends on wxgtk2.0 and it is not going to be installed...." then follow the following procedure:

So, install build-essentials and then download http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.8.9.tar.gz
Now, extact the contents, drop to the terminal and change the directory to the extaracted dir.. now, ls to verify that Makfile exists..
then
./configure
make
sudo make install

Now, fire up synaptic and codeblocks shud install...
Logged
LoVeSmItH
Administrator
Purple Shield
*

Fame: 363
Offline Offline

Posts: 1982


Góδƒóršáκεη


« Reply #5 on: November 14, 2008, 02:47:55 PM »

For Hardy Heron:
Replace gutsy with hardy and it will wok without problems...

For Intrepid Ibex:
will not work as of now, as http://apt.wxwidgets.org/dists/ does not have an entry for intrepid.... so just change to intrepid in the 1st entry only.. then refresh and try to install code blocks.. if it does, great.. well if it does not and says something like "it depends on wxgtk2.0 and it is not going to be installed...." then follow the following procedure:

So, install build-essentials and then download http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.8.9.tar.gz
Now, extact the contents, drop to the terminal and change the directory to the extaracted dir.. now, ls to verify that Makfile exists..
then
./configure
make
sudo make install

Now, fire up synaptic and codeblocks shud install...
khattam bro  welcome  to our community.
I  have some problem installing tarball files

i have installed build essentials
and ./configure works fine
but when i give command make and make install, it says file not found.
suppose i m in desktop/test folder...i run those commands from this folder but still no file found..and i couldnt see make and install files in the folder while seeing through file manager.
Logged

_khAttAm_
White Shield
*

Fame: 4
Offline Offline

Posts: 28


« Reply #6 on: November 14, 2008, 02:50:47 PM »

^I guess you are using intrepid....
Have you installed build-essentials??

Cud you show me a screenshot??
Logged
LoVeSmItH
Administrator
Purple Shield
*

Fame: 363
Offline Offline

Posts: 1982


Góδƒóršáκεη


« Reply #7 on: November 14, 2008, 02:56:22 PM »

i have updated hardy to intreprid and i use KDE 4.1.2. I installed build essentials before i updated it to intrepid...it should work even after update ni haina? or it has different version for intrepid and i have to remove build-essentials and reinstall it again?
Logged

_khAttAm_
White Shield
*

Fame: 4
Offline Offline

Posts: 28


« Reply #8 on: November 14, 2008, 02:59:48 PM »

^afai update hunu parne ho, if required...

cannot find makefile vanchha ho?? ki k vanchha.. details plz...
Logged
LoVeSmItH
Administrator
Purple Shield
*

Fame: 363
Offline Offline

Posts: 1982


Góδƒóršáκεη


« Reply #9 on: November 14, 2008, 03:26:02 PM »

^afai update hunu parne ho, if required...

cannot find makefile vanchha ho?? ki k vanchha.. details plz...
Cannot find Make..no such files and directories...yestai msg dinchha
Logged

_khAttAm_
White Shield
*

Fame: 4
Offline Offline

Posts: 28


« Reply #10 on: November 14, 2008, 03:34:06 PM »

^khai intrepid chalaunei pako chhaina ki broda.. tei vara thaha chhaina... tei pani exact error thaha vako vaye sajilo hunthiyo..


anyways, I think make tool gayo hola, brokn vara.. upgrade garne huda...

now, launch synaptic and search for make.. and install the package make...
and try again..
Logged
LoVeSmItH
Administrator
Purple Shield
*

Fame: 363
Offline Offline

Posts: 1982


Góδƒóršáκεη


« Reply #11 on: November 14, 2008, 03:35:44 PM »

^khai intrepid chalaunei pako chhaina ki broda.. tei vara thaha chhaina... tei pani exact error thaha vako vaye sajilo hunthiyo..


anyways, I think make tool gayo hola, brokn vara.. upgrade garne huda...

now, launch synaptic and search for make.. and install the package make...
and try again..
well thanks will try that first
Logged

_khAttAm_
White Shield
*

Fame: 4
Offline Offline

Posts: 28


« Reply #12 on: November 14, 2008, 03:38:21 PM »

also check if build essentials has been uninstalled too... it might have been removed as well...
Logged
Tech Girl V 0.01 [MONI]
Administrator
Brown Shield
*

Fame: 480
Offline Offline

Posts: 2226


Tech Girl V 0.01 [MONI]


« Reply #13 on: December 19, 2008, 03:47:39 AM »

if found tutorial on installing Code::block
http://www.futuredesktop.org/codeblocks_on_ubuntu_8.04.html
Logged

Pages: [1]
  Print  
 
Jump to: