LinuxQuestions.org
Help answer threads with 0 replies.
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 07-22-2010, 02:30 PM   #1
Taylrl
Member
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 34

Rep: Reputation: 0
Trying to install gcc on KDE and it says I'm missing an instal.sh file


Hey,

I am trying to install gcc so I can compile C++ on a Virtual linux machine I have on my pc. I went to the GNU website and downloaded gcc-g++-4.5.0.tar.gz, unzipped and un-tarred it. This left me with a folder named gcc-4.5.0 which itself contained two folders. One named gcc and another named libstdc++-v3. From trying to follow a (not very clear) guide online I created another folder in the libstdc++-v3 folder named objdir into which I copied the configre executable. I then tried to run it here and was told that I was missing an install.sh file. I found one of these from somewhere else on my machine and copied it into the libstdc++-v3 folder. Now when I try to run the configure executable from the objdir folder I get a message saying "configure: error: cannot run /bin/bash ./config.sub.

Basically all I want to do is get gcc up and running so I can compile some code. What I have been doing so far is probably way off the mark but its as far as I could get from following stuff online.

Any help most appreciated.

Cheers
 
Old 07-22-2010, 03:26 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What distribution are you using? (Hint: KDE is not a distro, but a desktop environment - look for something like Ubuntu, Debian, Red Hat, Mint, Slackware, etc) Typically you can install gcc easily from your distribution's repositories, which is much easier than installing it from the GNU website.
 
Old 07-22-2010, 03:30 PM   #3
Taylrl
Member
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 0
Am using kubuntu. Pretty sure its just ubuntu with KDE.

Sounds great. Where do I go to find the repositories?
 
Old 07-22-2010, 03:40 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quite simple : Use the package manager = Synaptic.
( And hit the 'Refresh' button if not 20,000-30,000 packages are shown.)
Synaptic has a "Search": Look for gcc, g++. You will need both. g++=gcc-c++.

Or use the command line :
1) sudo apt-get update ( to refresh the package lists.)
2) sudo apt-get install gcc g++
......

Last edited by knudfl; 07-22-2010 at 03:46 PM.
 
1 members found this post helpful.
Old 07-22-2010, 04:02 PM   #5
Taylrl
Member
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 0
WOW!! That worked an absolute treat!

Just had to type 2 lines. So simple.

Thanks!!!!
 
Old 07-22-2010, 05:22 PM   #6
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
In fact, the real line should have been
Code:
sudo apt-get install built-essential
With only GCC, you will miss some important dev tools required for compiling such as binutils (assembly tools) and the make file tools. The way you tried to install GCC can't work, as it is the source archive, you need a compiler to compile it first

You can also mark your thread as "[SOLVED]". The "apt-get install" command can be used to install anything. "sudo apt-get install install mysql firefox" will install mysql and firefox.
 
Old 07-22-2010, 05:29 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Quote:
Originally Posted by Elv13 View Post
In fact, the real line should have been
Code:
sudo apt-get install built-essential
It actually should be build-essential, not built.
 
Old 07-22-2010, 06:06 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I don't know why the "install 'build-essential' advise"
is seen so often. It's mainly dpkg-dev + its dependencies.
http://packages.ubuntu.com/lucid/build-essential
QUOTE :
"If you do not plan to build Debian packages, you don't need this package."

dpkg-dev + dependencies :
http://packages.ubuntu.com/lucid/dpkg-dev

P.S. : GCC : It's wrong to copy the 'configure' script into the 'objdir'.
The by gcc recommended build method :
http://www.linuxfromscratch.org/lfs/view/development/
( gcc pass 1 , gcc pass 2 , gcc install (pass 3)).

PPS : @Elv13 : 'binutils' is a dependency for gcc and is installed.
(autoconf automake make libtool bison flex : required too for the most builds.)

Last edited by knudfl; 07-22-2010 at 06:24 PM.
 
Old 07-23-2010, 06:51 AM   #9
Taylrl
Member
 
Registered: Jul 2010
Distribution: Ubuntu
Posts: 34

Original Poster
Rep: Reputation: 0
Thanks Elv13!

I will try build-essential when I am back at home and not at work. The advice given by knudfl has got me up and running and able to compile using gcc.

Thanks for the amasing help!!
 
Old 07-23-2010, 07:07 AM   #10
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by Taylrl View Post
WOW!! That worked an absolute treat!

Just had to type 2 lines. So simple.

Thanks!!!!
That's the Linux way of installing things!
 
  


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
gcc instal siaswar Linux - Software 4 10-13-2009 04:45 AM
Help - Need to instal gcc 2.95 on Fedora kitty07 Linux - Software 9 03-27-2009 10:17 AM
c_compiler missing when trying to instal kernel source 2.4.21-243 wLancer Linux - Software 3 11-30-2004 09:53 AM
lib object missing while trying to instal J2EE SDK brunnopessoa Linux - Software 2 11-06-2004 08:34 AM
gcc-3.0.4 install help / aclocal... missing rioguia Linux - Software 1 11-05-2003 08:52 PM

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

All times are GMT -5. The time now is 10:05 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