-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(interactive): Fix install_dependency.sh (#3500)
Fix the script `install_dependency.sh`, which install the necessary dependencies to build `Flex`. Add flex building test on ubuntu 20.04/22.04, platform x86_64/arm64.
- Loading branch information
1 parent
30d0a8d
commit 13b9416
Showing
10 changed files
with
79 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
|
||
#include <string> | ||
#include <vector> | ||
#include <limits> | ||
|
||
#include <glog/logging.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,49 @@ | ||
apt update -y | ||
#!/bin/bash | ||
set -e | ||
# accept at most one argument, parallelism | ||
if [ $# -gt 1 ]; then | ||
echo "Usage: $0 [parallelism]" | ||
exit 1 | ||
fi | ||
parallelism=$(nproc) | ||
if [ $# -eq 1 ]; then | ||
parallelism=$1 | ||
fi | ||
echo "parallelism: $parallelism" | ||
|
||
apt install -y \ | ||
sudo apt update -y | ||
|
||
sudo apt install -y \ | ||
ninja-build ragel libhwloc-dev libnuma-dev libpciaccess-dev vim wget curl \ | ||
git g++ libgoogle-glog-dev cmake libopenmpi-dev default-jdk libcrypto++-dev \ | ||
libboost-all-dev libxml2-dev | ||
apt install -y xfslibs-dev libgnutls28-dev liblz4-dev maven openssl pkg-config \ | ||
git g++ libunwind-dev libgoogle-glog-dev cmake libopenmpi-dev default-jdk libcrypto++-dev \ | ||
libboost-all-dev libxml2-dev protobuf-compiler libprotobuf-dev | ||
sudo apt install -y xfslibs-dev libgnutls28-dev liblz4-dev maven openssl pkg-config \ | ||
libsctp-dev gcc make python3 systemtap-sdt-dev libtool libyaml-cpp-dev \ | ||
libc-ares-dev stow libfmt-dev diffutils valgrind doxygen python3-pip net-tools graphviz | ||
|
||
pushd /tmp | ||
git clone https://github.com/alibaba/libgrape-lite.git | ||
cd libgrape-lite | ||
git checkout v0.3.2 | ||
mkdir build && cd build && cmake .. | ||
make -j && make install | ||
cp /usr/local/lib/libgrape-lite.so /usr/lib/libgrape-lite.so | ||
mkdir build && cd build && cmake .. -DBUILD_LIBGRAPELITE_TESTS=OFF | ||
make -j ${parallelism} && sudo make install | ||
sudo cp /usr/local/lib/libgrape-lite.so /usr/lib/libgrape-lite.so | ||
popd && rm -rf /tmp/libgrape-lite | ||
|
||
pushd /tmp && apt-get install -y -V ca-certificates lsb-release wget | ||
pushd /tmp && sudo apt-get install -y -V ca-certificates lsb-release wget | ||
curl -o apache-arrow-apt-source-latest.deb https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | ||
apt-get install -y ./apache-arrow-apt-source-latest.deb | ||
apt-get update && apt-get install -y libarrow-dev=6.0.1-1 | ||
popd | ||
sudo apt-get install -y ./apache-arrow-apt-source-latest.deb | ||
sudo apt-get update && sudo apt-get install -y libarrow-dev=8.0.0-1 | ||
popd && rm -rf /tmp/apache-arrow-apt-source-latest.deb | ||
|
||
cd ../.. | ||
git clone https://github.com/alibaba/hiactor.git | ||
cd hiactor && git checkout e16949ca53 | ||
git submodule update --init --recursive | ||
./seastar/seastar/install-dependencies.sh | ||
pushd /tmp | ||
git clone https://github.com/alibaba/hiactor.git -b v0.1.1 --single-branch | ||
cd hiactor && git submodule update --init --recursive | ||
sudo bash ./seastar/seastar/install-dependencies.sh | ||
mkdir build && cd build | ||
cmake -DHiactor_DEMOS=OFF -DHiactor_TESTING=OFF -DHiactor_DPDK=OFF -DHiactor_CXX_DIALECT=gnu++17 -DSeastar_CXX_FLAGS="-DSEASTAR_DEFAULT_ALLOCATOR -mno-avx512" .. | ||
make -j && make install | ||
make -j ${parallelism} && sudo make install | ||
popd && rm -rf /tmp/hiactor | ||
|
||
echo "fs.aio-max-nr = 1048576" >> /etc/sysctl.conf | ||
sysctl -p /etc/sysctl.conf | ||
sudo sh -c 'echo "fs.aio-max-nr = 1048576" >> /etc/sysctl.conf' | ||
sudo sysctl -p /etc/sysctl.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters