LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2010, 04:28 AM   #1
elishac
Member
 
Registered: Nov 2009
Posts: 522

Rep: Reputation: 33
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.
 
Old 01-24-2010, 04:40 AM   #2
slightlystoopid
Member
 
Registered: Jan 2010
Distribution: Arch, Gentoo, FreeBSD
Posts: 64

Rep: Reputation: 16
why do all that? why not just apt-get install codeblocks?
 
Old 01-24-2010, 04:40 AM   #3
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by elishac View Post
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
 
Old 01-24-2010, 04:44 AM   #4
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
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.
 
Old 01-24-2010, 04:48 AM   #5
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by elishac View Post
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
 
Old 01-24-2010, 04:51 AM   #6
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by elishac View Post
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
 
Old 01-24-2010, 04:53 AM   #7
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
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). "

Last edited by elishac; 01-24-2010 at 04:55 AM.
 
Old 01-24-2010, 04:55 AM   #8
slightlystoopid
Member
 
Registered: Jan 2010
Distribution: Arch, Gentoo, FreeBSD
Posts: 64

Rep: Reputation: 16
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

Last edited by slightlystoopid; 01-24-2010 at 04:56 AM.
 
Old 01-24-2010, 04:59 AM   #9
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by elishac View Post
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.
 
Old 01-24-2010, 05:02 AM   #10
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
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.
 
Old 01-24-2010, 05:08 AM   #11
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by elishac View Post
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.
 
Old 01-24-2010, 05:10 AM   #12
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
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>)
 
Old 01-24-2010, 05:14 AM   #13
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by elishac View Post
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
 
Old 01-24-2010, 05:19 AM   #14
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
It extracted in ~/downloads, which I was already in. I skipped that step.
So I wrote dpkg -i *.deb.
What now?
 
Old 01-24-2010, 05:19 AM   #15
slightlystoopid
Member
 
Registered: Jan 2010
Distribution: Arch, Gentoo, FreeBSD
Posts: 64

Rep: Reputation: 16
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Code::Blocks h3x0r Programming 2 04-13-2007 08:35 AM
code::blocks compiling sharapchi Programming 2 11-23-2006 12:50 PM
Scrolling thru threads with code blocks - Thanks minrich LQ Suggestions & Feedback 2 09-01-2006 01:21 PM
What's difference between the two small blocks of c++ code clinux_rulz Programming 9 12-04-2005 08:39 AM
Smilies in Code Blocks Matir LQ Suggestions & Feedback 6 08-19-2005 04:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration