LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-23-2010, 02:48 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
GCC installation .


I m trying to Install FTP (vsftpd-2.3.2) on my linux machine.

Code:
# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description:    Enterprise Linux Enterprise Linux Server release 5.2 (Carthage)
Release:        5.2
Codename:       Carthage
# uname -r
2.6.18-92.el5
While installing neccessory packages for ftp functioning I m getting error while issuing make .


Code:
# make
gcc -c main.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
make: gcc: Command not found
make: *** [main.o] Error 127
I think there is no gcc installed on my machine.
Code:
# which gcc
/usr/bin/which: no gcc in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
Does it mean i will make able to install any software that requires make or just some software that requires gcc?

I have tried to download gcc from http://gcc.gnu.org/ but unable to do so as i got confused over which one to choose and install.I dont want to install wrong gcc for my distribution.


Why does gcc is required and not there in the OS by default?

Please help.

Last edited by pinga123; 11-23-2010 at 02:52 AM.
 
Old 11-23-2010, 03:35 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
GCC is a development tool. Not installed by default on RH EL 5.

# yum install gcc glibc-devel
.. will provide a gcc + files required to compile.
Quote:
I have tried to download gcc from ...gcc.gnu.org
You cannot build gcc, when you have no compiler = gcc.
..
..

# yum install vsftpd : Will provide version 2.0.5.
Is also available on the install DVD or the cd, disk 2,
which also includes gcc, gcc-c++ , etc. etc.
..

Last edited by knudfl; 11-23-2010 at 04:33 AM.
 
Old 11-23-2010, 04:39 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by knudfl View Post
GCC is a development tool. Not installed by default on RH EL 5.

# yum install gcc glibc-devel
.. will provide a gcc + files required to compile.

You cannot build gcc, when you have no compiler = gcc.
..
..

# yum install vsftpd : Will provide version 2.0.5.
Is also available on the install DVD or the cd, disk 2,
which also includes gcc, gcc-c++ , etc. etc.
..
Thanks for the info but it seems like Yum is not able to download the package.Do i need to specify another keywork for vsftpd?
Quote:
# yum install vsftpd
Loading "security" plugin
Setting up Install Process
Parsing package install arguments
No package vsftpd available.
Nothing to do
 
Old 11-24-2010, 04:04 AM   #4
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
You can try
yum list vsftp* to see all the packages that have name similar to your's which are available for insatll, if yum list fails to show the package you are looking for, try running

yum update

Then try yum list again.

If it still does not list the package that you want, then you might have to add relevant repos into your repos list.
 
Old 11-24-2010, 12:53 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Redhat EL5 software repos consist of certain groups.

May be "The group with vsftp" isn't enabled.

Suggest : Ask Redhat how to do it.

..
 
Old 11-24-2010, 03:00 PM   #6
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
On a RHEL5 clone, I did
Code:
yum search vsftp
It returned
Code:
vsftpd.i386 : vsftpd - Very Secure Ftp Daemon
I could then do
Code:
sudo yum install vsftpd
--- rod.
 
Old 11-25-2010, 05:06 AM   #7
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
This is the exact problem

Quote:
Simple: yum doesn't care about any subscription, as you can configure alternative update channels. It just can't see the contents of the official Red Hat repositories and thinks they are empty.

From my point of view you've got 2 options:

1. Get an official subscription
2. Move to an non-subscription based distribution. CentOS, for example, is built from the same sources as RHEL, using the same settings. The only difference is that any Red Hat specific payable software isn't available, and you don't have guaranteed support.


Should you go for option 'b', there's a Migration Guide on the CentOS wiki.
 
  


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
gcc installation kdg Linux - Newbie 3 11-28-2009 11:22 AM
Gcc installation tulsi Linux - Software 1 09-14-2009 10:04 AM
Initial gcc installation-How to compile gcc itself pgb205 Linux - Software 4 02-26-2008 11:24 PM
GCC installation and such Icomey Ubuntu 1 01-18-2006 02:13 PM
gcc installation Allahh Linux - Newbie 4 09-22-2004 01:35 PM


All times are GMT -5. The time now is 01:01 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