Skip to content

Commit

Permalink
use sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
majetideepak committed Mar 4, 2024
1 parent ee0cd1e commit 5b94e45
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,38 +69,38 @@ sudo --preserve-env apt update && sudo --preserve-env apt install -y libunwind-d

function install_fmt {
github_checkout fmtlib/fmt "${FMT_VERSION}"
cmake_install -DFMT_TEST=OFF
sudo cmake_install -DFMT_TEST=OFF
}

function install_boost {
github_checkout boostorg/boost "${BOOST_VERSION}" --recursive
./bootstrap.sh --prefix=/usr/local
./b2 "-j$(nproc)" -d0 install threading=multi
sudo ./b2 "-j$(nproc)" -d0 install threading=multi
}

function install_folly {
github_checkout facebook/folly "${FB_OS_VERSION}"
cmake_install -DBUILD_TESTS=OFF -DFOLLY_HAVE_INT128_T=ON
sudo cmake_install -DBUILD_TESTS=OFF -DFOLLY_HAVE_INT128_T=ON
}

function install_fizz {
github_checkout facebookincubator/fizz "${FB_OS_VERSION}"
cmake_install -DBUILD_TESTS=OFF -S fizz
sudo cmake_install -DBUILD_TESTS=OFF -S fizz
}

function install_wangle {
github_checkout facebook/wangle "${FB_OS_VERSION}"
cmake_install -DBUILD_TESTS=OFF -S wangle
sudo cmake_install -DBUILD_TESTS=OFF -S wangle
}

function install_mvfst {
github_checkout facebook/mvfst "${FB_OS_VERSION}"
cmake_install -DBUILD_TESTS=OFF
sudo cmake_install -DBUILD_TESTS=OFF
}

function install_fbthrift {
github_checkout facebook/fbthrift "${FB_OS_VERSION}"
cmake_install -DBUILD_TESTS=OFF
sudo cmake_install -DBUILD_TESTS=OFF
}

function install_conda {
Expand Down

0 comments on commit 5b94e45

Please sign in to comment.