LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 699|回复: 7

我的vpopmail-5.2.1 make时出错了,请帮忙看看。

[复制链接]
发表于 2003-11-27 14:47:46 | 显示全部楼层 |阅读模式
[root@yq vpopmail-5.2.1]# make
make  all-recursive
make[1]: Entering directory `/home/gxm/qmail/vpopmail-5.2.1'
Making all in cdb
make[2]: Entering directory `/home/gxm/qmail/vpopmail-5.2.1/cdb'
( cat warn-auto.sh; \
echo CC=\'`head -1 conf-cc`\'; \
echo LD=\'`head -1 conf-ld`\'; \
cat find-systype.sh; \
) | sh > systype
( cat warn-auto.sh; \
echo 'main="$1"; shift'; \
echo 'rm -f "$main"'; \
echo 'ar cr "$main" ${1+"$@"}'; \
case "`cat systype`" in \
sunos-5.*) ;; \
unix_sv*) ;; \
irix64-*) ;; \
irix-*) ;; \
dgux-*) ;; \
hp-ux-*) ;; \
sco*) ;; \
*) echo 'ranlib "$main"' ;; \
esac \
) > makelib
chmod 755 makelib
( ( ./compile tryulong32.c && ./load tryulong32 && \
./tryulong32 ) >/dev/null 2>&1 \
&& cat uint32.h2 || cat uint32.h1 ) > uint32.h
rm -f tryulong32.o tryulong32
./compile cdb_hash.c
./compile cdb_unpack.c
./compile cdb_seek.c
./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
./compile cdbmake_pack.c
./compile cdbmake_hash.c
./compile cdbmake_add.c
./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o \
cdbmake_add.o
make[2]: Leaving directory `/home/gxm/qmail/vpopmail-5.2.1/cdb'
make[2]: Entering directory `/home/gxm/qmail/vpopmail-5.2.1'
gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c vpopmail.c
gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c md5.c
gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c bigdir.c
gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c vauth.c
gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c file_lock.c
gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c vpalias.c
rm -f libvpopmail.a
ar cru libvpopmail.a vpopmail.o md5.o bigdir.o vauth.o file_lock.o vpalias.o cdb/*.o
ranlib libvpopmail.a
gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c vchkpw.c
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 `/home/gxm/qmail/vpopmail-5.2.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gxm/qmail/vpopmail-5.2.1'
make: *** [all-recursive-am] Error 2
[root@yq vpopmail-5.2.1]#
 楼主| 发表于 2003-11-28 09:09:06 | 显示全部楼层
我顶
 楼主| 发表于 2003-12-1 10:48:19 | 显示全部楼层
再顶
发表于 2003-12-1 11:06:50 | 显示全部楼层
最初由 冰箱 发表
再顶


./configure    --with-includes=/usr/include/mysql/   


这样呢??
 楼主| 发表于 2003-12-1 14:43:54 | 显示全部楼层
最初由 北南南北 发表
./configure    --with-includes=/usr/include/mysql/   


这样呢??


=====================
还是一样的 :-(
发表于 2003-12-1 21:40:57 | 显示全部楼层
最初由 冰箱 发表
=====================
还是一样的 :-(


兄弟,我的意思是说,要指定mysql include所在的位置。因为我用rpm包安装的,路径就是那样的。

查看一下mysql是不是都安装好了
#rpm -qa | grep mysql

如果是用源码包安装,就要自己configure指定mysql的include 的位置了。
 楼主| 发表于 2003-12-2 16:35:20 | 显示全部楼层
我的mysql 4.0也是用RPM安装的, /usr/include/mysql 下有很多.h文件,应该就是这里啊。
 楼主| 发表于 2003-12-3 11:30:42 | 显示全部楼层
好用了,装上zlib-devel就好了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表