2015-10-02 2 views
0

Я столкнулся с ошибкой при установке openips.Ошибка во время make install openips cachedb_redis на RedHat

, пожалуйста, помогите мне решить это. Я уже установил 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 

ответ

1

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

yum install hiredis-devel.x86_64

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

+0

У меня нет регистрации redhat, поэтому я использую epel – FAK

+0

, тогда вам должно быть хорошо! –

+0

Вы могли бы отметить это как «выбранный ответ»? Возможно, это поможет некоторым другим пользователям в будущем. –

0

Вопрос был разрешен установкой 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 
+0

'yum install json-c-devel' –

Смежные вопросы