邮件服务器编译安装问题及解决方法收集
1.cyrus-sasl2
mail~#wget http://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.21.tar.gz
mail~#tar zxvf /usr/src/mail/cyrus-sasl-2.1.21.tar.gz -C /tmp
mail~#cd /tmp/cyrus-sasl-2.1.21
mail~#./configure --prefix=/opt/sasl2 --enable-login --enable-plain --enable-sql --enable-pwcheck --disable-anon --disable-digest --with-mysql=/opt/mysql --with-mysql-includes=/opt/mysql/include/mysql --with-mysql-libs=/opt/mysql/lib/mysql --with-saslauthd=/var/run
mail~#make
如果出现下面的错误:
auth_getpwent.c:48:20: des.h: No such file or directory
make[3]: *** [auth_getpwent.o] Error 1
make[3]: Leaving directory `/tmp/cyrus-sasl-2.1.21/saslauthd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/cyrus-sasl-2.1.21/saslauthd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/cyrus-sasl-2.1.21'
make: *** [all] Error 2
修改/tmp/cyrus-sasl-2.1.21/saslauthd/Makefiles内的变量CFLAGS添加-I/opt/openssl/include/openssl
或者直接
mail~#cp /tmp/cyrus-sasl-2.1.21/mac/libdes/public/des.h /tmp/cyrus-sasl-2.1.21/
2.Mysql
源码编译 mysql ,有时会出现很多问题,很多问题都是因为编译时需要很多关联的文件 导致,下面我将在编译过程中出现的一些问题及解决 方法发表如下,同时也希望各位在编译和安装过程中出现的问题和解决方法也发表出来
1.当编译出现mysql 执行 ./configure --prefix=/usr/local/mysql6 时出现这样的问题。如下:
error: No curses/termcap library found
解决方法: 安装ncurses 和 ncurses-devel
2.当make的时候,出现 error: redeclaration of C++ built-in type ‘bool
解决方法: 安装gcc-c++ ,安装后重新./configure