LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2009, 04:33 PM   #1
Dopamine
LQ Newbie
 
Registered: Sep 2009
Posts: 14

Rep: Reputation: 0
Installing GCC. I am so lost


Hi

I have been trying to install GCC compiler for a little while now but i am having some troubles. I read through the help and installation procedures here http://gcc.gnu.org/install/configure.html, but couldnt really decipher that at all to be honest.

I downloaded the file and extracted it, where do i go from there?

Thank you

PS.

What i tried was running ./configure in the gcc directory but this is what i get:

checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: in `/home/student2/gcc-4.4.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
 
Old 11-09-2009, 04:42 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The problem is that you need a compiler to build the source. You should use your distro's package manager to install a pre-built package for gcc. If you don't know how to use your distro's package manager, tell us which distro you're using.
 
Old 11-09-2009, 04:46 PM   #3
Dopamine
LQ Newbie
 
Registered: Sep 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Destro is:

Red Hat Linux Release 8.0 (Psyche)
2.4.18-24

just a heads up this is the destro used by the college i am attending, i dont have root privlidges and i connect to the machine remotely using putty. in case that helps with anything.

Thanks
 
Old 11-09-2009, 05:14 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Support for RH8 was dropped prior to 2003 and there have been no updates since that time.

If GCC is not on that machine then there is no way you can compile it on that machine.
 
Old 11-09-2009, 05:30 PM   #5
Dopamine
LQ Newbie
 
Registered: Sep 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lazlow View Post
Support for RH8 was dropped prior to 2003 and there have been no updates since that time.

If GCC is not on that machine then there is no way you can compile it on that machine.

Yea GCC is definetly not on the machine. Thanks anyway.

ftw XD
 
Old 11-09-2009, 05:52 PM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Why do you want GCC on that college machine?

What machine do you use for your end of that remote connection? Isn't it more effective to use GCC on your own machine?

But if you really really want gcc on the college machine and assuming they permit you to use enough disk space in (a subdirectory in) you home directory, it can be done.

I'm not sure how to manually unpack an RPM nor where to get the right one. But I think even a .deb file would work and only needs to be roughly the right one.

GCC is designed to be usable when installed into some subdirectory unrelated to where it normally belongs. It wouldn't be easy, but I think it would be possible to unpack all the files of any compatible binary copy of GCC into a subdirectory tree of ~ and set some environment variables to make it usable.
 
Old 11-09-2009, 06:10 PM   #7
Dopamine
LQ Newbie
 
Registered: Sep 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by johnsfine View Post
Why do you want GCC on that college machine?

What machine do you use for your end of that remote connection? Isn't it more effective to use GCC on your own machine?

But if you really really want gcc on the college machine and assuming they permit you to use enough disk space in (a subdirectory in) you home directory, it can be done.

I'm not sure how to manually unpack an RPM nor where to get the right one. But I think even a .deb file would work and only needs to be roughly the right one.

GCC is designed to be usable when installed into some subdirectory unrelated to where it normally belongs. It wouldn't be easy, but I think it would be possible to unpack all the files of any compatible binary copy of GCC into a subdirectory tree of ~ and set some environment variables to make it usable.

The reason i am trying to get it on there is to compile a program called Hydra. The instructor gave us a side project, if we get the root password to the UNIX box we get a 4.0 in the class. We are allowed to use any method except being physically at the machine (aka no recovery mode or whatever it is called xD)

I will try to find a .deb file, i looked for RPM but i could find any yet but i will try to find that as well.

I have GCC unpacked into a subdirectory in the ~ at the moment, does it belong somewhere in a directory like one in the $PATH?
Also, What do you mean by "set some environment variables to make it usable" ?

';..;'


Last edited by Dopamine; 11-09-2009 at 06:15 PM.
 
Old 11-09-2009, 06:21 PM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Quote:
Originally Posted by Dopamine View Post
The reason i am trying to get it on there is to compile a program called Hydra. The instructor gave us a side project, if we get the root password to the UNIX box we get a 4.0 in the class. We are allowed to use any method except being physically at the machine (aka no recovery mode or whatever it is called xD)
Ohh, there are easier ways to do this, but forum rules dictate we can't tell you :-)

Evo2.
 
Old 11-09-2009, 08:57 PM   #9
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by Dopamine View Post
The reason i am trying to get it on there is to compile a program called Hydra.
Don't you have access to another Linux system where you could compile a copy of Hydra? It isn't that hard to compile a program on one system compatible with running on another. I'm sure that would be easier than installing GCC (given your knowledge level and constraints).

Hydra is also available for download precompiled from some questionable sites (from from some less questionable sites as well. I didn't do much of a search). I wouldn't trust one of those precompiled copies, but maybe that's just me.

I don't have any direct knowledge about the suitability of Hydra for the desired task, just how to get a compiled copy for the target system.
 
Old 11-09-2009, 10:24 PM   #10
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Ohh, there are easier ways to do this, but forum rules dictate we can't tell you :-)

Evo2.
but the main reason we cannot tell you is other user browsing the forum will see how and hack somones box!
 
Old 11-09-2009, 10:32 PM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
A second reason is that this is homework. I'm sure the professor will be wanting you to do your own work since it will result in an A for the class. Using such an old distro, it seems that the professor is almost making things easy for you.
 
Old 11-10-2009, 11:17 AM   #12
Dopamine
LQ Newbie
 
Registered: Sep 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by johnsfine View Post
Don't you have access to another Linux system where you could compile a copy of Hydra? It isn't that hard to compile a program on one system compatible with running on another. I'm sure that would be easier than installing GCC (given your knowledge level and constraints).

Hydra is also available for download precompiled from some questionable sites (from from some less questionable sites as well. I didn't do much of a search). I wouldn't trust one of those precompiled copies, but maybe that's just me.

I don't have any direct knowledge about the suitability of Hydra for the desired task, just how to get a compiled copy for the target system.
Sadly, i do not have access to another linux system at the moment, i was working with fedora on my old PC but the motherboard died on me.

Precompiled does sound a bit risky, and it would take out the fun of trying to get hydra up and running from source. I dont want to do it from windows either because that would take out the fun of working with linux xD
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing vmware on Open Suse 11.1 - Requires original gcc 4.32 - gcc now 4.3 cyclops.matrix Linux - Software 2 08-31-2009 03:52 PM
After GCC package install- Lost DSL connection Marlinnhag@aol.com SUSE / openSUSE 0 10-12-2006 04:07 PM
Installing netcat and lost.... Jagtek Linux - Newbie 5 03-31-2006 01:59 PM
I lost my Linux After installing XP ardentphil69 Linux - Newbie 5 04-29-2005 12:17 PM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 06:28 AM


All times are GMT -5. The time now is 01:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration