source: liacs/os/assignment7/os-assignment7.sh@ 9

Last change on this file since 9 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/sh
2# Operating systems - assignment 7
3# Rick van der Zwet - 0433373
4# $Id: os-assignment7.sh 619 2008-05-19 19:35:46Z rick $
5
6# a) Create temponary work directory
7WORKDIR="$HOME/os-assignment7"
8mkdir $WORKDIR
9cd $WORKDIR
10mkdir download
11cd download
12# b) Userspace MySQL install
13## Fetch & Unpack
14wget http://mysql.proserve.nl/Downloads/MySQL-5.0/mysql-5.0.51b.tar.gz
15tar -xzf mysql-5.0.51b.tar.gz
16## Configure & Compile
17cd mysql-5.0.51b
18./configure --prefix=$WORKDIR --enable-static --disable-shared
19make
20## Install
21make install
22# c) Userspace R install
23## Fetch & Unpack
24cd $WORKDIR/download
25wget http://cran.r-project.org/src/base/R-2/R-2.7.0.tar.gz
26tar -xzf R-2.7.0.tar.gz
27## Configure & Compile
28cd R-2.7.0
29./configure --prefix=$WORKDIR
30make
31## Install
32make install
33
34## Fetch libaries
35cd $WORKDIR/download
36wget http://cran.r-project.org/src/contrib/DBI_0.2-4.tar.gz
37wget http://cran.r-project.org/src/contrib/RMySQL_0.6-0.tar.gz
38
39## Install libaries
40$WORKDIR/download/R-2.7.0/bin/R CMD INSTALL $WORKDIR/download/DBI_0.2-4.tar.gz
41$WORKDIR/download/R-2.7.0/bin/R CMD INSTALL \
42 --configure-args="--with-mysql-dir=$WORKDIR" \
43 $WORKDIR/download/RMySQL_0.6-0.tar.gz
44
45# All done!
46echo "All done!"
47
48
Note: See TracBrowser for help on using the repository browser.