Skip to content

Commit

Permalink
Fix more cd command
Browse files Browse the repository at this point in the history
  • Loading branch information
liujiayi771 committed Jul 20, 2024
1 parent e74bc69 commit 9076816
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions scripts/setup-centos9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,21 @@ function install_glog {
function install_lzo {
wget_and_untar http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz lzo
(
cd lzo
pushd lzo
./configure --prefix=/usr --enable-shared --disable-static --docdir=/usr/share/doc/lzo-2.10
make "-j$(nproc)"
make install
popd
)
}

function install_boost {
wget_and_untar https://github.com/boostorg/boost/releases/download/${BOOST_VERSION}/${BOOST_VERSION}.tar.gz boost
(
cd boost
pushd boost
./bootstrap.sh --prefix=/usr/local
./b2 "-j$(nproc)" -d0 install threading=multi --without-python
popd
)
}

Expand All @@ -118,11 +120,12 @@ function install_fmt {
function install_protobuf {
wget_and_untar https://github.com/protocolbuffers/protobuf/releases/download/v21.8/protobuf-all-21.8.tar.gz protobuf
(
cd protobuf
pushd protobuf
./configure --prefix=/usr
make "-j${NPROC}"
make install
ldconfig
popd
)
}

Expand Down
3 changes: 2 additions & 1 deletion scripts/setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ function install_fmt {
function install_boost {
wget_and_untar https://github.com/boostorg/boost/releases/download/${BOOST_VERSION}/${BOOST_VERSION}.tar.gz boost
(
cd boost
pushd boost
./bootstrap.sh --prefix=/usr/local
${SUDO} ./b2 "-j$(nproc)" -d0 install threading=multi --without-python
popd
)
}

Expand Down

0 comments on commit 9076816

Please sign in to comment.