linux上安装基于postfix的全功能邮件服务器(1)
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/
关闭原有的sasl: # mv /usr/lib/libsasl2.a /usr/lib/libsasl2.a.OFF # mv /usr/lib/libsasl2.la /usr/lib/libsasl2.la.OFF # mv /usr/lib/libsasl2.so.2.0.19 /usr/lib/libsasl2.so.2.0.19.OFF # mv /usr/lib/sasl2 /usr/lib/sasl2.OFF # rm /usr/lib/libsasl2.so # rm /usr/lib/libsasl2.so.2 # ln -sv /usr/local/sasl2/lib/* /usr/lib postfix 2.3以后的版本会分别在/usr/local/lib和/usr/local/include中搜索sasl库文件及头文件,故还须将其链接至此目录中: # ln -sv /usr/local/sasl2/lib/* /usr/local/lib # ln -sv /usr/local/sasl2/include/sasl/* /usr/local/include 创建运行时需要的目录并调试启动 # mkdir -pv /var/state/saslauthd # /usr/local/sasl2/sbin/saslauthd -a shadow pam -d 启动并测试 # /usr/local/sasl2/sbin/saslauthd -a shadow pam # /usr/local/sasl2/sbin/testsaslauthd -u root -p root用户密码 配置库文件搜索路径 # echo "/usr/local/sasl2/lib" >> /etc/ld.so.conf # echo "/usr/local/sasl2/lib/sasl2" >> /etc/ld.so.conf # ldconfig -v 开机自动启动 # echo "/usr/local/sasl2/sbin/saslauthd -a shadow pam">>/etc/rc.local 四、安装BerkeleyDB #tar zxvf db-4.5.20.tar.gz #cd db-4.5.20/build_unix #../dist/configure --prefix=/usr/local/BerkeleyDB #make #make install 修改相应的头文件指向 # mv /usr/include/db4 /usr/inculde/db4.OFF # rm /usr/include/db_cxx.h # rm /usr/include/db.h # rm /usr/include/db_185.h # ln -sv /usr/local/BerkeleyDB/include /usr/include/db4 # ln -sv /usr/local/BerkeleyDB/include/db.h /usr/include/db.h # ln -sv /usr/local/BerkeleyDB/include/db_cxx.h /usr/include/db_cxx.h 配置库文件搜索路径 # echo "/usr/local/BerkeleyDB/lib" >> /etc/ld.so.conf # ldconfig -v 五、安装httpd-2.2.4 #tar jxvf httpd-2.2.4.tar.bz2 #cd httpd-2.2.4 #./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --enable-so --enable-ssl --with-ssl=/usr/local/ssl --enable-track-vars --enable-rewrite --with-zlib --enable-mods-shared=most --enable-suexec --with-suexec-caller=daemon #make #make install #echo "/usr/local/apache/bin/apachectl start" >> /etc/rc.local(系统启动时服务自动启动)
六、安装php-5.2.3 #jpeg目录 mkdir /usr/local/jpeg6 mkdir /usr/local/jpeg6/bin mkdir /usr/local/jpeg6/lib mkdir /usr/local/jpeg6/include mkdir /usr/local/jpeg6/man mkdir /usr/local/jpeg6/man/man1 安装zlib tar xzvf zlib-1.2.2.tar.gz cd zlib-1.2.2
|
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |