【问题标题】:Error during make install of opensips cachedb_redis on RedHat在 RedHat 上安装 opensips cachedb_redis 时出错
【发布时间】:2015-10-02 19:13:24
【问题描述】:

我在安装 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

【问题讨论】:

    标签: linux redis opensips


    【解决方案1】:

    我 100% 确信可以在 epel 存储库 (/etc/yum.repos.d/epel.repo) 中找到 redis 开发包:

    yum install hiredis-devel.x86_64

    现在,如果您真的想安装仅限 Red Hat 的软件包,您应该尝试从 /etc/yum.repos.d/redhat.repo 启用尽可能多的存储库,直到您希望找到一个好的存储库!

    【讨论】:

    • 我没有注册 redhat 这就是我使用 epel 的原因
    • 你能把它标记为“选择的答案”吗?也许它会在未来帮助其他一些用户
    【解决方案2】:

    通过安装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
    

    【讨论】:

    • yum install json-c-devel
    猜你喜欢
    • 2016-12-25
    • 2020-08-10
    • 1970-01-01
    • 1970-01-01
    • 2018-06-03
    • 1970-01-01
    • 1970-01-01
    • 2014-10-19
    • 2012-07-19
    相关资源
    最近更新 更多