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 know very little about linux.
I am running a web server on a Centos 5.6 server.
I was trying to install git, but I can't because I don't have gcc installed.
So, I tried to install gcc, but then I get a massive amount of prerequisities like glibs then kernal, etc. and I am like whoa! Not so fast!
All I want to do is install git!
The latest versions of gcc are beyond 5.6. Is there a simple installer for gcc that includes everything that doesn't require a full OS update?
Or is there another way to install git?
I have a folder called /usr/libexec/gcc/x86_64-redhat-linux/ which has a 4.1.1 and a 4.1.2 folder with cc1 inside, but when I typed "rpm -ql gcc" it said package gcc is not installed.
I have been at the brink of giving up for about 10 hours. But I keep trying this and that. Are there some simple solutions here?
If you are still on 5.6 then you're looking at about 100mb of updates to get to 5.7. This is totally normal and in fact is a Good Thing because you'll get the latest bug fixes and security patches.
I recommend updating your system regularly. If this is an important production server then it's prudent to have a test system too.
Here are some resources to help you get started with CentOS:
Thanks. I am a little concerned in that the server is not connected to the Internet. It is a intranet server. I suppose I need to check into this. I don't think it is quite simple for a newbie like me to do a new OS upgrade.
Is it possible that CentOS doesn't have gcc installed? Is there no other way to install git without gcc installed?
Thanks for your suggestion that I should upgrade from 5.6 but I don't see that the links you provided assist me with that.
While I realize I know very little about CentOS, I am trying to solve my current problem before I go off onto another lengthy study, among the dozens of things I am already deeply delved into study-wise.
Last edited by KingSalibah; 11-21-2011 at 02:59 PM.
How are you trying to install git? Do you know what gcc is? If you are trying to install from a tarball with source code then thats why you need gcc to compile it. GCC, the GNU Compiler Collection is a C language compiler. Have you used YUM to try and install needed tools?
Test if you have GCC install type in terminal aka command prompt
Code:
gcc -v
It should give you the version of gcc if installed.
I couldn't find an rpm on git's site, but jmc1987 gave me the idea of looking further. I found the packages at http://pkgs.repoforge.org/git/. Yay!
I am not sure what to do about 5.6 upgrade. I would need to find a good tutorial about that. As to gcc, I thought it would be installed already and then thought it would be easy to install, but I wasn't so lucky.
Thanks for your suggestion that I should upgrade from 5.6 but I don't see that the links you provided assist me with that.
While I realize I know very little about CentOS, I am trying to solve my current problem before I go off onto another lengthy study, among the dozens of things I am already deeply delved into study-wise.
Your approach is correct, let's forget about upgrading to 5.7 for now and address your immediate problem of installing git.
The package manager (tool for installing software) in CentOS is called 'yum' so start here:
Because this machine is not connected to the internet, you may wish to set up a local repository. This could be a local mirror somewhere on the network or as simple as a copy of the CentOS DVD.
(edit) Weird if git is not in the centos repos but if so jmc1987 has some advice above.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.