yum groupinstall "Development Tools"
or
yum install gcc gcc-c++ kernel-devel
Answer from CagedMantis on Stack OverflowHow to install git without package-manager and no "make" command on RHEL ?
Installing packages on RHEL 9 without an internet connection.
Videos
make is in the make package, part of the "Development Tools" group which you should install before attempting to build anything.
if your question is how to install make on redhat then you can do it using command yum install make.
if yum not work then try to set proxy URL to the proxy server in file /etc/yum.conf.
I try to install git from source. It need make command in the process. However, the server has no make command.
$ tar -zxf git-2.8.0.tar.gz $ cd git-2.8.0 $ make configure $ ./configure --prefix=/usr $ make all doc info $ sudo make install install-doc install-html install-info
I ,then, try to build the binary file in another server (which has make command), compress those files and "scp" to the target server (which i need to install git). .... and I don't really know what can I do next? Can someone help me? Thank you.
We have three options for installing packages on a RHEL 9 system without internet access:
-
Install the required packages on a machine with internet access and then transfer the repository or RPMs to the offline machine.
-
Using Binaries
makeand make install -
Use
rpmto install the packages manually, along with all necessary dependencies.
Creating custom Repo
We would appreciate your input on these approaches. If you could share any proven, battle-tested methods or best practices for this scenario, it would be extremely helpful
Do you have any specific problem with yum?
Normally you would do yum install make
Or, maybe, sudo yum install make
Wow :-), Ok, i write the standard Make reference here, you take your pick on the source.
wget http://ftp.gnu.org/pub/gnu/make/make-3.81.tar.bz2
tar xfj make-3.81.tar.bz2
./configure
make
sudo make install
And, while you are there, might want to reinstall yum too...
Good to hear you have fixed it.
Just download rpm:
wget http://mirrors.cat.pdx.edu/centos/5.3/os/x86_64/CentOS/make-3.81-3.el5.x86_64.rpm
and install it via rpm:
rpm -ivh make-3.81-3.el5.x86_64.rpm