-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall_fncs.sh
More file actions
43 lines (34 loc) · 965 Bytes
/
install_fncs.sh
File metadata and controls
43 lines (34 loc) · 965 Bytes
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
export GRIDAPPSD_INSTALL=/home/gridappsd/gridappsd_project
mkdir -p $GRIDAPPSD_INSTALL
mkdir -p $GRIDAPPSD_INSTALL/sources
mkdir -p $GRIDAPPSD_INSTALL/builds
#----------------
# fncs setup
#----------------
export FNCS_INSTALL=$GRIDAPPSD_INSTALL/builds
cd /tmp
wget http://download.zeromq.org/zeromq-3.2.4.tar.gz
tar -xzf zeromq-3.2.4.tar.gz
cd zeromq-3.2.4
./configure --prefix=$FNCS_INSTALL
make
make install
rm /tmp/zeromq-3.2.4.tar.gz
rm -r /tmp/zeromq-3.2.4
cd /tmp
wget http://download.zeromq.org/czmq-3.0.0-rc1.tar.gz
tar -xzf czmq-3.0.0-rc1.tar.gz
cd czmq-3.0.0
./configure --prefix=$FNCS_INSTALL --with-libzmq=$FNCS_INSTALL
make
make install
rm /tmp/czmq-3.0.0-rc1.tar.gz
rm -r /tmp/czmq-3.0.0
cd $GRIDAPPSD_INSTALL/sources
git clone https://github.com/FNCS/fncs.git
cd fncs
./configure --prefix=$FNCS_INSTALL --with-zmq=$FNCS_INSTALL
make
make install
export PATH=$PATH:$FNCS_INSTALL/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FNCS_INSTALL/lib