Skip to content

Commit

Permalink
Install on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Sep 24, 2024
1 parent 699808a commit fdf55ed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/setup-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ MACOS_VELOX_DEPS="bison flex gflags glog googletest icu4c libevent libsodium lz4
MACOS_BUILD_DEPS="ninja cmake"
FB_OS_VERSION="v2024.09.16.00"
FMT_VERSION="10.1.1"
STEMMER_VERSION="2.2.0"

function update_brew {
DEFAULT_BREW_PATH=/usr/local/bin/brew
Expand Down Expand Up @@ -147,6 +148,17 @@ function install_fast_float {
cmake_install_dir fast_float
}

function install_stemmer {
wget_and_untar https://snowballstem.org/dist/libstemmer_c-${STEMMER_VERSION}.tar.gz stemmer
(
cd ${DEPENDENCY_DIR}/stemmer
sed -i '/CPPFLAGS=-Iinclude/ s/$/ -fPIC/' Makefile
make clean && make "-j${NPROC}"
${SUDO} cp libstemmer.a ${INSTALL_PREFIX}/lib/
${SUDO} cp include/libstemmer.h ${INSTALL_PREFIX}/include/
)
}

function install_velox_deps {
run_and_time install_velox_deps_from_brew
run_and_time install_ranges_v3
Expand All @@ -159,6 +171,7 @@ function install_velox_deps {
run_and_time install_wangle
run_and_time install_mvfst
run_and_time install_fbthrift
run_and_time install_stemmer
}

(return 2> /dev/null) && return # If script was sourced, don't run commands.
Expand Down

0 comments on commit fdf55ed

Please sign in to comment.