Linux - NewbieThis 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.
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.
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.
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.
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.
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.
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" ?
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 :-)
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.