LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   code::blocks (http://www.linuxquestions.org/questions/linux-software-2/code-blocks-784346/)

elishac 01-24-2010 04:28 AM

code::blocks
 
Hi,

i'm using ubuntu 9.10 and I would like to install code::blocks.
I'm sorry to ask this question, it has probably been answered hundreds of times, but everything I found on the Internet is at least 3 years old.
Here is what I did so far :
sudo apt-get install gdb
sudo apt-get install build-essential
sudo apt-get install libwxgtk2.6-0
sudo apt-get install libwxgtk2.6-dev wx2.6-headers wx-common
sudo apt-get install wx2.6-doc

What do I need to do now ?


Thanks for your help.

slightlystoopid 01-24-2010 04:40 AM

why do all that? why not just apt-get install codeblocks?

cola 01-24-2010 04:40 AM

Quote:

Originally Posted by elishac (Post 3838436)
Hi,

i'm using ubuntu 9.10 and I would like to install code::blocks.
I'm sorry to ask this question, it has probably been answered hundreds of times, but everything I found on the Internet is at least 3 years old.
Here is what I did so far :
sudo apt-get install gdb
sudo apt-get install build-essential
sudo apt-get install libwxgtk2.6-0
sudo apt-get install libwxgtk2.6-dev wx2.6-headers wx-common
sudo apt-get install wx2.6-doc

What do I need to do now ?


Thanks for your help.

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

http://wiki.codeblocks.org/index.php...g_Code::Blocks

elishac 01-24-2010 04:44 AM

yeah this is were I was, but then it gets quite a lot difficult as you can see (and the post was written in 2007, 3 years ago, as I said). I don't understand what's next.

What exactly do I have to type in now ?

I may add that I'm a beginner so please give me a step by step.

cola 01-24-2010 04:48 AM

Quote:

Originally Posted by elishac (Post 3838449)
yeah this is were I was, but then it gets quite a lot difficult as you can see (and the post was written in 2007, 3 years ago, as I said). I don't understand what's next.

What exactly do I have to type in now ?

I may add that I'm a beginner so please give me a step by step.

Read this http://wiki.codeblocks.org/index.php...uild_on_Ubuntu

cola 01-24-2010 04:51 AM

Quote:

Originally Posted by elishac (Post 3838449)
yeah this is were I was, but then it gets quite a lot difficult as you can see (and the post was written in 2007, 3 years ago, as I said). I don't understand what's next.

What exactly do I have to type in now ?

I may add that I'm a beginner so please give me a step by step.

You can download that from here: http://www.codeblocks.org/downloads/5

elishac 01-24-2010 04:53 AM

I'm such a beginner that I don't even know how to install something on linux. What do I do, once I've downloaded the link you gave me?
And what about the lines that I previously wrote ? Shall I remove some of the things I had installed ?

I don't understand this :
"NOTE: 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). "

slightlystoopid 01-24-2010 04:55 AM

I still don't understand why, being a new user, you're trying to install the nightly build. Is there something wrong with the version in the repos?

Moreover, the version I see in the repos is newer than what is listed at http://www.codeblocks.org/downloads/5

cola 01-24-2010 04:59 AM

Quote:

Originally Posted by elishac (Post 3838461)
I'm such a beginner that I don't even know how to install something on linux. What do I do, once I've downloaded the link you gave me?
And what about the lines that I previously wrote ? Shall I remove some of the things I had installed ?

I don't understand this :
"NOTE: 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). "

I assumed you downloaded codeblocks_8.02-0ubuntu1.deb.tar.gz from http://www.codeblocks.org/downloads/5

Code:

tar vzxf codeblocks_8.02-0ubuntu1.deb.tar.gz
cd tothatdirectory<codeblocks_8.02-0ubuntu1.deb>
sudo dpkg -i *.deb

sudo dpkg -i file.deb , this is the command to install .deb packages.

elishac 01-24-2010 05:02 AM

lol, I've told you I'm a beginner, I have no idea what I'm doing. I don't know what you're talking about, I don't know what the "nightly build" is, nor the "repos".
I just tried to follow the instructions that were given on this site, which was the first result when I googled "how to install code::blocks on ubuntu".
Just tell me step by step what I have to do from where I am (including solving the mistakes that I may have made), and I'll do exactly as you say.

cola 01-24-2010 05:08 AM

Quote:

Originally Posted by elishac (Post 3838474)
lol, I've told you I'm a beginner, I have no idea what I'm doing. I don't know what you're talking about, I don't know what the "nightly build" is, nor the "repos".
I just tried to follow the instructions that were given on this site, which was the first result when I googled "how to install code::blocks on ubuntu".
Just tell me step by step what I have to do from where I am (including solving the mistakes that I may have made), and I'll do exactly as you say.

Download codeblocks from here http://sourceforge.net/projects/code...ar.gz/download

Type those commands i posted and report.

elishac 01-24-2010 05:10 AM

Ok, so I downloaded it, and it goes by default into ~/Downloads.
I wrote cd ./Downloads and then tar vzxf codeblocks_8.02-0ubuntu1.deb.tar.gz.
I don't understand your next instruction (cd tothatdirectory<codeblocks_8.02-0ubuntu1.deb>)

cola 01-24-2010 05:14 AM

Quote:

Originally Posted by elishac (Post 3838483)
Ok, so I downloaded it, and it goes by default into ~/Downloads.
I wrote cd ./Downloads and then tar vzxf codeblocks_8.02-0ubuntu1.deb.tar.gz.
I don't understand your next instruction (cd tothatdirectory<codeblocks_8.02-0ubuntu1.deb>)

After typing tar command you should get extracted folder in that directory.
cd <thatdirectory>
dpkg -i *.deb

elishac 01-24-2010 05:19 AM

It extracted in ~/downloads, which I was already in. I skipped that step.
So I wrote dpkg -i *.deb.
What now?

slightlystoopid 01-24-2010 05:19 AM

Look, just delete everything you downloaded. It's old. There's a new version. Type this:

Code:

sudo apt-get install codeblocks
If it's not there, it's because the universe repos aren't enabled.

I recommend the incredibly beginner friendly tool Synaptic. Then you can just click Synaptic in your menu and see a searchable list of every package in all your repositories.

Code:

sudo apt-get install synaptic
In Synaptic, go to Settings - Repositories. Make sure universe is checked.

Quick Search "codeblocks"

Install. Done.


All times are GMT -5. The time now is 07:09 PM.