Error "undefined symbol: GxB_set" when starting Redis

Hi,

I see the error “Module /var/lib/redis/redisgraph.so failed to load: /var/lib/redis/redisgraph.so: undefined symbol: GxB_set” when starting Redis. How can I fix this?

Thanks

Can you please share how did you build RedisGraph?

I did:

git clone --recurse-submodules https://github.com/RedisGraph/RedisGraph.git
(I left out -j8 - I get the error error: unknown switch `j’)
cd RedisGraph
export CC=clang
make

I end up with the .so file. Then, when restarting Redis, I see the error.

Hi, are you trying to compile on mac?
I would suggest switching to gcc.

This is on Linux CentOS Linux release 7.8.2003 (Core)

When I use gcc, I get:

util.h: In function ‘mdup’:
util.h:147:5: warning: ISO C90 forbids mixed declarations and code [-Wpedantic]
void *dst = malloc(n);
^
util.h: At top level:
util.h:168:43: error: expected ‘;’, ‘,’ or ‘)’ before ‘buf’
ssize_t snprintf_realloc(char ** restrict buf, size_t *bufcap,
^

Please see here for more information on how to compile and run on CentOS

Thank you. Using the info in the Dockerfile.centos works.