Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hiredis version error in compile #50

Open
sp0kky opened this issue Mar 12, 2021 · 1 comment
Open

hiredis version error in compile #50

sp0kky opened this issue Mar 12, 2021 · 1 comment

Comments

@sp0kky
Copy link

sp0kky commented Mar 12, 2021

Hi,
I'm tryinig to compile but I'm receiving this error:

# make modules
  make -f objs/Makefile modules
  make[1]: Entering directory '/opt/nginx-1.19.3'
  cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event modules I src/os/unix -I objs -I src/http -I src/http/modules \
        -o objs/addon/repsheet-nginx-5.1.0/ngx_http_repsheet_module.o \
        ../repsheet-nginx-5.1.0/ngx_http_repsheet_module.c
  In file included from ../repsheet-nginx-5.1.0/ngx_http_repsheet_module.c:5:
 ../repsheet-nginx-5.1.0/ngx_http_repsheet_module.h:17:10: fatal error: hiredis/hiredis.h: No such file or directory
    17 | #include <hiredis/hiredis.h>
        |          ^~~~~~~~~~~~~~~~~~~
  compilation terminated.
  make[1]: *** [objs/Makefile:1226: objs/addon/repsheet-nginx-5.1.0/ngx_http_repsheet_module.o] Error 1
  make[1]: Leaving directory '/opt/nginx-1.19.3'
  make: *** [Makefile:14: modules] Error 2

The system is Ubuntu 20, which has libhiredis0.14, I've tried changing the libhiredis version to 0.13 but the problem still remain.

@abedra
Copy link
Member

abedra commented Mar 12, 2021

Hi @sp0kky,

It looks like you are missing the -dev package, which provides the headers

$ apt search libhiredis
Sorting... Done
Full Text Search... Done
libhiredis-dev/focal,now 0.14.0-6 amd64 [installed]
  minimalistic C client library for Redis (development files)

libhiredis0.14/focal,now 0.14.0-6 amd64 [installed]
  minimalistic C client library for Redis

I am able to build properly on 20.04 with both these libraries installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants