gpt4 book ai didi

linux - 在 RedHat 上安装 opensips cachedb_redis 时出错

转载 作者:可可西里 更新时间:2023-11-01 11:20:59 26 4
gpt4 key购买 nike

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

最佳答案

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

yum 安装 hiredis-devel.x86_64

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

关于linux - 在 RedHat 上安装 opensips cachedb_redis 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32902511/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com