yorkane / redis-roaring

1 stars 1 forks source link

Facing issue while compiling project #1

Open abhay12 opened 2 years ago

abhay12 commented 2 years ago

I'm facing issue while running make after cloning. I am trying to run in macOS. since redis-roaring.so is not generating. I'm not able to start the server with module.

git clone https://github.com/yorkane/redis-roaring.git
cd redis-roaring/
# output module redis-roaring.so
make

Error:

abhay.gupta@C02F5BH0ND6M redis-roaring-1 % make
gcc -I./ -Wall -g -fPIC -lc -lm -std=gnu99     -c -o src/redis-roaring.o src/redis-roaring.c
clang: warning: -lc: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
src/redis-roaring.c:3:10: fatal error: 'roaring/roaring.h' file not found
#include <roaring/roaring.h>
         ^~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [src/redis-roaring.o] Error 1

Can someone help me with this. Also, better if you can create a docker image. will be easy to use.

abhay12 commented 2 years ago

@yorkane can you help me with the above query.

yorkane commented 2 years ago

docker pull yorkane/redisearch-alpine:2.2.7

docker run -d --network=host -v /data:/redisdata -e REDIS_BIND=0.0.0.0 -e REDIS_PASSWORD=redis4Pwd --name=redis1 yorkane/redisearch-alpine:2.2.7

it contains /redis/redis-roaring.so

abhay12 commented 2 years ago

Thanks @yorkane that's working. Can you share me the docker file for this ? I want to create an image for ubuntu.

yorkane commented 2 years ago

https://github.com/yorkane/redisearch-alpine/blob/main/Dockerfile

I have not tried ubuntu version, hope it helps.

abhay12 commented 2 years ago

Thanks @yorkane