由 freeredhat 在 04-25-2004 11:50 发表:
编译vpopmail出错
在编译vpopmail时最后出现下面的错误,不知少了什么数据包。
make all-recursive
make[1]: Entering directory `/root/vpopmail-5.2.1'
Making all in cdb
make[2]: Entering directory `/root/vpopmail-5.2.1/cdb'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/vpopmail-5.2.1/cdb'
make[2]: Entering directory `/root/vpopmail-5.2.1'
gcc -g -O2 -Wall -o vchkpw vchkpw.o libvpopmail.a -L/usr/lib/mysql -lmysqlclient -lz -lnsl -lcrypt -lm
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[2]: *** [vchkpw] Error 1
make[2]: Leaving directory `/root/vpopmail-5.2.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/vpopmail-5.2.1'
make: *** [all-recursive-am] Error 2
由 Snoopy 在 04-25-2004 11:54 发表:
#mkdir /home/vpopmail
#mkdir /home/vpopmail/etc
#groupadd vchkpw
#useradd -g vchkpw vpopmail
这些做了没有 ?
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 Snoopy 在 04-25-2004 11:55 发表:
#mysqladmin -u root password ****
#mysql -u root -p
mysql>create database vpopmail;
mysql>grant all on vpopmail.* to vpopmail@localhost identified by "密码";
#mkdir /home/vpopmail
#mkdir /home/vpopmail/etc
#groupadd vchkpw
#useradd -g vchkpw vpopmail
然后再编译
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 freeredhat 在 04-25-2004 12:57 发表:
这些我都做了,当我把redhat9.0完全装上就没有问题,整个安装过程都不会出现任何问题,但是我在vmware虚拟机中定制安装了一些需要的数据包,编译的时候就出现这个问题,所以我认为应该是少装了哪些包,
[img]http://www.linuxsir.com/bbs/images/vBulletin_logo.gif[/img]
由 Snoopy 在 04-25-2004 12:59 发表:
换个包,这错误之前我也碰过,跟补丁没关系的
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 Snoopy 在 04-25-2004 13:00 发表:
安装vpopmail
1.下载vpopmail
http://www.inter7.com/vpopmail/vpopmail-5.2.1.tar.gz
2.建立目录
#mkdir /home/vpopmail
#mkdir /home/vpopmail/etc
3.添加用户和组
#groupadd vchkpw
#useradd -g vchkpw vpopmail
4.添加mysql的vpopmail用户,用于操作vpopmail数据库
#mysqladmin -u root password **** 设置mysql的root密码。
#mysql -u root -p
mysql>create database vpopmail;
mysql>grant all on vpopmail.* to vpopmail@localhost identified by "密码";
5.编译安装vpopmail
#tar zxvf vpopmail-5.2.1.tar.gz
#cd vpopmail-5.2.1
#vi vmysql.h
=========================== vmysql.h ==============================
#define MYSQL_UPDATE_SERVER "localhost"
#define MYSQL_UPDATE_USER "vpopmail"
#define MYSQL_UPDATE_PASSWD "****" (改成你设置的密码)
#define MYSQL_READ_SERVER "localhost"
#define MYSQL_READ_USER "vpopmail"
#define MYSQL_READ_PASSWD "****" (改成你设置的密码)
==========================================================
6.创建tcp.smtp
vi /home/vpopmail/etc/tcp.smtp
==================== tcp.smtp ============================
127.0.0.1:allow,RELAYCLIENT=""
:allow
==========================================================
#cd /home/vpopmail/etc
#tcprules tcp.smtp.cdb tcp.smtp.tmp < tcp.smtp
7.进行编译:
./configure
--prefix=/home/vpopmail
--enable-mysql=y
--enable-incdir=/usr/include/mysql
--enable-libdir=/usr/lib/mysql
--enable-default-domain=domain.com
--enable-passwd=n
--enable-defaultquota=52428800s (10485760:10MB,20971520:20MB,5242880