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 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?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
..
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.