免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4184 | 回复: 6

[FTP] 请教斑竹 关于安装Proftpd的问题 (问题已经找到 请删除) [复制链接]

论坛徽章:
0
发表于 2006-04-07 11:18 |显示全部楼层
下载了最新的proftpd-1.3.0rc5.tar软件

我的命令是
#tar zxvf proftpd-1.3.0rc5.tar
#cd proftpd-1.3.0rc5
#./configure --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql --with-includes=/usr/include/mysql --with-libraries=/usr/lib/mysql --prefix=/opt/proftpd

但是我发现with-includes=/usr/include/mysql  这个usr/include下没有mysql

我就重新删除 在执行
#./configure --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql --with-libraries=/usr/lib/mysql --prefix=/opt/proftpd

完成后 我就编译 的时候发生错误

错误的地方在最下面 请高手指点一下 谢谢各位师傅了.


[root@Study proftpd-1.3.0rc5]# make
echo \#define BUILD_STAMP \"`date`\" >include/buildstamp.h
cd lib/ && make lib
make[1]: Entering directory `/root/proftpd-1.3.0rc5/lib'
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c pr_fnmatch.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c sstrncpy.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c strsep.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c vsnprintf.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c glibc-glob.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c glibc-hstrerror.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c glibc-mkstemp.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c pr-syslog.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c pwgrent.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c getopt.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c getopt1.c
ar rc libsupp.a pr_fnmatch.o sstrncpy.o strsep.o vsnprintf.o glibc-glob.o glibc-hstrerror.o glibc-mkstemp.o pr-syslog.o pwgrent.o getopt.o getopt1.o
ranlib libsupp.a
make[1]: Leaving directory `/root/proftpd-1.3.0rc5/lib'
cd src/ && make src
make[1]: Entering directory `/root/proftpd-1.3.0rc5/src'
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c main.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c timers.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c sets.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c pool.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c table.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c regexp.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c dirtree.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c support.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c netaddr.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c inet.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c child.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c parser.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c log.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c xferlog.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c bindings.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c netacl.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c class.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c scoreboard.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c help.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c feat.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c netio.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c response.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c ident.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c data.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c modules.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c display.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c auth.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c fsio.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mkhome.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c ctrls.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c event.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c var.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c ftpdctl.c
make[1]: Leaving directory `/root/proftpd-1.3.0rc5/src'
cd modules/ && make static
make[1]: Entering directory `/root/proftpd-1.3.0rc5/modules'
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_core.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_xfer.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_auth_unix.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_auth_file.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_auth.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_ls.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_log.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_site.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_delay.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_auth_pam.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_sql.c
gcc -DHAVE_CONFIG_H  -DLINUX  -I.. -I../include  -O2 -Wall -c mod_sql_mysql.c
mod_sql_mysql.c:135:19: mysql.h: 没有那个文件或目录
mod_sql_mysql.c:162: error: syntax error before "MYSQL"
mod_sql_mysql.c:162: warning: no semicolon at end of struct or union
mod_sql_mysql.c: In function `_build_error':
mod_sql_mysql.c:301: warning: implicit declaration of function `mysql_errno'
mod_sql_mysql.c:301: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:303: warning: implicit declaration of function `mysql_error'
mod_sql_mysql.c:303: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `_build_data':
mod_sql_mysql.c:314: error: `MYSQL' undeclared (first use in this function)
mod_sql_mysql.c:314: error: (Each undeclared identifier is reported only once
mod_sql_mysql.c:314: error: for each function it appears in.)
mod_sql_mysql.c:314: error: `mysql' undeclared (first use in this function)
mod_sql_mysql.c:315: error: `MYSQL_RES' undeclared (first use in this function)
mod_sql_mysql.c:315: error: `result' undeclared (first use in this function)
mod_sql_mysql.c:316: error: `MYSQL_ROW' undeclared (first use in this function)
mod_sql_mysql.c:316: error: syntax error before "row"
mod_sql_mysql.c:325: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:331: warning: implicit declaration of function `mysql_store_result'
mod_sql_mysql.c:337: warning: implicit declaration of function `mysql_num_rows'
mod_sql_mysql.c:338: warning: implicit declaration of function `mysql_num_fields'
mod_sql_mysql.c:343: error: `row' undeclared (first use in this function)
mod_sql_mysql.c:343: warning: implicit declaration of function `mysql_fetch_row'
mod_sql_mysql.c:353: warning: implicit declaration of function `mysql_free_result'
mod_sql_mysql.c: In function `cmd_open':
mod_sql_mysql.c:406: warning: implicit declaration of function `mysql_ping'
mod_sql_mysql.c:406: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:418: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:418: warning: implicit declaration of function `mysql_init'
mod_sql_mysql.c:420: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:431: warning: implicit declaration of function `mysql_options'
mod_sql_mysql.c:431: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:431: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
mod_sql_mysql.c:433: warning: implicit declaration of function `mysql_real_connect'
mod_sql_mysql.c:433: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:433: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:433: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:433: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:434: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:434: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:435: error: `CLIENT_INTERACTIVE' undeclared (first use in this function)
mod_sql_mysql.c: In function `cmd_close':
mod_sql_mysql.c:527: warning: implicit declaration of function `mysql_close'
mod_sql_mysql.c:527: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:528: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_defineconnection':
mod_sql_mysql.c:594: error: invalid application of `sizeof' to incomplete type `mod_sql_mysql.c'
mod_sql_mysql.c:597: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:598: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:629: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:630: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:631: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:649: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:650: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:651: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:652: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_select':
mod_sql_mysql.c:801: warning: implicit declaration of function `mysql_real_query'
mod_sql_mysql.c:801: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_insert':
mod_sql_mysql.c:914: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_update':
mod_sql_mysql.c:1012: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_query':
mod_sql_mysql.c:1127: error: dereferencing pointer to incomplete type
mod_sql_mysql.c:1142: warning: implicit declaration of function `mysql_field_count'
mod_sql_mysql.c:1142: error: dereferencing pointer to incomplete type
mod_sql_mysql.c: In function `cmd_escapestring':
mod_sql_mysql.c:1221: warning: implicit declaration of function `mysql_escape_string'
mod_sql_mysql.c: In function `cmd_checkauth':
mod_sql_mysql.c:1287: warning: implicit declaration of function `make_scrambled_password'
make[1]: *** [mod_sql_mysql.o] 错误 1
make[1]: Leaving directory `/root/proftpd-1.3.0rc5/modules'
make: *** [modules] 错误 2

[ 本帖最后由 chinazhang88 于 2006-4-7 11:26 编辑 ]

论坛徽章:
0
发表于 2006-04-07 11:39 |显示全部楼层
不必删除了。请lz回复一下,把解决办法写出来,帮助遇到同样问题的朋友,岂不更好?

论坛徽章:
0
发表于 2006-04-07 15:08 |显示全部楼层

解决方法

#./configure --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql \
--with-includes=/usr/include/mysql \    -----> 出错的地方
--with-libraries=/usr/lib/mysql \    ----->出错的地方
--prefix=/opt/proftpd   


#./configure --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql \
--with-includes=/usr/local/mysql/include/mysql \   ---->原因是数据库安装的路径
--with-libraries=/usr/local/mysql/lib/mysql \   ---->原因是数据库安装的路径
--prefix=/opt/proftpd

论坛徽章:
0
发表于 2006-04-10 11:05 |显示全部楼层
mysql如果是ports安装的话,还是建议不要指定安装目录,省事!

论坛徽章:
0
发表于 2006-04-21 14:41 |显示全部楼层
可以不指定mysql的安装目录么?

论坛徽章:
0
发表于 2006-04-24 11:16 |显示全部楼层
原帖由 mao1001 于 2006-4-21 14:41 发表
可以不指定mysql的安装目录么?


proftp 安装的时候,mysql module模块支持功能是默认是关闭的.

论坛徽章:
0
发表于 2007-09-29 12:22 |显示全部楼层
我在solaris9 make 时也出现:



\#define BUILD_STAMP \"`date`\" >include/buildstamp.h
cd lib/ && make lib
make[1]: Entering directory `/home/soft/proftpd-1.3.0a/lib'
gcc -DHAVE_CONFIG_H  -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include  -O2 -Wall -c pr_fnmatch.c
gcc -DHAVE_CONFIG_H  -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include  -O2 -Wall -c sstrncpy.c
gcc -DHAVE_CONFIG_H  -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include  -O2 -Wall -c strsep.c
gcc -DHAVE_CONFIG_H  -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include  -O2 -Wall -c vsnprintf.c
gcc -DHAVE_CONFIG_H  -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include  -O2 -Wall -c glibc-glob.c
gcc -DHAVE_CONFIG_H  -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include  -O2 -Wall -c glibc-hstrerror.c
gcc -DHAVE_CONFIG_H  -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include  -O2 -Wall -c glibc-mkstemp.c
gcc -DHAVE_CONFIG_H  -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include  -O2 -Wall -c pr-syslog.c
gcc -DHAVE_CONFIG_H  -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include  -O2 -Wall -c pwgrent.c
gcc -DHAVE_CONFIG_H  -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include  -O2 -Wall -c getopt.c
gcc -DHAVE_CONFIG_H  -DSOLARIS2_9 -DSOLARIS2 -I.. -I../include  -O2 -Wall -c getopt1.c
ar rc libsupp.a pr_fnmatch.o sstrncpy.o strsep.o vsnprintf.o glibc-glob.o glibc-hstrerror.o glibc-mkstemp.o pr-syslog.o pwgrent.o getopt.o getopt1.o
make[1]: ar: Command not found
make[1]: *** [libsupp.a] Error 127
make[1]: Leaving directory `/home/soft/proftpd-1.3.0a/lib'
make: *** [lib] Error 2


我分别做两个配置也出同样的错误:

#./configure --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql --with-includes=/usr/include/mysql --with-libraries=/usr/lib/mysql --prefix=/opt/proftpd


#./configure --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql --prefix=/opt/proftpd

请问这是什么问题呢

[ 本帖最后由 yjl 于 2007-9-29 12:33 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP