Skip to content

Commit c995878

Browse files
committed
update
1 parent f61064c commit c995878

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

echo-servers/build.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,18 @@ case ${UNAME} in
2121
esac
2222

2323
# install muduo => https://github.com/chenshuo/muduo.git
24-
if false; then
25-
cd ${ROOT_DIR}/..
26-
git clone https://github.com/chenshuo/muduo.git
27-
cd muduo
28-
mkdir build && cd build
29-
cmake .. && make && sudo make install
24+
TEST_MUDUO=false
25+
if [ "$TEST_MUDUO" == "true" ]; then
26+
cd ${ROOT_DIR}/..
27+
git clone https://github.com/chenshuo/muduo.git
28+
cd muduo
29+
mkdir build && cd build
30+
cmake .. && make && sudo make install
3031
fi
3132

33+
# install libhv
3234
cd ${ROOT_DIR}
33-
make libhv && sudo make install
35+
make libhv && sudo make install && sudo ldconfig
36+
37+
# build echo-servers
3438
make echo-servers

0 commit comments

Comments
 (0)