forked from facebook/fbthrift
-
Notifications
You must be signed in to change notification settings - Fork 1
Build fbthrift on Ubuntu
vkill edited this page Dec 3, 2023
·
11 revisions
Test on v2023.11.27.00
#!/usr/bin/env bash
<<'COMMENT'
sudo apt update
sudo apt upgrade -y
sudo apt --purge autoremove -y
sudo apt install -y git
# 1 GB RAM + 4 GB Swap space required
COMMENT
set -ex
### fbthrift
cd ~
git clone https://github.com/facebook/fbthrift && cd fbthrift
git checkout v2023.11.27.00
./build/fbcode_builder/getdeps.py install-system-deps --recursive fbthrift
sudo apt install -y build-essential
sudo apt install -y libssl-dev
./build/fbcode_builder/getdeps.py --allow-system-packages build fbthrift
ls /tmp/fbcode_builder_getdeps-ZrootZfbthriftZbuildZfbcode_builder-root/installed/fbthrift/bin/thrift1
sudo ln -sf /tmp/fbcode_builder_getdeps-ZrootZfbthriftZbuildZfbcode_builder-root/installed/fbthrift/bin/thrift1 /usr/local/bin/