-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathbootstrap.sh
50 lines (42 loc) · 1.07 KB
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
# in the case a machine has already been provisioned, running this script shouldn't be a problem.
# quick and dirty test to see if update has been run yet.
if [ ! -d /opt ]
then
apt-get update
fi
apt-get install -y mono-devel
apt-get install -y mono-xbuild
apt-get install -y g++
apt-get install -y make
apt-get install -y libtool
apt-get install -y autoconf
apt-get install -y automake
apt-get install -y uuid-dev
apt-get install -y git
apt-get install -y unzip
apt-get install -y libcurl-openssl-dev
apt-get install -y libcurl4-openssl-dev
apt-get install -y wget
apt-get install -y screen
apt-get install -y libc6-dev-i386
if [ ! -d /opt ]
then
mkdir /opt
fi
# acquire and install nanomsg
if [ ! -f /usr/local/lib/libnanomsg.a ]
then
cd /opt
# wget http://download.nanomsg.org/nanomsg-0.2-alpha.tar.gz
# tar xvf nanomsg-0.2-alpha.tar.gz
# cd nanomsg-0.2-alpha
git clone https://github.com/nanomsg/nanomsg.git
cd nanomsg
autoreconf --install
automake
./configure
make
make install
ldconfig
fi