Skip to content

Commit

Permalink
build with fedora
Browse files Browse the repository at this point in the history
Summary:
Simple change to made building on fedora possible.
I may have missed some dependencies, so this is only meant to be a foundation in case someone else needs it. This change does not alter the current behavior on any other distro then fedora.

X-link: facebook/proxygen#338

Reviewed By: kvtsoy

Differential Revision: D62987129

Pulled By: afrind

fbshipit-source-id: be4566e5b13c4ca0404752c9302a414272ee8ca0
  • Loading branch information
mriedmann authored and facebook-github-bot committed Sep 19, 2024
1 parent 57ffb85 commit b52b142
Showing 1 changed file with 53 additions and 12 deletions.
65 changes: 53 additions & 12 deletions third-party/proxygen/src/proxygen/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,16 @@ COLOR_OFF="\033[0m"
function detect_platform() {
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) PLATFORM=Linux;;
Linux*) PLATFORM=Linux; DISTRO="$(lsb_release -is)";;
Darwin*) PLATFORM=Mac;;
*) PLATFORM="UNKNOWN:${unameOut}"
esac
echo -e "${COLOR_GREEN}Detected platform: $PLATFORM ${COLOR_OFF}"
}

function install_dependencies_linux() {
function install_dependencies_linux_default() {
sudo apt-get install -yq \
git \
cmake \
m4 \
g++ \
flex \
bison \
$deps_universal \
libgflags-dev \
libgoogle-glog-dev \
libkrb5-dev \
Expand All @@ -43,24 +38,70 @@ function install_dependencies_linux() {
pkg-config \
libssl-dev \
libcap-dev \
gperf \
libevent-dev \
libtool \
libboost-all-dev \
libjemalloc-dev \
libsnappy-dev \
wget \
unzip \
libiberty-dev \
liblz4-dev \
liblzma-dev \
make \
zlib1g-dev \
binutils-dev \
libsodium-dev \
libdouble-conversion-dev
}

function install_dependencies_linux_fedora() {
sudo dnf install -y \
$deps_universal \
m4 \
g++ \
flex \
bison \
gflags-devel \
glog-devel \
krb5-libs \
double-conversion-devel \
libzstd-devel \
libsodium-devel \
binutils-devel \
zlib-devel \
make \
lz4-devel \
wget \
unzip \
snappy-devel \
jemalloc-devel \
boost-devel\
cyrus-sasl-devel \
numactl-libs \
openssl-devel \
libcap-devel \
libevent-devel \
libtool \
gperf
}

function install_dependencies_linux {
deps_universal="\
git \
cmake \
m4 \
g++ \
flex \
bison \
gperf \
wget \
unzip \
make"

case "$DISTRO" in
Fedora*) install_dependencies_linux_fedora;;
*) install_dependencies_linux_default;;
esac
}

function install_dependencies_mac() {
# install the default dependencies from homebrew
brew install -f \
Expand Down

0 comments on commit b52b142

Please sign in to comment.