Last active
May 3, 2018 03:30
-
-
Save jeetsukumaran/85533cb6047bbf74577741367f23d315 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| # Just a little bit of a dependency dance here: | |
| cd ~/src | |
| wget --no-check-certificate https://zlib.net/zlib-1.2.11.tar.gz | |
| tar xf zlib-1.2.11.tar.gz | |
| cd zlib-1.2.11.tar.gz | |
| configure --prefix=$HOME/Environment/local | |
| make && make install | |
| cd ~/src | |
| wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz | |
| tar xf bzip2-1.0.6.tar.gz | |
| cd bzip2-1.0.6 | |
| sed -i 's/^CFLAGS=-Wall/CFLAGS=-fPIC -Wall/' Makefile | |
| make && make install PREFIX=$HOME/Environment/local | |
| cd ~/src | |
| wget --no-check-certificate https://tukaani.org/xz/xz-5.2.3.tar.gz | |
| tar xf xz-5.2.3.tar.gz | |
| cd xz-5.2.3 | |
| ./configure --prefix=$HOME/Environment/local | |
| make && make install | |
| cd ~/src | |
| wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.41.tar.bz2 | |
| tar xf pcre-8.41.tar.bz2 | |
| cd pcre-8.41 | |
| ./configure --enable-utf8 --prefix=$HOME/Environment/local | |
| make && make install | |
| cd ~/src | |
| wget http://git.savannah.gnu.org/cgit/readline.git/snapshot/readline-master.tar.gz | |
| tar xf readline-master.tar.gz | |
| cd readline-master | |
| ./configure --prefix=$HOME/Environment/local | |
| make && make install | |
| cd ~/src | |
| wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz | |
| tar xf libiconv-1.15.tar.gz | |
| cd libiconv-1.15 | |
| ./configure --prefix=$HOME/Environment/local | |
| make && make install | |
| $ cd ~/src | |
| $ wget http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz | |
| $ tar xf icu4c-54_1-src.tgz | |
| $ cd icu/source | |
| $ ./configure --prefix=$HOME/Environment/local | |
| $ make && make install | |
| # And then something to point the R configure to the right place (some of these | |
| # are actually taken care off in my "``~/.bashrc``", but no harm in repeating | |
| # them here. | |
| export PATH=$HOME/Environment/local/bin:$PATH | |
| export LD_LIBRARY_PATH=$HOME/Environment/local/lib:$LD_LIBRARY_PATH | |
| export ZLIB_HOME=$HOME/Environment/local/ | |
| export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$HOME/Environment/local/lib/pkgconfig" | |
| export CFLAGS="-I$HOME/Environment/local/include" | |
| export CPPFLAGS="-I$HOME/Environment/local/include" | |
| export CXXFLAGS="-I$HOME/Environment/local/include" | |
| export LDFLAGS="-L$HOME/Environment/local/lib" | |
| # Before getting down to business: | |
| cd ~/src | |
| export RVER=3.5.0 | |
| wget https://cran.r-project.org/src/base/R-3/R-$RVER.tar.gz | |
| tar xf R-$RVER.tar.gz | |
| cd R-$RVER | |
| ./configure --prefix=$HOME/Environment/local --with-x=no | |
| make && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment