免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: drvial
打印 上一主题 下一主题

[Mail] 新手的Centos5.2+postfix安装配置,请大家校验. [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-08-18 19:14 |只看该作者
当初也是没成功。找时间再来试试。

支持一下。

论坛徽章:
0
12 [报告]
发表于 2009-12-15 15:17 |只看该作者
CENTOS5.4 完全按照步骤操作,相同版本,安装mysql成功了,安装 httpd失败
安装结果
#################################################
Making all in dav/fs
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -pthread    -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE    -I/root/httpd-2.2.11/srclib/pcre -I. -I/root/httpd-2.2.11/os/unix -I/root/httpd-2.2.11/server/mpm/prefork -I/root/httpd-2.2.11/modules/http -I/root/httpd-2.2.11/modules/filters -I/root/httpd-2.2.11/modules/proxy -I/root/httpd-2.2.11/include -I/root/httpd-2.2.11/modules/generators -I/root/httpd-2.2.11/modules/mappers -I/root/httpd-2.2.11/modules/database -I/usr/include/apr-1 -I/root/httpd-2.2.11/modules/proxy/../generators -I/root/httpd-2.2.11/modules/ssl -I/root/httpd-2.2.11/modules/dav/main  -prefer-non-pic -static -c htpasswd.c && touch htpasswd.lo
/usr/lib64/apr-1/build/libtool --silent --mode=link gcc -pthread        -o htpasswd  htpasswd.lo   -lm /root/httpd-2.2.11/srclib/pcre/libpcre.la /usr/lib64/libaprutil-1.la -lldap -llber -ldb-4.3 -lexpat /usr/lib64/libapr-1.la -lpthread -ldl
/usr/bin/ld: warning: libsasl2.so.2, needed by /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_client_step'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_version'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_decode'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_client_init'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_dispose'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_errstring'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_encode'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_errdetail'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_getprop'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_setprop'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_client_start'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libldap.so: undefined reference to `sasl_client_new'
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] 閿欒? 1
make[2]: Leaving directory `/root/httpd-2.2.11/support'
make[1]: *** [all-recursive] 閿欒? 1
make[1]: Leaving directory `/root/httpd-2.2.11/support'
make: *** [all-recursive] 閿欒? 1
#############################################

没有/usr/local/apache/bin目录


[root@mail httpd-2.2.11]# cd /usr/local/apache/bin
-bash: cd: /usr/local/apache/bin: 娌℃湁閭d釜鏂囦欢鎴栫洰褰?
                                                              [root@mail httpd-2.2.11]# cd /usr/local/apache/bin
-bash: cd: /usr/local/apache/bin: 娌℃湁閭d釜鏂囦欢鎴栫洰褰?

######################################################

编译参数:

./configure --prefix=/usr/local/apache --enable-so --enable-rewrite --with-zlib --enable-mods-shared=most

编译结果:


[root@mail httpd-2.2.11]# ./configure --prefix=/usr/local/apache --enable-so --enable-rewrite --with-zlib --enable-mods-shared=most
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... yes
  setting CC to "gcc"
  setting CPP to "gcc -E"
  setting CFLAGS to "  -pthread"
  setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE"
  setting LDFLAGS to " "

Configuring Apache Portable Runtime Utility library...

checking for APR-util... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
configure: Configuring PCRE regular expression library
configuring package in srclib/pcre now
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for bcopy... yes
checking for memmove... yes
checking for strerror... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pcre.h
config.status: creating pcre-config
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
srclib/pcre configured properly
  setting AP_LIBS to "/root/httpd-2.2.11/srclib/pcre/libpcre.la"
  setting INCLUDES to "-I$(top_builddir)/srclib/pcre"

Configuring Apache httpd ...

  adding "-I." to INCLUDES
  adding "-I$(top_srcdir)/os/$(OS_DIR)" to INCLUDES
  adding "-I$(top_srcdir)/server/mpm/$(MPM_SUBDIR_NAME)" to INCLUDES
  adding "-I$(top_srcdir)/modules/http" to INCLUDES
  adding "-I$(top_srcdir)/modules/filters" to INCLUDES
  adding "-I$(top_srcdir)/modules/proxy" to INCLUDES
  adding "-I$(top_srcdir)/include" to INCLUDES
  adding "-I$(top_srcdir)/modules/generators" to INCLUDES
  adding "-I$(top_srcdir)/modules/mappers" to INCLUDES
  adding "-I$(top_srcdir)/modules/database" to INCLUDES
  adding "-I/usr/include/apr-1" to INCLUDES

Applying OS-specific hints for httpd ...

  forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to "1"
  forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to "1"
checking for rm... /bin/rm
checking for pkg-config... /usr/bin/pkg-config
checking for rsync... /usr/bin/rsync
checking for gawk... gawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for lynx... no
checking for links... links
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for APR version 1.2.0 or later... yes
checking for APR-util version 1.2.0 or later... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for strings.h... (cached) yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/processor.h usability... no
checking sys/processor.h presence... no
checking for sys/processor.h... no
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for an ANSI C-conforming const... yes
checking for library containing sqrt... -lm
checking for getpwnam... yes
checking for getgrnam... yes
checking for initgroups... yes
checking for bindprocessor... no
checking for prctl... yes
checking for timegm... yes
checking for getpgid... yes
checking for void pointer length... no
checking for tm_gmtoff in struct tm... yes
checking whether to enable mod_authn_file... shared (most)
checking whether to enable mod_authn_dbm... shared (most)
checking whether to enable mod_authn_anon... shared (most)
checking whether to enable mod_authn_dbd... shared (most)
checking whether to enable mod_authn_default... shared (most)
checking whether to enable mod_authn_alias... no
checking whether to enable mod_authz_host... shared (most)
checking whether to enable mod_authz_groupfile... shared (most)
checking whether to enable mod_authz_user... shared (most)
checking whether to enable mod_authz_dbm... shared (most)
checking whether to enable mod_authz_owner... shared (most)
checking whether to enable mod_authnz_ldap... no
checking whether to enable mod_authz_default... shared (most)
checking whether to enable mod_auth_basic... shared (most)
checking whether to enable mod_auth_digest... checking dependencies
checking whether to enable mod_auth_digest... shared (most)
checking whether to enable mod_isapi... no
checking whether to enable mod_file_cache... no
checking whether to enable mod_cache... no
checking whether to enable mod_disk_cache... no
checking whether to enable mod_mem_cache... no
checking whether to enable mod_dbd... shared (most)
checking whether to enable mod_bucketeer... no
checking whether to enable mod_dumpio... shared (most)
checking whether to enable mod_echo... no
checking whether to enable mod_example... no
checking whether to enable mod_case_filter... no
checking whether to enable mod_case_filter_in... no
checking whether to enable mod_ext_filter... shared (most)
checking whether to enable mod_include... shared (most)
checking whether to enable mod_filter... shared (most)
checking whether to enable mod_substitute... shared (most)
checking whether to enable mod_charset_lite... no
checking whether to enable mod_deflate... checking dependencies
checking for zlib location... /usr
  adding "-lz" to LIBS
checking for zlib library... found
  forcing MOD_DEFLATE_LDADD to "-lz"
  removed "-lz" from LIBS
checking whether to enable mod_deflate... shared (most)
checking whether to enable mod_ldap... no
checking whether to enable mod_log_config... shared (most)
checking whether to enable mod_log_forensic... no
checking whether to enable mod_logio... shared (most)
checking whether to enable mod_env... shared (most)
checking whether to enable mod_mime_magic... no
checking whether to enable mod_cern_meta... no
checking whether to enable mod_expires... shared (most)
checking whether to enable mod_headers... shared (most)
checking whether to enable mod_ident... shared (most)
checking whether to enable mod_usertrack... no
checking whether to enable mod_unique_id... no
checking whether to enable mod_setenvif... shared (most)
checking whether to enable mod_version... no
checking whether to enable mod_proxy... no
checking whether to enable mod_proxy_connect... no
checking whether to enable mod_proxy_ftp... no
checking whether to enable mod_proxy_http... no
checking whether to enable mod_proxy_ajp... no
checking whether to enable mod_proxy_balancer... no
  adding "-I$(top_srcdir)/modules/proxy/../generators" to INCLUDES
checking whether to enable mod_ssl... no
  adding "-I$(top_srcdir)/modules/ssl" to INCLUDES
checking whether to enable mod_optional_hook_export... no
checking whether to enable mod_optional_hook_import... no
checking whether to enable mod_optional_fn_import... no
checking whether to enable mod_optional_fn_export... no
checking for target platform... unix
checking for rlim_t... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/sem.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking for setsid... yes
checking for killpg... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking for unistd.h... (cached) yes
checking for syslog... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for times... yes
checking which MPM to use... prefork
checking whether to enable mod_http... yes
checking whether to enable mod_mime... shared (most)
checking for extra modules... none
checking whether to enable mod_dav... shared (most)
  adding "-I$(top_srcdir)/modules/dav/main" to INCLUDES
checking whether to enable mod_status... shared (most)
checking whether to enable mod_autoindex... shared (most)
checking whether to enable mod_asis... shared (most)
checking whether to enable mod_info... shared (most)
checking whether to enable mod_suexec... no
checking whether to enable mod_cgi... shared (most)
checking whether to enable mod_cgid... no
checking whether to enable mod_dav_fs... shared (most)
checking whether to enable mod_dav_lock... no
checking whether to enable mod_vhost_alias... shared (most)
checking whether to enable mod_negotiation... shared (most)
checking whether to enable mod_dir... shared (most)
checking whether to enable mod_imagemap... shared (most)
checking whether to enable mod_actions... shared (most)
checking whether to enable mod_speling... shared (most)
checking whether to enable mod_userdir... shared (most)
checking whether to enable mod_alias... shared (most)
checking whether to enable mod_rewrite... shared (most)
  setting HTTPD_LDFLAGS to "-export-dynamic"
checking whether to enable mod_so... yes

Restore user-defined environment settings...

  restoring CPPFLAGS to ""
  setting EXTRA_CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE"
  restoring CFLAGS to ""
  setting EXTRA_CFLAGS to "  -pthread"
  restoring CXXFLAGS to ""
  setting EXTRA_CXXFLAGS to ""
  restoring LDFLAGS to ""
  setting EXTRA_LDFLAGS to " "
  restoring LIBS to ""
  setting EXTRA_LIBS to " -lm"
  restoring INCLUDES to ""
  setting EXTRA_INCLUDES to "-I$(top_builddir)/srclib/pcre -I. -I$(top_srcdir)/os/$(OS_DIR) -I$(top_srcdir)/server/mpm/$(MPM_SUBDIR_NAME) -I$(top_srcdir)/modules/http -I$(top_srcdir)/modules/filters -I$(top_srcdir)/modules/proxy -I$(top_srcdir)/include -I$(top_srcdir)/modules/generators -I$(top_srcdir)/modules/mappers -I$(top_srcdir)/modules/database -I/usr/include/apr-1 -I$(top_srcdir)/modules/proxy/../generators -I$(top_srcdir)/modules/ssl -I$(top_srcdir)/modules/dav/main"

Construct makefiles and header files...

creating config_vars.mk
configure: creating ./config.status
creating modules/aaa/Makefile
creating modules/arch/win32/Makefile
creating modules/cache/Makefile
creating modules/database/Makefile
creating modules/debug/Makefile
creating modules/echo/Makefile
creating modules/experimental/Makefile
creating modules/filters/Makefile
creating modules/ldap/Makefile
creating modules/loggers/Makefile
creating modules/metadata/Makefile
creating modules/proxy/Makefile
creating modules/ssl/Makefile
creating modules/test/Makefile
creating os/unix/Makefile
creating server/mpm/Makefile
creating server/mpm/prefork/Makefile
creating modules/http/Makefile
creating modules/dav/main/Makefile
creating modules/generators/Makefile
creating modules/dav/fs/Makefile
creating modules/dav/lock/Makefile
creating modules/mappers/Makefile
creating Makefile
creating modules/Makefile
creating srclib/Makefile
creating os/Makefile
creating server/Makefile
creating support/Makefile
creating srclib/pcre/Makefile
creating test/Makefile
config.status: creating docs/conf/httpd.conf
config.status: creating docs/conf/extra/httpd-autoindex.conf
config.status: creating docs/conf/extra/httpd-dav.conf
config.status: creating docs/conf/extra/httpd-default.conf
config.status: creating docs/conf/extra/httpd-info.conf
config.status: creating docs/conf/extra/httpd-languages.conf
config.status: creating docs/conf/extra/httpd-manual.conf
config.status: creating docs/conf/extra/httpd-mpm.conf
config.status: creating docs/conf/extra/httpd-multilang-errordoc.conf
config.status: creating docs/conf/extra/httpd-ssl.conf
config.status: creating docs/conf/extra/httpd-userdir.conf
config.status: creating docs/conf/extra/httpd-vhosts.conf
config.status: creating include/ap_config_layout.h
config.status: creating support/apxs
config.status: creating support/apachectl
config.status: creating support/dbmmanage
config.status: creating support/envvars-std
config.status: creating support/log_server_status
config.status: creating support/logresolve.pl
config.status: creating support/phf_abuse_log.cgi
config.status: creating support/split-logfile
config.status: creating build/rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating build/config_vars.sh
config.status: creating include/ap_config_auto.h
config.status: include/ap_config_auto.h is unchanged
config.status: executing default commands
[root@mail httpd-2.2.11]#
#####################################

请指导,谢谢


[ 本帖最后由 centosak 于 2009-12-15 15:19 编辑 ]

论坛徽章:
0
13 [报告]
发表于 2009-12-15 15:24 |只看该作者
[root@mail ~]# rpm -qa | grep libpng
libpng-devel-1.2.10-7.1.el5_3.2
libpng-devel-1.2.10-7.1.el5_3.2
libpng-1.2.10-7.1.el5_3.2
libpng-1.2.10-7.1.el5_3.2
[root@mail ~]# rpm -qa | grep jpeg-6b
libjpeg-6b-37
libjpeg-6b-37
[root@mail ~]# rpm -qa | grep freetype
freetype-2.2.1-21.el5_3
freetype-devel-2.2.1-21.el5_3
freetype-demos-2.2.1-21.el5_3
freetype-devel-2.2.1-21.el5_3
freetype-2.2.1-21.el5_3
[root@mail ~]# rpm -qa | grep fontconfig
fontconfig-2.4.1-7.el5
fontconfig-2.4.1-7.el5
[root@mail ~]# rpm -qa | grep gd
gdbm-1.8.0-26.2.1
libgdiplus-1.2.5-1.el5.centos
gdbm-devel-1.8.0-26.2.1
gdbm-devel-1.8.0-26.2.1
gdbm-1.8.0-26.2.1
gd-2.0.33-9.4.el5_1.1
sysklogd-1.4.1-44.el5
gdm-2.16.0-56.el5.centos
php-gd-5.1.6-23.2.el5_3
[root@mail ~]# rpm -qa | grep gcc
gcc-c++-4.1.2-46.el5_4.1
libgcc-4.1.2-46.el5_4.1
gcc-4.1.2-46.el5_4.1
libgcc-4.1.2-46.el5_4.1
[root@mail ~]#
[root@mail ~]# rpm -qa | grep sasl
cyrus-sasl-devel-2.1.22-5.el5
cyrus-sasl-md5-2.1.22-5.el5
[root@mail ~]#

[ 本帖最后由 centosak 于 2009-12-15 15:26 编辑 ]

论坛徽章:
0
14 [报告]
发表于 2009-12-15 15:44 |只看该作者
[root@mail httpd-2.2.11]# cd /usr/lib/gcc
[root@mail gcc]# cd x86_64-redhat-linux/
[root@mail x86_64-redhat-linux]# cd 4.1.2
[root@mail 4.1.2]# ls
32           crtbeginT.o  crtfastmath.o  libgcc_eh.a  libgomp.a     libstdc++.a   SYSCALLS.c.X
crtbegin.o   crtend.o     include        libgcc_s.so  libgomp.so    libstdc++.so
crtbeginS.o  crtendS.o    libgcc.a       libgcov.a    libgomp.spec  libsupc++.a
[root@mail 4.1.2]# cd 32
[root@mail 32]# ls
crtbegin.o   crtend.o       libgcc.a     libgcov.a   libmudflap.a    libmudflapth.so  libsupc++.a
crtbeginS.o  crtendS.o      libgcc_eh.a  libgomp.a   libmudflap.so   libstdc++.a
crtbeginT.o  crtfastmath.o  libgcc_s.so  libgomp.so  libmudflapth.a  libstdc++.so
[root@mail 32]# cd ..
[root@mail 4.1.2]# ls
32           crtbeginT.o  crtfastmath.o  libgcc_eh.a  libgomp.a     libstdc++.a   SYSCALLS.c.X
crtbegin.o   crtend.o     include        libgcc_s.so  libgomp.so    libstdc++.so
crtbeginS.o  crtendS.o    libgcc.a       libgcov.a    libgomp.spec  libsupc++.a
[root@mail 4.1.2]#

论坛徽章:
0
15 [报告]
发表于 2009-12-15 16:37 |只看该作者
XXOO的,试了3-5天了
原来是 apr跟apr-util的问题

先卸载系统原有的apr;再安装源代码在httpd安装目录apr下;接着再安装httpd
感谢:APACHE 安装出错 configure: error: Cannot use an external APR with the bundled APR-util的帖子

安装APR
cd srclib/apr

#./configure --prefix=/usr/local/apr
#make
#make install

安装APR-util
cd srclib/apr-util

#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
#make
#make install


httpd参数
./configure --prefix=/usr/local/apache --enable-so --enable-rewrite --with-zlib --enable-mods-

shared=most  --enable-cgi --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/bin

论坛徽章:
0
16 [报告]
发表于 2009-12-15 16:40 |只看该作者
[root@mail bin]# service httpd start
Syntax error on line 109 of /usr/local/apache/conf/httpd.conf:
Invalid command 'postfix', perhaps misspelled or defined by a module not included in the server configuration

这里在line 109配置:
User postfix
Group postfix

[root@mail bin]# service httpd start
[root@mail bin]# netstat -atln
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 127.0.0.1:2208              0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:10024             0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:3310              0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      
tcp        0      0 0.0.0.0:702                 0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:2207              0.0.0.0:*                   LISTEN      
tcp        0      0 :::80                       :::*                        LISTEN      
tcp        0      0 :::22                       :::*                        LISTEN      
tcp        0    228 ::ffff:10.10.102.21:22      ::ffff:10.10.18.88:59865    ESTABLISHED

论坛徽章:
0
17 [报告]
发表于 2009-12-16 17:33 |只看该作者
很浩瀚的工程,哈哈。

我还是喜欢rpm,除非rpm版本某些功能不支持,要么版本过低。

论坛徽章:
0
18 [报告]
发表于 2009-12-25 09:09 |只看该作者
测试 cyrus-sasl之前
cd /usr/local/src/cyrus-sasl-2.1.18/saslauthd/

make testsaslauthd

./testsaslauthd -u root -p '输密码'               //(testsaslauthd命令在源代码saslauthd安装目录下)


[root@mail saslauthd]#cp testsaslauthd /usr/local/sasl2/sbin/testsaslauthd          //拷贝testsaslauthd到/usr/local/sasl2/sbin/目录下

/usr/local/sasl2/sbin/testsaslauthd -u root -p ‘输密码’

[ 本帖最后由 centosak 于 2009-12-30 11:16 编辑 ]

论坛徽章:
0
19 [报告]
发表于 2009-12-25 09:57 |只看该作者
不错

论坛徽章:
0
20 [报告]
发表于 2009-12-29 10:39 |只看该作者
又卡住了
[root@mail postfix-2.6.0]# make -f Makefile makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/sasl2/include/sasl' 'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz lm -L/usr/local/sasl2/lib -lsasl2'
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
set +e; if cmp makedefs.tmp conf/makedefs.out; then rm makedefs.tmp; \
        else mv makedefs.tmp conf/makedefs.out; fi >/dev/null 2>/dev/null
set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master src/postfix src/fsstone src/smtpstone src/sendmail src/error src/pickup src/cleanup src/smtpd src/local src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop src/postkick src/postlock src/postlog src/postmap src/postqueue src/postsuper src/qmqpd src/spawn src/flush src/verify src/virtual src/proxymap src/anvil src/scache src/discard src/tlsmgr src/postmulti; do \
         (set -e; echo "[$i]"; cd $i; rm -f Makefile; \
         make -f Makefile.in Makefile MAKELEVEL=) || exit 1; \
        done;
[src/util]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/global]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/dns]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/tls]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/xsasl]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/milter]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/master]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postfix]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/fsstone]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/smtpstone]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/sendmail]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/error]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/pickup]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/cleanup]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/smtpd]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/local]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/trivial-rewrite]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/qmgr]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/oqmgr]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/smtp]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/bounce]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/pipe]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/showq]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postalias]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postcat]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postconf]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postdrop]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postkick]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postlock]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postlog]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postmap]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postqueue]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postsuper]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/qmqpd]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/spawn]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/flush]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/verify]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/virtual]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/proxymap]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/anvil]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/scache]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/discard]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/tlsmgr]
cat ../../conf/makedefs.out Makefile.in >Makefile
[src/postmulti]
cat ../../conf/makedefs.out Makefile.in >Makefile
rm -f Makefile; (cat conf/makedefs.out Makefile.in) >Makefile
[root@mail postfix-2.6.0]#

#############################################
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/sasl2/include/sasl -DHAS_PCRE  -g -O -I. -I../../include -DLINUX2 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o master_status.o master_listen.o master_vars.o master_wakeup.o master_watch.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/local/mysql/lib/mysql -lmysqlclient -lz lm -L/usr/local/sasl2/lib -lsasl2 -lpcre -ldb -lnsl -lresolv
gcc: lm锛氭病鏈夐偅涓?枃浠舵垨鐩?綍
make: *** [master] 閿欒? 1
make: *** [update] 閿欒? 1
[root@mail postfix-2.6.0]#

gcc:lm:没有那个文件或目录
make:***[master]错误 1
make:***[update]错误 1

#####################################
[root@mail postfix-2.6.0]# cd /usr/local/sasl2/lib
[root@mail lib]# ll
鎬昏? 340
-rwxr-xr-x 1 root root    660 12-25 08:43 libsasl2.la
lrwxrwxrwx 1 root root     18 12-25 08:43 libsasl2.so -> libsasl2.so.2.0.18
lrwxrwxrwx 1 root root     18 12-25 08:43 libsasl2.so.2 -> libsasl2.so.2.0.18
-rwxr-xr-x 1 root root 332975 12-25 08:43 libsasl2.so.2.0.18
drwxr-xr-x 2 root root   4096 12-25 08:46 sasl2

-lmysqlclient -lz lm -L/usr/local/sasl2/lib -lsasl2 -lpcre -ldb -lnsl -lresolv


有/usr/local/sasl2/lib目录
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP