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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-09-2009, 03:33 PM
|
#1
|
LQ Newbie
Registered: Sep 2009
Posts: 14
Rep:
|
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.
|
|
|
11-09-2009, 03:42 PM
|
#2
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep:
|
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.
|
|
|
11-09-2009, 03:46 PM
|
#3
|
LQ Newbie
Registered: Sep 2009
Posts: 14
Original Poster
Rep:
|
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
|
|
|
11-09-2009, 04:14 PM
|
#4
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
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.
|
|
|
11-09-2009, 04:30 PM
|
#5
|
LQ Newbie
Registered: Sep 2009
Posts: 14
Original Poster
Rep:
|
Quote:
Originally Posted by lazlow
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
|
|
|
11-09-2009, 04:52 PM
|
#6
|
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286
|
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.
|
|
|
11-09-2009, 05:10 PM
|
#7
|
LQ Newbie
Registered: Sep 2009
Posts: 14
Original Poster
Rep:
|
Quote:
Originally Posted by johnsfine
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 05:15 PM.
|
|
|
11-09-2009, 05:21 PM
|
#8
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by Dopamine
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.
|
|
|
11-09-2009, 07:57 PM
|
#9
|
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286
|
Quote:
Originally Posted by Dopamine
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.
|
|
|
11-09-2009, 09:24 PM
|
#10
|
Senior Member
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
|
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!
|
|
|
11-09-2009, 09:32 PM
|
#11
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
11-10-2009, 10:17 AM
|
#12
|
LQ Newbie
Registered: Sep 2009
Posts: 14
Original Poster
Rep:
|
Quote:
Originally Posted by johnsfine
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
|
|
|
All times are GMT -5. The time now is 01:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|