diff options
author | Nikita Kozlovskiy <nikitka@gmail.com> | 2023-08-14 20:44:25 +0300 |
---|---|---|
committer | nkozlovskiy <nmk@ydb.tech> | 2023-08-15 01:59:19 +0300 |
commit | a0614d177962b2b05fb7f8e4e051ed65bb9ce83a (patch) | |
tree | c47eff091942ebe6eda8f9d8d86e3267cc186195 /BUILD.md | |
parent | 262241439f576e1b7e241a25c1b0ac9e78438fbe (diff) | |
download | ydb-a0614d177962b2b05fb7f8e4e051ed65bb9ce83a.tar.gz |
ubuntu 18 prewarm cache build fix
ubuntu 18 prewarm cache build fix
Pull Request resolved: #328
Diffstat (limited to 'BUILD.md')
-rw-r--r-- | BUILD.md | 43 |
1 files changed, 26 insertions, 17 deletions
@@ -26,29 +26,38 @@ # How to Build -## (optional) Add CMake and LLVM APT repositories (for Ubuntu 18.04 and 20.04) - -## Ubuntu 18.04 and Ubuntu 20.04 - -For Ubuntu 18.04 and Ubuntu 20.04, you have to add CMake and LLVM APT repositories: - -```bash -wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | sudo apt-key add - -echo "deb http://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null - -wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - -echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-14 main" | sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null - -sudo apt-get update - -``` +<details> + <summary>For Ubuntu 18.04, install Python 3.8, create and activate a new virtual environment, and install the latest PIP.</summary> + + ```bash + apt-get install python3.8 python3.8-venv python3-venv + python3.8 -mvnev ~/ydbwork/ve + source ~/ydbwork/ve/bin/activate + pip install -U pip + ``` +</details> + +<details> + <summary>For Ubuntu 18.04 and Ubuntu 20.04, add CMake and LLVM APT repositories.</summary> + + ```bash + wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | sudo apt-key add - + echo "deb http://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null + + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - + echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-14 main" | sudo tee /etc/apt/sources.list.d/llvm.list >/dev/null + + sudo apt-get update + + ``` +</details> ## Install dependencies ```bash sudo apt-get -y install git cmake python3-pip ninja-build antlr3 m4 clang-14 lld-14 libidn11-dev libaio1 libaio-dev llvm-14 -sudo pip3 install conan==1.59 +sudo pip3 install conan==1.59 grpcio-tools==1.57.0 ``` |