Redisearch2 installation fails on mac os x with error

Has anybody managed to install RS2 on mac os x?

I am following the instructions here to install on Mac OS X 10.14.6 which were linked from here:

git clone --recursive https://github.com/RediSearch/RediSearch.git RediSearch2
git checkout tags/v2.0.0

~/src/RediSearch2$ sudo make setup
Password:
Setting up system…
brew update || true
Error: Running Homebrew as root is extremely dangerous and no longer supported.

make: *** [Makefile:128: setup] Error 1

~/src/RediSearch2$ make setup

make[4]: *** No rule to make target ‘strbuf.o’, needed by ‘liblua.a’. Stop.
make[3]: *** [Makefile:75: lua] Error 2
make[3]: *** Waiting for unfinished jobs…
ar rcs libhiredis.a net.o hiredis.o sds.o async.o read.o sockcompat.o
ar rcs libhiredis_ssl.a ssl.o
ar: net.o: No such file or directory
ar: hiredis.o: No such file or directory
ar: sds.o: No such file or directory
ar: async.o: No such file or directory
ar: ar: read.o: No such file or directory
ssl.o: No such file or directory
ar: sockcompat.o: No such file or directory
make[4]: *** [Makefile:118: libhiredis_ssl.a] Error 1
make[4]: *** Waiting for unfinished jobs…
make[4]: *** [Makefile:112: libhiredis.a] Error 1
make[3]: *** [Makefile:50: hiredis] Error 2
make[2]: [Makefile:266: persist-settings] Error 2 (ignored)

clang: error: no such file or directory: ‘…/deps/lua/src/liblua.a’
make[2]: *** [Makefile:285: redis-server] Error 1
make[2]: *** Waiting for unfinished jobs…
make[1]: *** [Makefile:6: all] Error 2
command failed: { make -j /Users/michaelmasouras/src/RediSearch2/deps/readies/bin/nproc BUILD_TLS=yes; } >/var/folders/qm/m56dtbfd3_v1m274_wxgd4x40000gn/T/tmpY8ckn5 2>&1
command failed: python2 /Users/michaelmasouras/src/RediSearch2/deps/readies/bin/getredis -v 6 --force
make: *** [setup] Error 1

@michaelmasouras

It would be great help if you can raise this as an issue at https://github.com/RediSearch/RediSearch/issues

For time being you may choose docker image to install:

Running with Docker

docker run -p 6379:6379 redislabs/redisearch:latest

Download and running binaries

First download the pre-compiled version from RedisLabs download center .

Next, run Redis with RediSearch:

$ redis-server --loadmodule /path/to/module/src/redisearch.so

Building and running from source

First, clone the git repo (make sure not to omit the --recursive option, to properly clone submodules):

git clone --recursive https://github.com/RediSearch/RediSearch.git

Next, install dependencies and build:

sudo make setup
make build

Finally, run Redis with RediSearch:

make run

For more elaborate build instructions, see the Development page .

BTW RediSearch is available on all Redis Cloud managed services. Redis Cloud Essentials offers a completely free managed databases up to 30MB.

Get started here

Thanks