Ошибка во время установки opensips cachedb_redis на RedHat

Я сталкиваюсь с ошибкой при установке opensips.

пожалуйста, помогите мне решить это. Я уже установил Redis и FreeRadius.

make[1]: Entering directory `/usr/local/src/opensips-1.9.0-tls/modules/aaa_radius'
make[1]: Leaving directory `/usr/local/src/opensips-1.9.0-tls/modules/aaa_radius'
make[1]: Entering directory `/usr/local/src/opensips-1.9.0-tls/modules/aaa_radius'
Compiling aaa_radius.c
Compiling rad.c
Linking aaa_radius.so
make[1]: Leaving directory `/usr/local/src/opensips-1.9.0-tls/modules/aaa_radius'


make[1]: Entering directory `/usr/local/src/opensips-1.9.0-tls/modules/cachedb_redis'
make[1]: Leaving directory `/usr/local/src/opensips-1.9.0-tls/modules/cachedb_redis'
make[1]: Entering directory `/usr/local/src/opensips-1.9.0-tls/modules/cachedb_redis'
Compiling cachedb_redis.c
In file included from cachedb_redis.c:41:
cachedb_redis_dbase.h:29:29: error: hiredis/hiredis.h: No such file or directory
In file included from cachedb_redis.c:41:
cachedb_redis_dbase.h:38: error: expected specifier-qualifier-list before ‘redisContext’
make[1]: *** [cachedb_redis.o] Error 1
make[1]: Leaving directory `/usr/local/src/opensips-1.9.0-tls/modules/cachedb_redis'
make: *** [modules] Error 2

person FAK    schedule 02.10.2015    source источник


Ответы (2)


Я на 100% уверен, что пакеты разработки Redis можно найти в репозитории epel (/etc/yum.repos.d/epel.repo):

yum install hiredis-devel.x86_64

Теперь, если вы действительно хотите установить пакеты только для Red Hat, вы должны попытаться включить как можно больше репозиториев из /etc/yum.repos.d/redhat.repo, пока, надеюсь, не найдете хороший!

person Liviu Chircu    schedule 02.10.2015
comment
У меня нет зарегистрированной RedHat, поэтому я использую epel - person FAK; 02.10.2015
comment
не могли бы вы отметить это как выбранный ответ? Возможно, это поможет другим пользователям в будущем. - person Liviu Chircu; 05.10.2015

Проблема была решена путем установки Hiredis-Devel.x86_64.

но теперь у меня есть эта ошибка.

make[1]: Entering directory `/usr/local/src/opensips-1.9.0-tls/modules/json'
Compiling array_del.c
array_del.c:29:23: error: json/json.h: No such file or directory
array_del.c:30:38: error: json/json_object_private.h: No such file or directory
array_del.c:32: warning: ‘struct array_list’ declared inside parameter list
array_del.c:32: warning: its scope is only this definition or declaration, which is probably not what you want
array_del.c: In function ‘array_list_del_idx’:
array_del.c:36: error: dereferencing pointer to incomplete type
array_del.c:40: error: dereferencing pointer to incomplete type
array_del.c:40: error: dereferencing pointer to incomplete type
array_del.c:41: error: dereferencing pointer to incomplete type
array_del.c:43: error: dereferencing pointer to incomplete type
array_del.c:44: error: dereferencing pointer to incomplete type
array_del.c:44: error: dereferencing pointer to incomplete type
array_del.c: At top level:
array_del.c:47: warning: ‘struct json_object’ declared inside parameter list
array_del.c: In function ‘json_object_array_del’:
array_del.c:49: error: dereferencing pointer to incomplete type
make[1]: *** [array_del.o] Error 1
make[1]: Leaving directory `/usr/local/src/opensips-1.9.0-tls/modules/json'
make: *** [modules] Error 2
person FAK    schedule 02.10.2015