Download, Build and Install Make 3.81 to a Local Directory From a tar.gz

March 23, 2018

 

This post lists the instructions to download, build and install Make 3.81 to a local directory.

 

Before running these instructions CD into a directory you want to install in.

 

Commands

 

# Save directory

INSTALLDIR=$(pwd)

 

# Put a custom bin folder in place and update the path to check it first

LOCALTOOLS=$(pwd)/tools
echo $LOCALTOOLS
mkdir -p $LOCALTOOLS  
echo export PATH=$LOCALTOOLS/bin:\$PATH > set_env.sh
source ./set_env.sh

 

# Test it
mkdir -p $LOCALTOOLS/bin
echo echo Hello > $LOCALTOOLS/bin/test-set_env.sh
chmod +x $LOCALTOOLS/bin/test-set_env.sh
test-set_env.sh # You should see "Hello"

 

#Get and install make-3.81 locally
CURDIRBEFOREMAKE=$(pwd)
LOCALPACKAGE=$(pwd)/package
echo $LOCALPACKAGE
mkdir -p $LOCALPACKAGE
cd $LOCALPACKAGE
wget https://ftp.gnu.org/gnu/make/make-3.81.tar.gz
tar -xvzf $LOCALPACKAGE/make-3.81.tar.gz
cd make-3.81
./configure --prefix=$LOCALTOOLS
make
sudo make install
cd $CURDIRBEFOREMAKE

 

#Test make
cd $INSTALLDIR

source ./set_env.sh

which make # you should see $LOCALTOOLS/bin/make
make --version # should show GNU Make 3.81

 

 

Reference

 

GNU image from link.

 

Please reload

Our Recent Posts

List of DOE SciDAC HPC Projects

August 12, 2020

LinkedIn Price and Feature Comparison

July 23, 2020

Columnize a List of Fields Using Excel 2016 on Windows 7

July 6, 2020

1/1
Please reload

Tags

Please reload

SEARCH THIS SITE

©2020 by Zach Pfeffer