Last active
February 10, 2017 22:25
-
-
Save aruneko/ef8c47eacf526898613d to your computer and use it in GitHub Desktop.
HTTP(S)通信のできるcurlと無駄に新しいgawkをインストールしてくれます
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd | |
mkdir src | |
mkdir opt | |
cd ./src | |
wget http://www.openssl.org/source/openssl-1.1.0b.tar.gz | |
wget https://www.libssh2.org/download/libssh2-1.8.0.tar.gz --no-check-certificate | |
wget https://curl.haxx.se/download/curl-7.50.3.tar.bz2 --no-check-certificate | |
wget http://ftp.jaist.ac.jp/pub/GNU/gawk/gawk-4.1.4.tar.xz | |
tar xvf openssl-1.1.0b.tar.gz | |
tar xvf libssh2-1.8.0.tar.gz | |
tar xvf curl-7.50.3.tar.bz2 | |
tar xvf gawk-4.1.4.tar.xz | |
cd openssl-1.1.0b | |
./Configure --prefix=$HOME/opt/openssl linux-x86_64 no-asm no-hw shared | |
make -j 5 | |
make install | |
cd ../libssh2-1.8.0 | |
./configure --with-libssl-prefix=$HOME/opt/openssl --prefix=$HOME/opt/libssh2 | |
make -j 5 | |
make install | |
cd ../curl-7.50.3 | |
./configure --with-ssl=$HOME/opt/openssl --with-libssh2=$HOME/opt/libssh2 --prefix=$HOME/opt/curl | |
make -j 5 | |
make install | |
cd ../gawk-4.1.4 | |
./configure --prefix=$HOME/opt/gawk | |
make -j 5 | |
make install | |
cd ../../ | |
rm -rf src | |
echo 'PATH=$HOME/opt/gawk/bin:$HOME/opt/curl/bin:$PATH' >> $HOME/.bashrc | |
source $HOME/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment