在Fedora下装从不出错..今天换成REDHAT9.居然出错..
如下:
In file included from /usr/include/openssl/ssl.h:179,
from qsslsocket_openssl_p.h:83,
from qsslsocket_openssl_symbols_p.h:68,
from qsslcertificate.cpp:119:
/usr/include/openssl/kssl.h:72:18: krb5.h: 没有那个文件或目录
In file included from /usr/include/openssl/ssl.h:179,
from qsslsocket_openssl_p.h:83,
from qsslsocket_openssl_symbols_p.h:68,
from qsslcertificate.cpp:119:
/usr/include/openssl/kssl.h:132: 'krb5_enctype' is used as a type, but is not
defined as a type.
/usr/include/openssl/kssl.h:134: parse error before `*' token
/usr/include/openssl/kssl.h:147: parse error before `*' token
/usr/include/openssl/kssl.h:151: parse error before `*' token
/usr/include/openssl/kssl.h:153: parse error before `*' token
/usr/include/openssl/kssl.h:155: parse error before `*' token
/usr/include/openssl/kssl.h:157: parse error before `*' token
/usr/include/openssl/kssl.h:159: `krb5_context' was not declared in this scope
/usr/include/openssl/kssl.h:159: parse error before `,' token
/usr/include/openssl/kssl.h:160: `krb5_context' was not declared in this scope
/usr/include/openssl/kssl.h:160: parse error before `,' token
/usr/include/openssl/kssl.h:163: `krb5_timestamp' was not declared in this
scope
/usr/include/openssl/kssl.h:163: parse error before `,' token
/usr/include/openssl/kssl.h:165: parse error before `*' token
/usr/include/openssl/kssl.h:167: `krb5_enctype' was not declared in this scope
/usr/include/openssl/kssl.h:167: parse error before `,' token
make[1]: *** [.obj/release-shared/qsslcertificate.o] Error 1
make[1]: Leaving directory `/tmp/qt-x11-opensource-src-4.3.2/src/network'
make: *** [sub-network-make_default-ordered] Error 2
现在借用一名fusongbai QQ 398407063的网友的回答:
---------------------------------------------------------------------------
gmake 过程中可能会报错,提示无法找到krb5.h,解决方法是:
ln -s /usr/kerberos/include/com_err.h /usr/include/com_err.h
ln -s /usr/kerberos/include/profile.h /usr/include/profile.h
ln -s /usr/kerberos/include/krb5.h /usr/include/krb5.h
---------------------------------------------------------------------------
没错,我试了一下,这样做就好了,配置好以后,执行一下上面的三条命令,然后再gmake,再gmake install,就OK了.