avvllvva Posted February 4, 2010 Share Posted February 4, 2010 Hi, Is it possible to install gcc(c compiler) on server thru putty? If so what are the commands for it? Also from where I can get gcc package, i already googled a lot but didn't get the exact one. Any references from your side ? Thanks in advance Quote Link to comment Share on other sites More sharing options...
oni-kun Posted February 4, 2010 Share Posted February 4, 2010 Hi, Is it possible to install gcc(c compiler) on server thru putty? If so what are the commands for it? Also from where I can get gcc package, i already googled a lot but didn't get the exact one. Any references from your side ? Thanks in advance What distro are you using? Can you not run yum build-essentials yum gcc -- apt-get build-essentials apt-get gcc ... You can always ftp it from ftp://ftp.gnu.org/gnu/gcc/ with wget and untar and install it from there.. Quote Link to comment Share on other sites More sharing options...
trq Posted February 4, 2010 Share Posted February 4, 2010 Anything you can do within a shell can be done via putty, it is simply an ssh client. As oni-kun suggested, use your package manager to install gcc. One typo... apt-get build-essentials should be apt-get build-essential on Debian. Quote Link to comment Share on other sites More sharing options...
avvllvva Posted February 4, 2010 Author Share Posted February 4, 2010 I've tried both, but showing error -bash: yum: command not found -- -bash: apt-get: command not found Also I'm new to Linux, so can you please elborate on this, yum build-essential yum gcc -- apt-get build-essential apt-get gcc Quote Link to comment Share on other sites More sharing options...
trq Posted February 4, 2010 Share Posted February 4, 2010 yum and apt are package managers most commonly used on Redhat (Fedora, CentOS) & Debian (Ubuntu) respectively. Your forgot to answer the What distro are you using? question. Quote Link to comment Share on other sites More sharing options...
avvllvva Posted February 4, 2010 Author Share Posted February 4, 2010 I have no idea abut it, Is there anyway to know which distro are using on my server? I tried this uname -a It saying only Linux, nothing abut distro... Quote Link to comment Share on other sites More sharing options...
trq Posted February 4, 2010 Share Posted February 4, 2010 There's n real reliable method, closest might be to check your issue file. cat /etc/issue It amazing how many people are hiring machines they know nothing about these days. Quote Link to comment Share on other sites More sharing options...
avvllvva Posted February 4, 2010 Author Share Posted February 4, 2010 it showing CentOS release 5.2 (Final) Kernel \r on an \m Quote Link to comment Share on other sites More sharing options...
trq Posted February 4, 2010 Share Posted February 4, 2010 Then you are using CentOS. yum should be your package manager, though you will need to be the root user to execute it. For more information on yum, take a look at the manual. man yum Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.