Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Created November 26, 2013 23:07
Show Gist options
  • Save rolfbjarne/3a979187ddd0855da073 to your computer and use it in GitHub Desktop.
Save rolfbjarne/3a979187ddd0855da073 to your computer and use it in GitHub Desktop.
#!/bin/bash -ex
MODS="m4-1.4.16 autoconf-2.69 automake-1.12.2 libtool-2.4.2"
PREFIX=/opt
PATH=$PATH:$PREFIX/bin
# first get wget
curl -O http://ftp.gnu.org/gnu/wget/wget-1.14.tar.gz
tar -xzf wget-1.14.tar.gz
cd wget-1.14
./configure --with-ssl=openssl --prefix=$PREFIX
make
make install
cd ..
# and now the rest
for m in $MODS; do
rm -Rf $m
wget http://ftp.gnu.org/gnu/`echo $m | sed 's/-.*//'`/$m.tar.gz
tar zxvf $m.tar.gz
cd $m
./configure --prefix=$PREFIX
make
make install
cd ..
done
@rolfbjarne
Copy link
Author

Note that you need to put /opt/bin in your path (or edit the PREFIX above).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment