当前位置: 技术问答>linux和unix
RedHat9.0下安装kannel的问题
来源: 互联网 发布时间:2015-12-06
本文导语: 想在RedHat9.0下安装一个WAP网关,用开源的项目kennel,但是安装过程中有问题。 最初是下载了kannel-1.4.0的源码准备自己编译后安装,但在编译的时候出错了。根据user guide的说明,我检查了libxml2,当我用rmp -q libxml的...
想在RedHat9.0下安装一个WAP网关,用开源的项目kennel,但是安装过程中有问题。
最初是下载了kannel-1.4.0的源码准备自己编译后安装,但在编译的时候出错了。根据user guide的说明,我检查了libxml2,当我用rmp -q libxml的时候,显示libxml2-2.5.4-1,应该是表示安装了的。
然后,根据user guide的步骤,先./configure,然后make,系统显示编译有错。出错的信息如下:
[root@kannel_server gateway-1.4.0]# make
gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/libxml2 -
I/usr/include/openssl -o gw/bb_alog.o -c gw/bb_alog.c
In file included from /usr/include/openssl/ssl.h:179,
from gwlib/conn.h:274,
from gwlib/gwlib.h:94,
from gw/bb_alog.c:64:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
from gwlib/conn.h:274,
from gwlib/gwlib.h:94,
from gw/bb_alog.c:64:
/usr/include/openssl/kssl.h:132: parse error before "krb5_enctype"
/usr/include/openssl/kssl.h:134: parse error before "FAR"
/usr/include/openssl/kssl.h:135: parse error before '}' token
/usr/include/openssl/kssl.h:147: parse error before "kssl_ctx_setstring"
/usr/include/openssl/kssl.h:147: parse error before '*' token
/usr/include/openssl/kssl.h:148: parse error before '*' token
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:150: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before "kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:153: parse error before "kssl_cget_tkt"
/usr/include/openssl/kssl.h:153: parse error before '*' token
/usr/include/openssl/kssl.h:155: parse error before "kssl_sget_tkt"
/usr/include/openssl/kssl.h:155: parse error before '*' token
/usr/include/openssl/kssl.h:157: parse error before "kssl_ctx_setkey"
/usr/include/openssl/kssl.h:157: parse error before '*' token
/usr/include/openssl/kssl.h:159: parse error before "context"
/usr/include/openssl/kssl.h:160: parse error before "kssl_build_principal_2"
/usr/include/openssl/kssl.h:160: parse error before "context"
/usr/include/openssl/kssl.h:163: parse error before "kssl_validate_times"
/usr/include/openssl/kssl.h:163: parse error before "atime"
/usr/include/openssl/kssl.h:165: parse error before "kssl_check_authent"
/usr/include/openssl/kssl.h:165: parse error before '*' token
/usr/include/openssl/kssl.h:167: parse error before "enctype"
In file included from gwlib/conn.h:274,
from gwlib/gwlib.h:94,
from gw/bb_alog.c:64:
/usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX"
/usr/include/openssl/ssl.h:915: `debug' redeclared as different kind of symbol
gwlib/log.h:114: previous declaration of `debug'
/usr/include/openssl/ssl.h:931: parse error before '}' token
make: *** [gw/bb_alog.o] Error 1
由于我是第一次使用linux,所以不知道这到底出了什么问题,还请各位多多指教。
后来,我索性直接用编译好的rpm文件来安装kannel,下载了kannel-1.4.0-3.1.fc2.fr.i386.rpm,然后在linux下输入命令rpm -ivh kannel-1.4.0-3.1.fc2.fr.i386.rpm(也全是根据user guide来做的),但是这样的安装也不成功,系统提示错误信息如下:
[root@kannel_server kannel]# rpm -ivh kannel-1.4.0-3.1.fc2.fr.i386.rpm
warning: kannel-1.4.0-3.1.fc2.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
error: Failed dependencies:
libc.so.6(GLIBC_2.3.4) is needed by kannel-1.4.0-3.1.fc2.fr
libsqlite.so.0 is needed by kannel-1.4.0-3.1.fc2.fr
看起来好像是缺少几个库文件,但我不知道到底是怎么回事。
很真诚地请教个大侠帮忙告诉一声,这到底怎么回事,我该做些什么才能使编译顺利通过(程序本身肯定没有问题),或者只要能安装成功也行。
最初是下载了kannel-1.4.0的源码准备自己编译后安装,但在编译的时候出错了。根据user guide的说明,我检查了libxml2,当我用rmp -q libxml的时候,显示libxml2-2.5.4-1,应该是表示安装了的。
然后,根据user guide的步骤,先./configure,然后make,系统显示编译有错。出错的信息如下:
[root@kannel_server gateway-1.4.0]# make
gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/include/libxml2 -
I/usr/include/openssl -o gw/bb_alog.o -c gw/bb_alog.c
In file included from /usr/include/openssl/ssl.h:179,
from gwlib/conn.h:274,
from gwlib/gwlib.h:94,
from gw/bb_alog.c:64:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
from gwlib/conn.h:274,
from gwlib/gwlib.h:94,
from gw/bb_alog.c:64:
/usr/include/openssl/kssl.h:132: parse error before "krb5_enctype"
/usr/include/openssl/kssl.h:134: parse error before "FAR"
/usr/include/openssl/kssl.h:135: parse error before '}' token
/usr/include/openssl/kssl.h:147: parse error before "kssl_ctx_setstring"
/usr/include/openssl/kssl.h:147: parse error before '*' token
/usr/include/openssl/kssl.h:148: parse error before '*' token
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:150: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before "kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:153: parse error before "kssl_cget_tkt"
/usr/include/openssl/kssl.h:153: parse error before '*' token
/usr/include/openssl/kssl.h:155: parse error before "kssl_sget_tkt"
/usr/include/openssl/kssl.h:155: parse error before '*' token
/usr/include/openssl/kssl.h:157: parse error before "kssl_ctx_setkey"
/usr/include/openssl/kssl.h:157: parse error before '*' token
/usr/include/openssl/kssl.h:159: parse error before "context"
/usr/include/openssl/kssl.h:160: parse error before "kssl_build_principal_2"
/usr/include/openssl/kssl.h:160: parse error before "context"
/usr/include/openssl/kssl.h:163: parse error before "kssl_validate_times"
/usr/include/openssl/kssl.h:163: parse error before "atime"
/usr/include/openssl/kssl.h:165: parse error before "kssl_check_authent"
/usr/include/openssl/kssl.h:165: parse error before '*' token
/usr/include/openssl/kssl.h:167: parse error before "enctype"
In file included from gwlib/conn.h:274,
from gwlib/gwlib.h:94,
from gw/bb_alog.c:64:
/usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX"
/usr/include/openssl/ssl.h:915: `debug' redeclared as different kind of symbol
gwlib/log.h:114: previous declaration of `debug'
/usr/include/openssl/ssl.h:931: parse error before '}' token
make: *** [gw/bb_alog.o] Error 1
由于我是第一次使用linux,所以不知道这到底出了什么问题,还请各位多多指教。
后来,我索性直接用编译好的rpm文件来安装kannel,下载了kannel-1.4.0-3.1.fc2.fr.i386.rpm,然后在linux下输入命令rpm -ivh kannel-1.4.0-3.1.fc2.fr.i386.rpm(也全是根据user guide来做的),但是这样的安装也不成功,系统提示错误信息如下:
[root@kannel_server kannel]# rpm -ivh kannel-1.4.0-3.1.fc2.fr.i386.rpm
warning: kannel-1.4.0-3.1.fc2.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
error: Failed dependencies:
libc.so.6(GLIBC_2.3.4) is needed by kannel-1.4.0-3.1.fc2.fr
libsqlite.so.0 is needed by kannel-1.4.0-3.1.fc2.fr
看起来好像是缺少几个库文件,但我不知道到底是怎么回事。
很真诚地请教个大侠帮忙告诉一声,这到底怎么回事,我该做些什么才能使编译顺利通过(程序本身肯定没有问题),或者只要能安装成功也行。
|
好像版本不一样
在linux下并不是高版本就行,在许多时候只是指定的版本才能编译通过
在linux安装oracle就是一例
在linux下并不是高版本就行,在许多时候只是指定的版本才能编译通过
在linux安装oracle就是一例
|
注意看提示信息:/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
也就是krb5.h这个头文件没有找到,你看看是不是kerberos的问题
也就是krb5.h这个头文件没有找到,你看看是不是kerberos的问题