QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1250|回复: 10

我的VPOPMAIL死活make就是出错啊!

[复制链接]
发表于 2004-8-31 12:39:37 | 显示全部楼层 |阅读模式
编译过程:
[root@rh9linux vpopmail-5.4.6]# ./configure --prefix=/home/vpopmail --enable-auth-module=mysql --enable-incdir=/usr/bin/ --enable-libdir=/usr/lib/mysql --enable-passwd=n --enable-vpopuser=vpopmail --enable-vpopgroup=vchkpw --enable-ip-alias-domains=n --enable-roaming-users=y --enable-domainquotas=y
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output... 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 style of include used by make... GNU
checking dependency style of gcc... none
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for strerror in -lcposix... no
checking for crypt in -lcrypt... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for memory.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for user_id_t in sys/types.h... yes
checking for inline... inline
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether closedir returns void... no
checking return type of signal handlers... void
checking whether utime accepts a null argument... yes
checking for bzero... yes
checking for dup2... yes
checking for fdatasync... yes
checking for getcwd... yes
checking for gethostname... yes
checking for getpass... yes
checking for getspnam... yes
checking for memset... yes
checking for mkdir... yes
checking for putenv... yes
checking for rmdir... yes
checking for socket... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for utime... yes
checking vpopmail configure options... ok
checking whether we can locate the qmail directory... yes
checking whether we can locate the qmail-newu program... yes
checking whether we can locate the qmail-inject program... yes
checking whether we can locate the qmail-inject program... yes
checking for valid vpopmail user and group... yes
checking whether password file entry for the vpopmail user exists... yes
checking whether roaming-users has been enabled... yes
checking whether we can locate the tcprules program... yes
checking whether we can locate the tcp.smtp file... yes
checking whether rebuild-tcpserver-file is been enabled... yes
checking whether learn-passwords is enabled... no
checking whether md5-passwords is enabled... yes
checking whether file-locking is enabled... yes
checking whether file-sync is enabled... no
checking whether make-seekable is enabled... yes
checking whether clear-passwd is enabled... yes
checking whether user-big-dir is enabled... yes
checking whether sqwebmail-pass is enabled... no
checking whether qmail-ext is enabled... no
checking whether ip-alias-domains is enabled... no
checking whether domainquotas is enabled... yes
checking whether an auth module has been specified... mysql
checking whether system accounts have been enabled... no
checking whether /etc/shadow exists... yes
checking whether logging is enabled... errors only
checking whether auth-logging is enabled... yes
checking whether mysql-logging is enabled... no
checking whether pgsql-logging is enabled... no
checking whether mysql-limits is enabled... no
checking whether mysql-replication is enabled... no
checking whether valias is enabled... no
checking whether many-domains is enabled... yes
checking whether any discontinued --enable commands have been used... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

           vpopmail 5.4.6
            Current settings
---------------------------------------

vpopmail directory = /home/vpopmail
               uid = 7797
               gid = 2109
     roaming users = ON  --enable-roaming-users
    tcpserver file = /home/vpopmail/etc/tcp.smtp
    open_smtp file = /home/vpopmail/etc/open-smtp
rebuild tcpserver file = ON  --enable-rebuild-tcpserver-file (default)
password learning = OFF --disable-learn-passwords (default)
     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)
     domain quotas = ON  --enable-domainquotas
       auth module = mysql --enable-auth-module=mysql
mysql replication = OFF --disable-mysql-replication (default)
     mysql logging = OFF --disable-mysql-logging (default)
      mysql limits = OFF --disable-mysql-limits (default)
      MySQL valias = OFF --disable-valias (default)
          auth inc = -I/usr/bin/
          auth lib = -L/usr/lib/mysql  -lmysqlclient -lz -lm
  system passwords = OFF --disable-passwd (default)
        pop syslog = show only failed attempts
                     --enable-logging=e (default)
      auth logging = ON  --enable-auth-logging (default)
all domains in one SQL table = --enable-many-domains (default)

显然如上的./configure好象没有问题:
 楼主| 发表于 2004-8-31 12:42:25 | 显示全部楼层
接着:
[root@rh9linux vpopmail-5.4.6]# make
make  all-recursive
make[1]: Entering directory `/bak/net_tool/server_soft/mailserver/qmail/vpopmail-5.4.6'
Making all in cdb
make[2]: Entering directory `/bak/net_tool/server_soft/mailserver/qmail/vpopmail-5.4.6/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
( cat warn-auto.sh; \
echo exec "`head -1 conf-cc`" '-c ${1+"$@"}' \
) > compile
chmod 755 compile
( cat warn-auto.sh; \
echo 'main="$1"; shift'; \
echo exec "`head -1 conf-ld`" \
'-o "$main" "$main".o ${1+"$@"}' \
) > load
chmod 755 load
( ( ./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 `/bak/net_tool/server_soft/mailserver/qmail/vpopmail-5.4.6/cdb'
make[2]: Entering directory `/bak/net_tool/server_soft/mailserver/qmail/vpopmail-5.4.6'
gcc -I. -I/usr/bin/  -I. -I. -I.     -g -O2 -Wall -c `test -f 'vauth.c' || echo './'`vauth.c
vauth.c:33:19: mysql.h: No such file or directory
vauth.c:40: parse error before "mysql_update"
vauth.c:40: warning: type defaults to `int' in declaration of `mysql_update'
vauth.c:40: warning: data definition has no type or storage class
vauth.c:41: parse error before "mysql_read_getall"
vauth.c:41: warning: type defaults to `int' in declaration of `mysql_read_getall'
vauth.c:41: warning: data definition has no type or storage class
vauth.c:59: parse error before '*' token
vauth.c:59: warning: type defaults to `int' in declaration of `res_update'
vauth.c:59: warning: data definition has no type or storage class
vauth.c:60: parse error before '*' token
vauth.c:60: warning: type defaults to `int' in declaration of `res_read_getall'
vauth.c:60: warning: data definition has no type or storage class
vauth.c:68: parse error before "row"
vauth.c:68: warning: type defaults to `int' in declaration of `row'
vauth.c:68: warning: data definition has no type or storage class
vauth.c:69: parse error before "row_getall"
vauth.c:69: warning: type defaults to `int' in declaration of `row_getall'
vauth.c:69: warning: data definition has no type or storage class
vauth.c: In function `vauth_open_update':
vauth.c:197: warning: implicit declaration of function `mysql_init'
vauth.c:198: warning: implicit declaration of function `mysql_options'
vauth.c:198: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)
vauth.c:198: (Each undeclared identifier is reported only once
vauth.c:198: for each function it appears in.)
vauth.c:201: warning: implicit declaration of function `mysql_real_connect'
vauth.c:211: warning: implicit declaration of function `mysql_select_db'
vauth.c:215: warning: implicit declaration of function `mysql_query'
vauth.c:221: warning: implicit declaration of function `mysql_error'
vauth.c:221: warning: format argument is not a pointer (arg 4)
vauth.c: In function `vauth_create_table':
vauth.c:308: warning: format argument is not a pointer (arg 4)
vauth.c: In function `vauth_adduser':
vauth.c:387: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vauth_getpw':
vauth.c:437: warning: format argument is not a pointer (arg 3)
vauth.c:441: warning: implicit declaration of function `mysql_store_result'
vauth.c:441: warning: assignment makes pointer from integer without a cast
vauth.c:446: warning: implicit declaration of function `mysql_num_rows'
vauth.c:447: warning: implicit declaration of function `mysql_free_result'
vauth.c:465: warning: implicit declaration of function `mysql_fetch_row'
vauth.c:466: subscripted value is neither array nor pointer
vauth.c:466: subscripted value is neither array nor pointer
vauth.c:466: subscripted value is neither array nor pointer
vauth.c:466: subscripted value is neither array nor pointer
vauth.c:466: subscripted value is neither array nor pointer
vauth.c:467: subscripted value is neither array nor pointer
vauth.c:467: subscripted value is neither array nor pointer
vauth.c:467: subscripted value is neither array nor pointer
vauth.c:467: subscripted value is neither array nor pointer
vauth.c:467: subscripted value is neither array nor pointer
vauth.c:467: subscripted value is neither array nor pointer
vauth.c:468: subscripted value is neither array nor pointer
vauth.c:468: subscripted value is neither array nor pointer
vauth.c:469: subscripted value is neither array nor pointer
vauth.c:469: subscripted value is neither array nor pointer
vauth.c:470: subscripted value is neither array nor pointer
vauth.c:470: subscripted value is neither array nor pointer
vauth.c:470: subscripted value is neither array nor pointer
vauth.c:470: subscripted value is neither array nor pointer
vauth.c:470: subscripted value is neither array nor pointer
vauth.c:470: subscripted value is neither array nor pointer
vauth.c:471: subscripted value is neither array nor pointer
vauth.c:471: subscripted value is neither array nor pointer
vauth.c:471: subscripted value is neither array nor pointer
vauth.c:471: subscripted value is neither array nor pointer
vauth.c:471: subscripted value is neither array nor pointer
vauth.c:471: subscripted value is neither array nor pointer
vauth.c:472: subscripted value is neither array nor pointer
vauth.c:472: subscripted value is neither array nor pointer
vauth.c:472: subscripted value is neither array nor pointer
vauth.c:472: subscripted value is neither array nor pointer
vauth.c:472: subscripted value is neither array nor pointer
vauth.c:472: subscripted value is neither array nor pointer
vauth.c:474: subscripted value is neither array nor pointer
vauth.c:474: subscripted value is neither array nor pointer
vauth.c:474: subscripted value is neither array nor pointer
vauth.c:474: subscripted value is neither array nor pointer
vauth.c:474: subscripted value is neither array nor pointer
vauth.c:474: subscripted value is neither array nor pointer
vauth.c: In function `vauth_setquota':
vauth.c:597: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vauth_getall':
vauth.c:635: warning: format argument is not a pointer (arg 3)
vauth.c:639: warning: assignment makes pointer from integer without a cast
vauth.c:661: warning: comparison between pointer and integer
vauth.c:662: subscripted value is neither array nor pointer
vauth.c:662: subscripted value is neither array nor pointer
vauth.c:662: subscripted value is neither array nor pointer
vauth.c:662: subscripted value is neither array nor pointer
vauth.c:662: subscripted value is neither array nor pointer
vauth.c:663: subscripted value is neither array nor pointer
vauth.c:663: subscripted value is neither array nor pointer
vauth.c:663: subscripted value is neither array nor pointer
vauth.c:663: subscripted value is neither array nor pointer
vauth.c:663: subscripted value is neither array nor pointer
vauth.c:663: subscripted value is neither array nor pointer
vauth.c:664: subscripted value is neither array nor pointer
vauth.c:664: subscripted value is neither array nor pointer
vauth.c:665: subscripted value is neither array nor pointer
vauth.c:665: subscripted value is neither array nor pointer
vauth.c:666: subscripted value is neither array nor pointer
vauth.c:666: subscripted value is neither array nor pointer
vauth.c:666: subscripted value is neither array nor pointer
vauth.c:666: subscripted value is neither array nor pointer
vauth.c:666: subscripted value is neither array nor pointer
vauth.c:666: subscripted value is neither array nor pointer
vauth.c:667: subscripted value is neither array nor pointer
vauth.c:667: subscripted value is neither array nor pointer
vauth.c:667: subscripted value is neither array nor pointer
vauth.c:667: subscripted value is neither array nor pointer
vauth.c:667: subscripted value is neither array nor pointer
vauth.c:667: subscripted value is neither array nor pointer
vauth.c:668: subscripted value is neither array nor pointer
vauth.c:669: subscripted value is neither array nor pointer
vauth.c:669: subscripted value is neither array nor pointer
vauth.c:669: subscripted value is neither array nor pointer
vauth.c:669: subscripted value is neither array nor pointer
vauth.c:669: subscripted value is neither array nor pointer
vauth.c:672: subscripted value is neither array nor pointer
vauth.c:673: subscripted value is neither array nor pointer
vauth.c:673: subscripted value is neither array nor pointer
vauth.c:673: subscripted value is neither array nor pointer
vauth.c:673: subscripted value is neither array nor pointer
vauth.c:673: subscripted value is neither array nor pointer
vauth.c: In function `vauth_setpw':
vauth.c:755: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vopen_smtp_relay':
vauth.c:788: warning: format argument is not a pointer (arg 3)
vauth.c:791: warning: implicit declaration of function `mysql_affected_rows'
vauth.c: In function `vupdate_rules':
vauth.c:806: warning: format argument is not a pointer (arg 3)
vauth.c:810: warning: assignment makes pointer from integer without a cast
vauth.c:815: subscripted value is neither array nor pointer
vauth.c: In function `vclose':
vauth.c:853: warning: implicit declaration of function `mysql_close'
vauth.c: In function `vread_dir_control':
vauth.c:993: warning: assignment makes pointer from integer without a cast
vauth.c:998: warning: comparison between pointer and integer
vauth.c:1000: subscripted value is neither array nor pointer
vauth.c:1001: subscripted value is neither array nor pointer
vauth.c:1002: subscripted value is neither array nor pointer
vauth.c:1004: subscripted value is neither array nor pointer
vauth.c:1005: subscripted value is neither array nor pointer
vauth.c:1006: subscripted value is neither array nor pointer
vauth.c:1008: subscripted value is neither array nor pointer
vauth.c:1009: subscripted value is neither array nor pointer
vauth.c:1010: subscripted value is neither array nor pointer
vauth.c:1012: subscripted value is neither array nor pointer
vauth.c:1013: subscripted value is neither array nor pointer
vauth.c:1014: subscripted value is neither array nor pointer
vauth.c:1016: subscripted value is neither array nor pointer
vauth.c:1017: subscripted value is neither array nor pointer
vauth.c:1018: subscripted value is neither array nor pointer
vauth.c:1020: subscripted value is neither array nor pointer
vauth.c:1020: subscripted value is neither array nor pointer
vauth.c:1020: subscripted value is neither array nor pointer
vauth.c:1020: subscripted value is neither array nor pointer
vauth.c:1020: subscripted value is neither array nor pointer
vauth.c: In function `vwrite_dir_control':
vauth.c:1070: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vcreate_dir_control':
vauth.c:1100: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vdel_dir_control':
vauth.c:1117: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vset_lastauth':
vauth.c:1138: warning: format argument is not a pointer (arg 3)
vauth.c: In function `vget_lastauth':
vauth.c:1157: warning: format argument is not a pointer (arg 3)
vauth.c:1161: warning: assignment makes pointer from integer without a cast
vauth.c:1164: subscripted value is neither array nor pointer
vauth.c: In function `vget_lastauthip':
vauth.c:1182: warning: format argument is not a pointer (arg 3)
vauth.c:1186: warning: assignment makes pointer from integer without a cast
vauth.c:1188: subscripted value is neither array nor pointer
vauth.c:1188: subscripted value is neither array nor pointer
vauth.c:1188: subscripted value is neither array nor pointer
vauth.c:1188: subscripted value is neither array nor pointer
vauth.c:1188: subscripted value is neither array nor pointer
make[2]: *** [vauth.o] Error 1
make[2]: Leaving directory `/bak/net_tool/server_soft/mailserver/qmail/vpopmail-5.4.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/bak/net_tool/server_soft/mailserver/qmail/vpopmail-5.4.6'
make: *** [all] Error 2

提示是:什么指针未定义啊。。。
大家有这样的情况,成功的人请指教。
回复

使用道具 举报

发表于 2004-8-31 12:44:06 | 显示全部楼层
这个………………会不会是……………………




















RPWT???
回复

使用道具 举报

 楼主| 发表于 2004-8-31 12:47:23 | 显示全部楼层
在安装之前,我做过如下步骤:
mkdir ~vpopmail/etc
# 设置默认域
echo "funbsd.org" > ~vpopmail/etc/defaultdomain

# 设置smtp规则
echo '127.0.0.1:allow,RELAYCLIENT=""' > ~vpopmail/etc/tcp.smtp
cd ~vpopmail/etc ; tcprules tcp.smtp.cdb tcp.smtp.tmp < tcp.smtp

# 设置MySQL信息
echo "localhost|0|vpopuser|vpoppwd|vpopmail" > ~vpopmail/etc/vpopmail.mysql
chmod 640 ~vpopmail/etc/vpopmail.mysql

chown -R vpopmail.vchkpw ~vpopmail/etc

# 在MySQL里添加vpopmail的帐号
/usr/local/mysql/bin/mysql -uroot --password="mysqlpwd"


CREATE DATABASE vpopmail;
GRANT select,insert,update,delete,create,drop ON vpopmail.*
TO vpopuser@localhost IDENTIFIED BY 'vpoppwd';
FLUSH PRIVILEGES;
QUIT

而qmail的smtpd、pop3d我是根据http://lifewithqmail.org/lwq.html#installation-issues成功安装的!
其实我已经成功安装了smtpd和pop3d(使用的是checkpassword-0.9),但现在虚拟邮件域和帐号的管理很棘手啊!请高人指教~
回复

使用道具 举报

发表于 2004-8-31 12:58:14 | 显示全部楼层
给个链接吧:http://chinaunix.net/jh/14/93861.html
我就是照着它做的,一步都没改,连个字母都没改,成功了。
建议先让它工作起来再考虑按照自己的要求慢慢调整。
回复

使用道具 举报

发表于 2004-8-31 13:21:38 | 显示全部楼层

你的 configure 参数不对:

make[2]: Entering directory `/bak/net_tool/server_soft/mailserver/qmail/vpopmail-5.4.6'
gcc -I. -I/usr/bin/ -I. -I. -I. -g -O2 -Wall -c `test -f 'vauth.c' || echo './'`vauth.c
vauth.c:33:19: mysql.h: No such file or directory


--enable-incdir=/usr/bin/    
/usr/bin 底下哪找得到 mysql.h !

既然你的mysql 装在标准的 /usr 下就不用加 incdir 和 libdir 了,要加也是 /usr/include/mysql
回复

使用道具 举报

 楼主| 发表于 2004-8-31 14:32:40 | 显示全部楼层

Re: 你的 configure 参数不对:

[quote:85ca6cdca9="dannycat"]
make[2]: Entering directory `/bak/net_tool/server_soft/mailserver/qmail/vpopmail-5.4.6'
gcc -I. -I/usr/bin/ -I. -I. -I. -g -O2 -Wall -c `test -f 'vauth.c' || echo './'`vauth.c
vauth.c:33:19: mysql.h: No such file or directory


--enable-incdir=/usr/bin/    
/usr/bin 底下哪找得到 mysql.h !

既然你的mysql 装在标准的 /usr 下就不用加 incdir 和 libdir 了,要加也是 /usr/include/mysql[/quote]

我也看到了是mysql.h找不到,但是我不知道 incdir 和 libdir 应该填写的路径啊!
给高人们一个提示:我的mysql是用RH9自己带的RPM包装的,路径应该是哪个呢?

刚才我find / -name mysql.h了,居然没有找到!
于是我rpm -qa |grep mysql
出现:
[root@rh9linux include]# rpm -qa |grep mysql
mysql-server-3.23.58-1.9
mod_auth_mysql-1.11-12
php-mysql-4.2.2-17.2
mysql-3.23.58-1.9
难道是mysql-devel没有装??
回复

使用道具 举报

 楼主| 发表于 2004-9-1 16:58:47 | 显示全部楼层

Re: 你的 configure 参数不对:

[quote:3f218279be="岚轩"][quote:3f218279be="dannycat"]
make[2]: Entering directory `/bak/net_tool/server_soft/mailserver/qmail/vpopmail-5.4.6'
gcc -I. -I/usr/bin/ -I. -I. -I. -g -O2 -Wall -c `test -f 'vauth.c' || echo './'`vauth.c
vauth.c:33:19: mysql.h: No such file or directory


--enable-incdir=/usr/bin/    
/usr/bin 底下哪找得到 mysql.h !

既然你的mysql 装在标准的 /usr 下就不用加 incdir 和 libdir 了,要加也是 /usr/include/mysql[/quote]

我也看到了是mysql.h找不到,但是我不知道 incdir 和 libdir 应该填写的路径啊!
给高人们一个提示:我的mysql是用RH9自己带的RPM包装的,路径应该是哪个呢?

刚才我find / -name mysql.h了,居然没有找到!
于是我rpm -qa |grep mysql
出现:
[root@rh9linux include]# rpm -qa |grep mysql
mysql-server-3.23.58-1.9
mod_auth_mysql-1.11-12
php-mysql-4.2.2-17.2
mysql-3.23.58-1.9
难道是mysql-devel没有装??[/quote]

呵呵,开心,果然是mysql-devel没有装!自己搞定算是最开心的说;)
回复

使用道具 举报

发表于 2004-9-1 19:07:04 | 显示全部楼层
祝贺一下

还以为你的mysql也是自己make的说 :-)
回复

使用道具 举报

 楼主| 发表于 2004-9-2 15:17:23 | 显示全部楼层
[quote:73d6ce50c9="dannycat"]祝贺一下

还以为你的mysql也是自己make的说 :-)[/quote]

不是啊!小弟还很菜,几个大件就都用RPM吧,MYSQL+HTTPD
回复

使用道具 举报

发表于 2004-9-3 09:50:42 | 显示全部楼层
祝贺一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-7 18:35 , Processed in 0.048406 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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