编译安装postfix时遇到如下错误:
[root@www postfix-2.10.8]# make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS ' 'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm -L/usr/lib/sasl2 -lsasl2 -lssl -lcrypto'
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
No <db.h> include file found.
Install the appropriate db*-devel package first.
make: *** [Makefiles] Error 1
make: *** [makefiles] Error 2
解决办法:
[root@www postfix-2.10.8]# yum install db4-devel.i686
在看老师的安装过程时却没遇到这个错误,可能因为老师安装了这两个rpm包组,里面有这个包吧:
Development Libraries
Development Tools
阅读(1233) | 评论(0) | 转发(0) |