Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

modify third_party/install.sh #153

Open
wants to merge 1 commit into
base: multiverso-initial
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 15 additions & 3 deletions third_party/install.sh
Expand Up @@ -2,20 +2,26 @@
# install third party library: 1. ZeroMQ, 2. MPICH2

THIRD_PARTY_DIR=$PWD
mkdir $THIRD_PARTY_DIR/include
echo $TARGET_DIR

ZMQ_DIR=zeromq-4.1.3
ZMQ_DIR=libzmq
MPI_DIR=mpich-3.0.4
# 1. Get ZeroMQ
wget http://download.zeromq.org/zeromq-4.1.3.tar.gz
tar -zxf zeromq-4.1.3.tar.gz
# wget http://download.zeromq.org/zeromq-4.1.3.tar.gz
# tar -zxf zeromq-4.1.3.tar.gz
git clone https://github.com/zeromq/libzmq
# ./autogen.sh && ./configure && make -j 4
# make check && make install

# Build ZeroMQ
# Make sure that libtool, pkg-config, build-essential, autoconf and automake
# are installed.
cd $ZMQ_DIR
./autogen.sh
./configure --prefix=$THIRD_PARTY_DIR --without-libsodium
make -j4
make check
make install -j4
cd ..
rm -rf $ZMQ_DIR
Expand All @@ -37,3 +43,9 @@ cd ..
rm -rf $MPI_DIR

rm *.tar.gz*

# add lib to ~/.bashrc
echo "LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:${THIRD_PARTY_DIR}/lib" >> ~/.bashrc
source ~/.bashrc