Last change
on this file since 96 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
|
---|
7 | WORKDIR="$HOME/os-assignment7"
|
---|
8 | mkdir $WORKDIR
|
---|
9 | cd $WORKDIR
|
---|
10 | mkdir download
|
---|
11 | cd download
|
---|
12 | # b) Userspace MySQL install
|
---|
13 | ## Fetch & Unpack
|
---|
14 | wget http://mysql.proserve.nl/Downloads/MySQL-5.0/mysql-5.0.51b.tar.gz
|
---|
15 | tar -xzf mysql-5.0.51b.tar.gz
|
---|
16 | ## Configure & Compile
|
---|
17 | cd mysql-5.0.51b
|
---|
18 | ./configure --prefix=$WORKDIR --enable-static --disable-shared
|
---|
19 | make
|
---|
20 | ## Install
|
---|
21 | make install
|
---|
22 | # c) Userspace R install
|
---|
23 | ## Fetch & Unpack
|
---|
24 | cd $WORKDIR/download
|
---|
25 | wget http://cran.r-project.org/src/base/R-2/R-2.7.0.tar.gz
|
---|
26 | tar -xzf R-2.7.0.tar.gz
|
---|
27 | ## Configure & Compile
|
---|
28 | cd R-2.7.0
|
---|
29 | ./configure --prefix=$WORKDIR
|
---|
30 | make
|
---|
31 | ## Install
|
---|
32 | make install
|
---|
33 |
|
---|
34 | ## Fetch libaries
|
---|
35 | cd $WORKDIR/download
|
---|
36 | wget http://cran.r-project.org/src/contrib/DBI_0.2-4.tar.gz
|
---|
37 | wget 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!
|
---|
46 | echo "All done!"
|
---|
47 |
|
---|
48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.