Skip to content

Commit

Permalink
add scripts/infinity-deps-ubuntu2310.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzq50 committed Dec 21, 2023
1 parent 067191c commit 49f887b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions scripts/infinity-deps-ubuntu2310.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env bash

echo
echo "running script $0"
echo "current working directory : $PWD"

echo
echo 'step [1/5] : sudo apt update && sudo apt install -y git wget'
echo
sudo apt update && sudo apt install -y git wget

echo
echo 'step [2/5] : download cmake-3.28.1'
echo 'command: wget https://cmake.org/files/v3.28/cmake-3.28.1-linux-x86_64.tar.gz'
echo
wget https://cmake.org/files/v3.28/cmake-3.28.1-linux-x86_64.tar.gz

echo
echo 'step [3/5] : install cmake-3.28.1 into /usr/local/bin and /usr/local/share'
echo 'command: tar zxvf cmake-3.28.1-linux-x86_64.tar.gz'
echo 'command: cp -rf cmake-3.28.1-linux-x86_64/bin/* /usr/local/bin && cp -rf cmake-3.28.1-linux-x86_64/share/* /usr/local/share && rm -rf cmake-3.28.1-linux-x86_64'
echo
tar zxvf cmake-3.28.1-linux-x86_64.tar.gz
cp -rf cmake-3.28.1-linux-x86_64/bin/* /usr/local/bin && cp -rf cmake-3.28.1-linux-x86_64/share/* /usr/local/share && rm -rf cmake-3.28.1-linux-x86_64

echo
echo 'step [4/5] : sudo apt install -y ninja-build clang-17 clang-tools-17 flex libboost1.81-dev liblz4-dev libevent-dev liburing-dev libthrift-dev'
echo
sudo apt install -y ninja-build clang-17 clang-tools-17 flex libboost1.81-dev liblz4-dev libevent-dev liburing-dev libthrift-dev

echo
echo 'step [5/5] : create a symbolic link for clang-scan-deps-17'
echo 'command: ln -s /usr/lib/llvm-17/bin/clang-scan-deps /usr/bin/clang-scan-deps'
echo
ln -s /usr/lib/llvm-17/bin/clang-scan-deps /usr/bin/clang-scan-deps

echo
echo "script $0 finished successfully!"
echo

0 comments on commit 49f887b

Please sign in to comment.