GCC installation .


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers GCC installation .
# 1  
Old 11-23-2010
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 GCC, the GNU Compiler Collection - GNU Project - Free Software Foundation (FSF) 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.
# 2  
Old 11-23-2010
GCC (the GNU Compiler Collection) is required if you try to install software from source, which should rarely be the case on an enterprise platform such as RHEL. A simpler way would be to use yum to install the vsftpd package.
# 3  
Old 11-23-2010
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?
Code:
# yum install vsftpd
Loading "security" plugin
Setting up Install Process
Parsing package install arguments
No package vsftpd available.
Nothing to do


Last edited by pludi; 11-23-2010 at 05:55 AM..
# 4  
Old 11-23-2010
Do you have a subscription with Red Hat? If not, you won't have the required update channel available, and will have to try and install from the installation media using either yum or rpm.
This User Gave Thanks to pludi For This Post:
# 5  
Old 11-23-2010
What is the output of this command?
Code:
yum list vsftpd

# 6  
Old 11-24-2010
Code:
# yum list vsftpd
Loading "security" plugin
Error: No matching Packages to list

I understand i have not yet got subscription from redhat but the error message is so dump that it doesnt indicate of subscription.Yet it makes you think there are no packages available .
Can any 1 put light on this ?
what is the purpose of such error messages .
# 7  
Old 11-24-2010
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.
This User Gave Thanks to pludi For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

GCC compiler installation on Linux OS

Need assistance in getting a GCC compiler on linux server . I wanted to install GCC compiler under local user . System doesnt have any compiler . Is there a way to get a compiler installed without a root user, cant install using (rpm, yum ) When I try to compile the gcc source i get the... (7 Replies)
Discussion started by: ajayram_arya
7 Replies

2. Solaris

Solaris 10 flash installation - fatal error. Solaris installation program exited.

Not very helpful to say the least. Seems to read the flar file and go through the upgrade and then come up with this error. Any ideas? (1 Reply)
Discussion started by: psychocandy
1 Replies

3. UNIX for Dummies Questions & Answers

GCC installation

I was informed that one should have a strong c programming background in order to do a proper compile of GCC. I am of the opinion that having such a background would be helpful but not entirely necessary. What do you think? (1 Reply)
Discussion started by: mjl927
1 Replies

4. Solaris

gcc -3.4.6 solaris installation error

Hi , I am installing gcc 3.4.6 on SunOS labcvs001sm 5.9 Generic_117171-07 sun4u sparc SUNW,Ultra-5_10 . The isa info is 'sparcv'. I have the following with me a)gcc-3.4.6.tar b)gcc-3.4.6-sol9-sparc-local c)libiconv-1.11-sol9-sparc-local d) binutils-2.18.tar.gz e)... (8 Replies)
Discussion started by: sonu2die4
8 Replies

5. Solaris

gcc -3.4.6 installation help

Hi, I want to install the gcc-3.4.6 on solaris 9.5 , in order to compile perl 5.8.8 . I have the following packages . gcc-3.4.6.tar ibiconv-1.11-sol9-sparc-local.gz gcc-3.4.6-sol9-sparc-local libiconv-1.11.tar.gz Where can I find the necessary documents or... (4 Replies)
Discussion started by: sonu2die4
4 Replies

6. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

7. Solaris

installation of Solaris: installation bypasses network config.

hello solaris friends, I've tried installing Sun Solaris 10.0, but everytime it seems to bypass the network config. screen that looks similar to this...here's the url: http://www.hup.hu/old/images/hup/Solaris/Sol10beta7/9.png I'm able to install it all the way through but I get no... (2 Replies)
Discussion started by: cadmiumgreen
2 Replies

8. UNIX for Advanced & Expert Users

gcc installation in solaris 8

Hi, I am having trouble installing gcc 3.4.2-sol8-sparc-local in my sparc machine running solaris 8. It looks like I do not have enough memory in /var , but I have about 3GB free memory in /export/home. I have read some suggestion from previous threads that said it is possible to link /var and... (8 Replies)
Discussion started by: prosper
8 Replies

9. Programming

gcc installation

hi , iam trying to install gcc compiler on a sun sparc sytem running solaris 9 . i have searched the internet for documentaion on how to install gcc , but the steps are unclear . could anyone help me with a document , because the documentaions i found are really confusing . thank you... (1 Reply)
Discussion started by: itspascal
1 Replies
Login or Register to Ask a Question