mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
provision: Build tsearch_extras from source for CentOS support.
This commit is contained in:
12
scripts/lib/build-tsearch-extras
Executable file
12
scripts/lib/build-tsearch-extras
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -x
|
||||
set -e
|
||||
|
||||
cd "$(mktemp -d)"
|
||||
|
||||
git clone https://github.com/zulip/tsearch_extras
|
||||
(cd tsearch_extras && gmake && make install)
|
||||
|
||||
# Link installed hunspell-en-US to tsearch data
|
||||
ln -sf /usr/share/myspell/en_US.dic /usr/pgsql-10/share/tsearch_data/en_us.dict
|
||||
ln -sf /usr/share/myspell/en_US.aff /usr/pgsql-10/share/tsearch_data/en_us.affix
|
||||
@@ -231,7 +231,8 @@ def install_apt_deps():
|
||||
print(WARNING + "CentOS support is still experimental.")
|
||||
run(["sudo", "./scripts/lib/setup-yum-repo"])
|
||||
run(["sudo", "yum", "install", "-y"] + deps_to_install)
|
||||
# TODO tsearch-extras must be compiled from scratch
|
||||
# Compile tsearch-extras from scratch
|
||||
run(["sudo", "./scripts/lib/build-tsearch-extras"])
|
||||
else:
|
||||
# setup-apt-repo does an `apt-get update`
|
||||
run(["sudo", "./scripts/lib/setup-apt-repo"])
|
||||
|
||||
Reference in New Issue
Block a user