免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2218 | 回复: 3
打印 上一主题 下一主题

[Mail] 求助:有关安装vpopmail出错,急? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-02-01 13:28 |只看该作者 |倒序浏览
前面我都成功安装了daemontools +ucspi-tcp+qmail
想不到最后安装了vpopmail出错。

groupadd vchkpw -g 89

useradd vpopmail -u 89 -g vchkpw

mkdir -p /home/vpopmail/etc

echo "vip.aa.com" > /home/vpopmail/etc/defaultdomain

# 设置smtp规则,关闭open relays

echo '127.0.0.1:allow,RELAYCLIENT=""' > /home/vpopmail/etc/tcp.smtp

cd /home/vpopmail/etc ; tcprules tcp.smtp.cdb tcp.smtp.tmp < tcp.smtp

# 设置MySQL信息,第一个vpopmail是帐号,123456为密码,第二个vpopmail是数据库

echo "localhost|0|vpopmail|123456|vpopmail" > /home/vpopmail/etc/vpopmail.mysql

chmod 640 /home/vpopmail/etc/vpopmail.mysql  

chown -R vpopmail.vchkpw /home/vpopmail/etc  

# 在MySQL里添加vpopmail的帐号

mysql -uroot -p123456


CREATE DATABASE vpopmail;

GRANT select,insert,update,delete,create,drop ON vpopmail.*

TO vpopmail@localhost IDENTIFIED BY '123456';

FLUSH PRIVILEGES;

QUIT  

cd vpopmail-5.4.13

# /usr/software_install/mysql  MYSQL安装路径

./configure --prefix=/home/vpopmail --enable-incdir=/usr/software_install/mysql --enable-libdir=/usr/lib/mysql --disable-roaming-users --enable-logging=p --disable-passwd --enable-clear-passwd --disable-domain-quotas --enable-auth-module=mysql --enable-auth-logging --enable-sql-logging --disable-valias --disable-mysql-limits --enable-learn-passwords

configure得到的结果是

           vpopmail 5.4.13           
            Current settings
---------------------------------------

vpopmail directory = /home/vpopmail
               uid = 89
               gid = 89
     roaming users = OFF --disable-roaming-users (default)
password learning = ON  --enable-learn-passwords
     md5 passwords = ON  --enable-md5-passwords (default)
      file locking = ON  --enable-file-locking (default)
vdelivermail fsync = OFF --disable-file-sync (default)
     make seekable = ON  --enable-make-seekable (default)
      clear passwd = ON  --enable-clear-passwd (default)
user dir hashing  = ON  --enable-users-big-dir (default)
address extensions = OFF --disable-qmail-ext (default)
          ip alias = OFF --disable-ip-alias-domains (default)
       auth module = mysql --enable-auth-module=mysql
mysql replication = OFF --disable-mysql-replication (default)
       sql logging = ON  --enable-sql-logging
      mysql limits = OFF --disable-mysql-limits (default)
      MySQL valias = OFF --disable-valias (default)
          auth inc = -I/usr/software_install/mysql
          auth lib = -L/usr/lib/mysql  -lmysqlclient -lz -lm
  system passwords = OFF --disable-passwd (default)
        pop syslog = show failed attempts with clear text password
                     --enable-logging=p
      auth logging = ON  --enable-auth-logging (default)
all domains in one SQL table = --enable-many-domains (default)



当我输入make时得出错误是

make[2]: Leaving directory `/home/vpopmail/vpopmail-5.4.13/cdb'
make[2]: Entering directory `/home/vpopmail/vpopmail-5.4.13'
rm -f libvpopmail.a
ar cru libvpopmail.a libvpopmail_a-vpopmail.o libvpopmail_a-md5.o libvpopmail_a-bigdir.o libvpopmail_a-vauth.o libvpopmail_a-file_lock.o libvpopmail_a-vpalias.o libvpopmail_a-seek.o libvpopmail_a-vlimits.o libvpopmail_a-maildirquota.o cdb/*.o
ranlib libvpopmail.a
gcc  -g -O2 -Wall   -o vchkpw  vchkpw.o md5.o hmac_md5.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vdelivermail  vdelivermail.o maildirquota.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o clearopensmtp  clearopensmtp.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vadddomain  vadddomain.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vdeldomain  vdeldomain.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vpasswd  vpasswd.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vadduser  vadduser.o libvpopmail.a  -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vdeluser  vdeluser.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vaddaliasdomain  vaddaliasdomain.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vsetuserquota  vsetuserquota.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vpopbull  vpopbull.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vdeloldusers  vdeloldusers.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vmoduser  vmoduser.o libvpopmail.a  -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o valias  valias.o libvpopmail.a  -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vuserinfo  vuserinfo.o maildirquota.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vmkpasswd  vmkpasswd.o libvpopmail.a  -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vipmap  vipmap.o libvpopmail.a  -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vdominfo  vdominfo.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vconvert  vconvert.o libvpopmail.a  -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vkill  vkill.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vmoddomlimits  vmoddomlimits.o libvpopmail.a  -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o vchangepw  vchangepw.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
gcc  -g -O2 -Wall   -o dotqmail2valias  dotqmail2valias.o libvpopmail.a -L/usr/lib/mysql  -lmysqlclient -lz -lm -lcrypt
make[2]: Leaving directory `/home/vpopmail/vpopmail-5.4.13'
make[1]: Leaving directory `/home/vpopmail/vpopmail-5.4.13'



请问是什么情况造成的,谢谢!

论坛徽章:
0
2 [报告]
发表于 2007-02-01 14:50 |只看该作者
没有看到错误的地方呀

论坛徽章:
0
3 [报告]
发表于 2007-02-01 14:56 |只看该作者
没错就好谢谢!

论坛徽章:
0
4 [报告]
发表于 2007-03-10 16:34 |只看该作者
我的设置和上面一样,可是还是make出错,我的状态如下,谁帮我分析一下?



  1.            vpopmail 5.4.5           
  2.             Current settings
  3. ---------------------------------------

  4. vpopmail directory = /home/vpopmail
  5.                uid = 89
  6.                gid = 89
  7.      roaming users = OFF --disable-roaming-users (default)
  8. password learning = ON  --enable-learn-passwords
  9.      md5 passwords = ON  --enable-md5-passwords (default)
  10.       file locking = ON  --enable-file-locking (default)
  11. vdelivermail fsync = OFF --disable-file-sync (default)
  12.      make seekable = ON  --enable-make-seekable (default)
  13.       clear passwd = ON  --enable-clear-passwd (default)
  14. user dir hashing  = ON  --enable-users-big-dir (default)
  15. address extensions = OFF --disable-qmail-ext (default)
  16.           ip alias = OFF --disable-ip-alias-domains (default)
  17.      domain quotas = OFF --disable-domainquotas (default)
  18.        auth module = mysql --enable-auth-module=mysql
  19. mysql replication = OFF --disable-mysql-replication (default)
  20.      mysql logging = OFF --disable-mysql-logging (default)
  21.       mysql limits = OFF --disable-mysql-limits (default)
  22.       MySQL valias = OFF --disable-valias (default)
  23.           auth inc = -I/usr/local/mysql/include
  24.           auth lib = -L/usr/local/mysql/lib  -lmysqlclient -lz -lm
  25.   system passwords = OFF --disable-passwd (default)
  26.         pop syslog = show failed attempts with clear text password
  27.                      --enable-logging=p
  28.       auth logging = ON  --enable-auth-logging (default)
  29. all domains in one SQL table = --enable-many-domains (default)


  30. [root@mail vpopmail-5.4.5]# make
  31. make  all-recursive
  32. make[1]: Entering directory `/home/vpopmail/vpopmail-5.4.5'
  33. Making all in cdb
  34. make[2]: Entering directory `/home/vpopmail/vpopmail-5.4.5/cdb'
  35. ( cat warn-auto.sh; \
  36. echo CC=\'`head -1 conf-cc`\'; \
  37. echo LD=\'`head -1 conf-ld`\'; \
  38. cat find-systype.sh; \
  39. ) | sh > systype
  40. ( cat warn-auto.sh; \
  41. echo 'main="$1"; shift'; \
  42. echo 'rm -f "$main"'; \
  43. echo 'ar cr "$main" ${1+"$@"}'; \
  44. case "`cat systype`" in \
  45. sunos-5.*) ;; \
  46. unix_sv*) ;; \
  47. irix64-*) ;; \
  48. irix-*) ;; \
  49. dgux-*) ;; \
  50. hp-ux-*) ;; \
  51. sco*) ;; \
  52. *) echo 'ranlib "$main"' ;; \
  53. esac \
  54. ) > makelib
  55. chmod 755 makelib
  56. ( cat warn-auto.sh; \
  57. echo exec "`head -1 conf-cc`" '-c ${1+"$@"}' \
  58. ) > compile
  59. chmod 755 compile
  60. ( cat warn-auto.sh; \
  61. echo 'main="$1"; shift'; \
  62. echo exec "`head -1 conf-ld`" \
  63. '-o "$main" "$main".o ${1+"$@"}' \
  64. ) > load
  65. chmod 755 load
  66. ( ( ./compile tryulong32.c && ./load tryulong32 && \
  67. ./tryulong32 ) >/dev/null 2>&1 \
  68. && cat uint32.h2 || cat uint32.h1 ) > uint32.h
  69. rm -f tryulong32.o tryulong32
  70. ./compile cdb_hash.c
  71. ./compile cdb_unpack.c
  72. ./compile cdb_seek.c
  73. ./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
  74. ./compile cdbmake_pack.c
  75. ./compile cdbmake_hash.c
  76. ./compile cdbmake_add.c
  77. ./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o \
  78. cdbmake_add.o
  79. make[2]: Leaving directory `/home/vpopmail/vpopmail-5.4.5/cdb'
  80. make[2]: Entering directory `/home/vpopmail/vpopmail-5.4.5'
  81. gcc -I. -I/usr/local/mysql/include  -I. -I. -I.     -g -O2 -Wall -c `test -f 'vpopmail.c' || echo './'`vpopmail.c
  82. gcc -I. -I/usr/local/mysql/include  -I. -I. -I.     -g -O2 -Wall -c `test -f 'md5.c' || echo './'`md5.c
  83. gcc -I. -I/usr/local/mysql/include  -I. -I. -I.     -g -O2 -Wall -c `test -f 'bigdir.c' || echo './'`bigdir.c
  84. gcc -I. -I/usr/local/mysql/include  -I. -I. -I.     -g -O2 -Wall -c `test -f 'vauth.c' || echo './'`vauth.c
  85. vauth.c:33:19: mysql.h: No such file or directory
  86. vauth.c:40: error: syntax error before "mysql_update"
  87. vauth.c:40: warning: type defaults to `int' in declaration of `mysql_update'
  88. vauth.c:40: warning: data definition has no type or storage class
  89. vauth.c:41: error: syntax error before "mysql_read_getall"
  90. vauth.c:41: warning: type defaults to `int' in declaration of `mysql_read_getall'
  91. vauth.c:41: warning: data definition has no type or storage class
  92. vauth.c:59: error: syntax error before '*' token
  93. vauth.c:59: warning: type defaults to `int' in declaration of `res_update'
  94. vauth.c:59: warning: data definition has no type or storage class
  95. vauth.c:60: error: syntax error before '*' token
  96. vauth.c:60: warning: type defaults to `int' in declaration of `res_read_getall'
  97. vauth.c:60: warning: data definition has no type or storage class
  98. vauth.c:68: error: syntax error before "row"
  99. vauth.c:68: warning: type defaults to `int' in declaration of `row'
  100. vauth.c:68: warning: data definition has no type or storage class
  101. vauth.c:69: error: syntax error before "row_getall"
  102. vauth.c:69: warning: type defaults to `int' in declaration of `row_getall'
  103. vauth.c:69: warning: data definition has no type or storage class
  104. vauth.c: In function `vauth_open_update':
  105. vauth.c:203: warning: implicit declaration of function `mysql_init'
  106. vauth.c:204: warning: implicit declaration of function `mysql_options'
  107. vauth.c:204: error: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)
  108. vauth.c:204: error: (Each undeclared identifier is reported only once
  109. vauth.c:204: error: for each function it appears in.)
  110. vauth.c:207: warning: implicit declaration of function `mysql_real_connect'
  111. vauth.c:217: warning: implicit declaration of function `mysql_select_db'
  112. vauth.c:221: warning: implicit declaration of function `mysql_query'
  113. vauth.c:226: warning: implicit declaration of function `mysql_error'
  114. vauth.c:226: warning: format argument is not a pointer (arg 3)
  115. vauth.c: In function `vauth_adduser':
  116. vauth.c:394: warning: format argument is not a pointer (arg 3)
  117. vauth.c: In function `vauth_getpw':
  118. vauth.c:444: warning: format argument is not a pointer (arg 3)
  119. vauth.c:448: warning: implicit declaration of function `mysql_store_result'
  120. vauth.c:448: warning: assignment makes pointer from integer without a cast
  121. vauth.c:453: warning: implicit declaration of function `mysql_num_rows'
  122. vauth.c:454: warning: implicit declaration of function `mysql_free_result'
  123. vauth.c:472: warning: implicit declaration of function `mysql_fetch_row'
  124. vauth.c:473: error: subscripted value is neither array nor pointer
  125. vauth.c:474: error: subscripted value is neither array nor pointer
  126. vauth.c:474: error: subscripted value is neither array nor pointer
  127. vauth.c:475: error: subscripted value is neither array nor pointer
  128. vauth.c:475: error: subscripted value is neither array nor pointer
  129. vauth.c:476: error: subscripted value is neither array nor pointer
  130. vauth.c:476: error: subscripted value is neither array nor pointer
  131. vauth.c:477: error: subscripted value is neither array nor pointer
  132. vauth.c:477: error: subscripted value is neither array nor pointer
  133. vauth.c:478: error: subscripted value is neither array nor pointer
  134. vauth.c:478: error: subscripted value is neither array nor pointer
  135. vauth.c:479: error: subscripted value is neither array nor pointer
  136. vauth.c:479: error: subscripted value is neither array nor pointer
  137. vauth.c:481: error: subscripted value is neither array nor pointer
  138. vauth.c:481: error: subscripted value is neither array nor pointer
  139. vauth.c: In function `vauth_setquota':
  140. vauth.c:604: warning: format argument is not a pointer (arg 3)
  141. vauth.c: In function `vauth_getall':
  142. vauth.c:642: warning: format argument is not a pointer (arg 3)
  143. vauth.c:646: warning: assignment makes pointer from integer without a cast
  144. vauth.c:668: warning: comparison between pointer and integer
  145. vauth.c:669: error: subscripted value is neither array nor pointer
  146. vauth.c:670: error: subscripted value is neither array nor pointer
  147. vauth.c:670: error: subscripted value is neither array nor pointer
  148. vauth.c:671: error: subscripted value is neither array nor pointer
  149. vauth.c:671: error: subscripted value is neither array nor pointer
  150. vauth.c:672: error: subscripted value is neither array nor pointer
  151. vauth.c:672: error: subscripted value is neither array nor pointer
  152. vauth.c:673: error: subscripted value is neither array nor pointer
  153. vauth.c:673: error: subscripted value is neither array nor pointer
  154. vauth.c:674: error: subscripted value is neither array nor pointer
  155. vauth.c:674: error: subscripted value is neither array nor pointer
  156. vauth.c:675: error: subscripted value is neither array nor pointer
  157. vauth.c:676: error: subscripted value is neither array nor pointer
  158. vauth.c:679: error: subscripted value is neither array nor pointer
  159. vauth.c:680: error: subscripted value is neither array nor pointer
  160. vauth.c: In function `vauth_setpw':
  161. vauth.c:768: warning: format argument is not a pointer (arg 3)
  162. vauth.c: In function `vclose':
  163. vauth.c:872: warning: implicit declaration of function `mysql_close'
  164. vauth.c: In function `vread_dir_control':
  165. vauth.c:1019: warning: assignment makes pointer from integer without a cast
  166. vauth.c:1024: warning: comparison between pointer and integer
  167. vauth.c:1026: error: subscripted value is neither array nor pointer
  168. vauth.c:1027: error: subscripted value is neither array nor pointer
  169. vauth.c:1028: error: subscripted value is neither array nor pointer
  170. vauth.c:1030: error: subscripted value is neither array nor pointer
  171. vauth.c:1031: error: subscripted value is neither array nor pointer
  172. vauth.c:1032: error: subscripted value is neither array nor pointer
  173. vauth.c:1034: error: subscripted value is neither array nor pointer
  174. vauth.c:1035: error: subscripted value is neither array nor pointer
  175. vauth.c:1036: error: subscripted value is neither array nor pointer
  176. vauth.c:1038: error: subscripted value is neither array nor pointer
  177. vauth.c:1039: error: subscripted value is neither array nor pointer
  178. vauth.c:1040: error: subscripted value is neither array nor pointer
  179. vauth.c:1042: error: subscripted value is neither array nor pointer
  180. vauth.c:1043: error: subscripted value is neither array nor pointer
  181. vauth.c:1044: error: subscripted value is neither array nor pointer
  182. vauth.c:1046: error: subscripted value is neither array nor pointer
  183. vauth.c: In function `vwrite_dir_control':
  184. vauth.c:1096: warning: format argument is not a pointer (arg 3)
  185. vauth.c: In function `vcreate_dir_control':
  186. vauth.c:1112: warning: format argument is not a pointer (arg 3)
  187. vauth.c:1133: warning: format argument is not a pointer (arg 3)
  188. vauth.c: In function `vdel_dir_control':
  189. vauth.c:1150: warning: format argument is not a pointer (arg 3)
  190. vauth.c: In function `vset_lastauth':
  191. vauth.c:1171: warning: format argument is not a pointer (arg 3)
  192. vauth.c: In function `vget_lastauth':
  193. vauth.c:1190: warning: format argument is not a pointer (arg 3)
  194. vauth.c:1194: warning: assignment makes pointer from integer without a cast
  195. vauth.c:1197: error: subscripted value is neither array nor pointer
  196. vauth.c: In function `vget_lastauthip':
  197. vauth.c:1215: warning: format argument is not a pointer (arg 3)
  198. vauth.c:1219: warning: assignment makes pointer from integer without a cast
  199. vauth.c:1221: error: subscripted value is neither array nor pointer
  200. vauth.c: In function `vcreate_lastauth_table':
  201. vauth.c:1235: warning: format argument is not a pointer (arg 3)
  202. make[2]: *** [vauth.o] Error 1
  203. make[2]: Leaving directory `/home/vpopmail/vpopmail-5.4.5'
  204. make[1]: *** [all-recursive] Error 1
  205. make[1]: Leaving directory `/home/vpopmail/vpopmail-5.4.5'
  206. make: *** [all] Error 2
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP