本人用过vsftp->proftpd->pureftpd
个人感觉才是prueftpd功能强大、好用!本人在原有的安装基础上加上了自己碰到的问题及解决方法。整理出来大家共享!
[code:1:0d5bdc1d91]
软件
pure-ftpd-1.0.21.tar.gz
下载地址:http://www.phpx.com/happy/attachment.php?s=&postid=643701
pureftpd_php_manager.tar.gz
下载地址:http://www.phpx.com/happy/attachment.php?s=&postid=643704
tar zvxf pure-ftpd-1.0.21.tar.gz
cd pure-ftpd-1.0.21
#./configure --prefix=/usr/local/pureftpd --with-mysql=/usr/local/mysql --with-paranoidmsg --with-shadow --with-welcomemsg --with-uploadscript --with-quotas --with-cookie --with-pam --with-virtualhosts --with-virtualroot --with-diraliases --with-sysquotas --with-ratios --with-ftpwho --with-throttling --with-language=simplified-chinese
make
make check
make install
cd configuration-file
chmod u+x pure-config.pl
cp pure-config.pl /usr/local/sbin/
cp pure-ftpd.conf /usr/local/etc/
vi /usr/local/etc/pure-ftpd.conf
按你的需要编辑pure-ftpd.conf
-------------------------------------
# Cage in every user in his home directory
# 限制每个用户到自己的根目录
ChrootEveryone yes
# Disallow anonymous connections. Only allow authenticated users.
# 取消anonymous用户
NoAnonymous yes
# MySQL configuration file (see README.MySQL)
# pureftpd-mysql.conf文件的位置
MySQLConfigFile /usr/local/etc/pureftpd-mysql.conf
#自己创建用户目录
CreateHomeDir yes
-------------------------------------
tar zvxf pureftpd_php_manager.tar.gz
cd pureftpd_php_manager
mv pureftpd-mysql.conf.sample /usr/local/etc/pureftpd-mysql.conf
cd ..
cp -R pureftpd_php_manager /home/www/pureftpd_php_manager
cd /home/www/pureftpd_php_manager
vi pureftp.config.php
按照你的需要修改里面的设置代码:
-------------------------------------------------------------------------------------
// 设置pureftpd-mysql.conf的位置,这个要注意,不要写错哦
$PUREFTP_CONFIG_FILE = '/usr/local/etc/pureftpd-mysql.conf';
// The location where all the Forms directed to. (Mayby no change needed)
$SELF_URL = 'index.php';
// The location of your pure-ftpdwho binary (set this to chmod 4711)
$FTP_WHO = "/usr/local/sbin/pure-ftpwho";
$DefaultUser = "ftpuser"; # 默认用户
$DefaultPass = ""; # 默认初始用户密码
$DefaultUid = "2002"; # 默认的uid(设置为ftpusers的uid)
$DefaultGid = "2002"; # 默认的gid(设置为ftpusers的gid)
$DefaultDir = "/var/ftproot/ftpusershome"; # 默认的用户主目录
$DefaultUL = "0"; # 默认用户上传速率限制(KB/S)
$DefaultDL = "0"; # 默认用户下载速率限制(KB/S)
$Defaultip = "*"; # 设置用户可以从哪些IP登陆
$DefaultQS = "50"; # 用户默认的quota
$Defaultcmt = ""; # 默认备注信息
$DefaultQF = "0"; # 默认文件数目quota
$PWC = "55"; # Vorsatz fuerr Crypt Password
-------------------------------------------------------------------------------------
增加用户组及用户
#groupadd ftpusers -g 2002
#useradd ftp -u 2002 -g ftpusers -s /sbin/nologin
删除多余的东西
rm -f history.txt pureftpd-mysql.conf.sample
如果要投入真实的使用,最好用apache做身份验证!
在mysql中添加FTP用户数据库
代码:
CREATE TABLE ftpd (
User varchar(16) NOT NULL default '',
status enum('0','1') NOT NULL default '0',
Password varchar(64) NOT NULL default '',
Uid varchar(11) NOT NULL default '-1',
Gid varchar(11) NOT NULL default '-1',
Dir varchar(128) NOT NULL default '',
ULBandwidth smallint(5) NOT NULL default '0',
DLBandwidth smallint(5) NOT NULL default '0',
comment tinytext NOT NULL,
ipaccess varchar(15) NOT NULL default '*',
QuotaSize smallint(5) NOT NULL default '0',
QuotaFiles int(11) NOT NULL default 0,
PRIMARY KEY (User),
UNIQUE KEY User (User)
) TYPE=MyISAM;
-----------------------------加密pureftpd_php_manager目录-----------------------------
因为我们是放到网上执行的﹐所以你肯定不想每个人都跑去看你FTP用户吧﹗
我一般采用HTPASSWD验证﹐具体请这样子做﹐仍用我前面的例子﹕
我的pureftpd_php_manager目录位于 /home/onlinecq.com/pureftpd_php_manager目录﹐我需要在apache的虚
拟主机那一小节添加如下内容﹕
<Directory "/home/www/pureftpd_php_manager">
deny from all
Options None
AllowOverride AuthConfig
Order deny,allow
</Directory>
这样﹐若有人想进入该目录﹐必须通过apache验证﹐保证我们的安全(不是绝对安全)
cd /home/www/pureftpd_php_manager
再进入pureftpd_php_manager的目录﹐使用vi建立一个.htaccess的认证文件﹕
vi .htaccess
内容如下﹕
AuthType Basic
AuthUserFile /usr/www/bin/pureftpd.passwd
AuthName pureftpd
require valid-user
satisfy any
存盘退出后﹐我们就可以使用htpasswd命令添加允许进入的该目录的用户了﹗
cd /usr/www/bin/
进入该目录
./htpasswd -bc pureftpd.passwd ftp 123456
这样将会在你的当前目录﹐创建一个pureftpd.passwd的身份验证文件﹐用户名是ftp﹐密码是123654﹐你可以
改为你自己需要。
好了﹐看起来差不多了﹐麻烦你重新启动一下APACHE测试一下﹐如果一下顺利﹐那祝贺你﹐一切成功了﹗
------------------编辑/usr/local/etc/pureftpd-mysql.conf --------------------------
vi /usr/local/etc/pureftpd-mysql.conf
将刚才在mysql中新建的用户和密码加入其中,选项很简单,只要注意不要输错
MYSQLServer 127.0.0.1
#MYSQL服务器的IP
MYSQLPort 3306
#MYSQL 端口号
MYSQLSocket /var/lib/mysql/mysql.sock
#使用UNIX.sock本地连接
注:MYSQLServer 与 MYSQLSocket 选择一种即可
MYSQLUser ftp
#MYSQLUser 数据用户名
MYSQLPassword 123456
#MYSQL数据库用户的密码
MYSQLDatabase ftpusers
#FTP数据数据库
MYSQLCrypt md5
#密码加密方式"cleartext", "crypt", "md5" and "password"
# cleartext 明文,crypt,md5,password是Backend password(‘your-passwd’)函数(MYSQL数据库所使用的
password()函数)
MYSQLGetPW SELECT Password FROM users WHERE User="L"
# 密码字段,我使用users表中的Password做为密码字段
MYSQLGetUID SELECT Uid FROM users WHERE User="L"
#UID用户ID字段
MYSQLDefaultUID 1000
#默认的UID (注:如何开启该选项,MYSQLGetUID将失去作用)
MYSQLGetGID SELECT Gid FROM users WHERE User="L"
#GID组ID字段
MYSQLDefaultGID 1000
#默认的GID (注:如何开启该选项,MYSQLGetGID将失去作用)
MYSQLGetDir SELECT Dir FROM users WHERE User="L"
#FTP用户目录如/home/web/www-9812-net
MySQLGetQTAFS SELECT QuotaFiles FROM users WHERE User="L"
#磁盘限额,文件数限制。如1000,允许用户上传1千个文件
MySQLGetQTASZ SELECT QuotaSize FROM users WHERE User="L"
#磁盘限额,FTP用户空间限制(单位为M),如:100M
MySQLGetRatioUL SELECT ULRatio FROM users WHERE User="L"
MySQLGetRatioDL SELECT DLRatio FROM users WHERE User="L"
#上传/下载比率。MySQLGetRatioUL为上传比,MySQLGetRatioDL下载比。如:1:5
MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE User="L"
MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE User="L"
#下传/下载带宽(单位KB/s)。MySQLGetBandwidthUL上传带宽,MySQLGetBandwidthDL下载带宽。如上传
500KB/s,下载50KB/s
MySQLForceTildeExpansion 1
MySQLTransactions On
启动
#/usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf
然后测试<a href="http://ip/pureftpd_php_manager/index.php" target="_blank">http://ip/pureftpd_php_manager/index.php</a>
添加一个用户,然后用FTP客户端登陆试试,ok!
--------------------------------------自动启动(1)----------------------------------
pureftp支持多种启动方式,俺采用了最容易的一种:
vi /etc/rc.d/rc.local
添加
cd /usr/local/pureftpd/sbin
./pure-ftpd -A -B -C 1 -c 50 -E -G -I 2 -l unix -l puredb:/usr/local/pureftpd/pureftpd.pdb -p
40000:50000 -R -w
-------------------------------------启动脚本(2)这种好用----------------------------------
在/usr/local/etc/rc.d中建一个pureftpd.sh
chmod u+x pureftpd.sh
就可以:/usr/local/etc/rc.d/pureftpd.sh start
/usr/local/etc/rc.d/pureftpd.sh stop
#!/bin/sh
case "$1" in
start)
[ -x /usr/local/etc/pure-ftpd.conf ] &&
/usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf > /dev/null &&
echo -n ' pure-ftp'
;;
stop)
killall pure-ftpd > /dev/null &&
echo -n ' pure-ftp'
;;
*)
echo "Usage: `basename $0` {start | stop}" >&2
;;
esac
exit 0
[/code:1:0d5bdc1d91]
利尼克斯 回复于:2004-11-02 15:57:58 |
兄弟真是太好了!来的太及时了! 我正需要这方面的咚咚! 感谢一个! |
phpcool 回复于:2004-11-02 16:12:10 |
有问题大家一起付论! 我现在已经应用了,正处于测试价段,大家可以测测一下速度。 有什么提议欢迎提出来。 ftp主机:218.77.246.4 帐号:test 密码:123456 |
aspbiz 回复于:2004-11-02 16:55:18 |
网速好快呀。 我传了几个搞笑的上去。 |
豌豆丝 回复于:2004-11-02 20:43:18 |
为什么我的FTP只能我自己打开呢,其它人就打不开呢》还有哪里有MYSQL的下载?我安装时选 了MYSQL安装,为啥不能用呢 |
phpcool 回复于:2004-11-02 20:54:22 |
www.mysql.com |
phpcool 回复于:2004-11-03 08:38:22 |
顶上去! |
hgkrt 回复于:2004-11-06 21:07:24 |
无法限制IP 在pureftpd-mysql.conf文件里根本就没有找到限制IP的项目... |
zhangr 回复于:2004-11-06 22:42:23 |
怎么没有使用ssl呢? |
sinboy2002 回复于:2004-11-06 23:04:18 |
我不用pureftpd(proftpd),但还是支持一下好贴子 |
hgkrt 回复于:2004-11-07 09:54:02 |
找到可以限制IP的mysql文档了.. 但是发现一个新的关于限制IP的问题.. 是不是写一个192.168.1.1这样的IP就是只让这个IP登陆 而写192.168这样的话,就是这一段IP都无法登陆?? |
dongdonga 回复于:2004-11-09 11:40:52 |
上去了,不错。正在试自己安装看一看。。。 |
phpcool 回复于:2004-11-09 14:38:15 |
如果是mysql作虚拟用户,有相应的字段来限制IP! 回zhangr的怎么没有使用ssl呢? 俺也找不到相关pureftpd+ssl的资料,如有发给俺一份! ltsnet@bxemail.com |
shaotao27 回复于:2004-11-09 14:51:44 |
好贴不能沉啊 |
andychan 回复于:2004-11-10 14:32:51 |
顶! |
飞云盖天 回复于:2004-11-10 18:29:24 |
这么强的贴,不顶对不起楼主啊~~~~~~~~~~ 不过我很奇怪,他的官方网站最新版本是1.0.20。 ftp.pureftpd.org 你这个版本怎么已经1.0.21啦? |
fuwu.net.cn 回复于:2004-11-11 11:16:57 |
.ftpquota这个文件是做什么用的,能说明一下吗?谢谢! |
hezuyou 回复于:2004-11-11 11:47:04 |
我./configure时提示mysql clint nened mysql support 应当是要sql的支使吧,但是我已经装了sql了亚. |
phpcool 回复于:2004-11-11 12:47:21 |
[quote:07867d80b5="fuwu.net.cn"].ftpquota这个文件是做什么用的,能说明一下吗?谢谢![/quote:07867d80b5] 磁盘限额。 |
phpcool 回复于:2004-11-11 12:48:02 |
[quote:e8f45ab43e=""]我./configure时提示mysql clint nened mysql support 应当是要sql的支使吧,但是我已经装了sql了亚.[/quote:e8f45ab43e] 路径得改成你自己,还有要有mysql客户端包libmysqlclient支持! |
wing-qiang 回复于:2004-11-13 00:43:17 |
诶呀!!大哥,我早点看到就好了!相逢恨晚啊!!谢谢phpcool的指点!!现在还不算太迟:) |
hgkrt 回复于:2004-11-13 03:10:53 |
To :: phpcool 你说有相应的字段来控制IP,但是问题就是怎么控制!! 我现在发现只能输入一个全的IP(比如192.168.1.10),才好用..(这个IP可以登陆) 当你输入一个192.168.*.*这样的段IP后,就不好用了... 毕竟只有限制段IP的控制才现实...因为大家都是动态IP上网的.. 能用的起静态IP的个人还是少数... |
fuwu.net.cn 回复于:2004-11-14 20:04:27 |
pureftpd.passwd 我的怎么没有这个文件? |
jiaxing 回复于:2004-11-15 08:54:04 |
phpcool怎么联系你呀? 老大我又遇到问题了,防火墙只开了20、21端口,我没有防火墙权限怎么办呀。 |
phpcool 回复于:2004-11-15 10:03:22 |
QQ:187328233 (中午/晚上在线) |
twinkleolive 回复于:2004-11-19 14:35:46 |
tar zvxf pureftpd_php_manager.tar.gz cd pureftpd_php_manager 里面没有pureftpd-mysql.conf.sample这个文件,谁能告诉我呀,急 |
peng 回复于:2004-11-19 15:37:36 |
能实现这样的功能吗? 1 只允许用户上传,不能下载. 2 只允许用户上传,下载,但是不能更改. |
fuwu.net.cn 回复于:2004-11-19 21:38:58 |
如何实现对用户密码进行md5加密呀? |
phpcool 回复于:2004-11-20 23:05:12 |
[quote:3fd1997c95="twinkleolive"]tar zvxf pureftpd_php_manager.tar.gz cd pureftpd_php_manager 里面没有pureftpd-mysql.conf.sample这个文件,谁能告诉我呀,急[/quote:3fd1997c95] 文件内容 [code:1:3fd1997c95] # If you want to use the Socket connect methode comment out the # Lines with MMYSQLServer and MYSQLPort. # If you want to use the Port methode comment out the MYSQLSocket line #MYSQLSocket /var/lib/mysql/mysql.sock MYSQLServer localhost MYSQLPort 3306 MYSQLUser root MYSQLPassword 123456 MYSQLDatabase pureftpd MYSQLCrypt md5 MYSQLGetPW SELECT Password FROM ftpd WHERE User="\L" AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R") MYSQLGetUID SELECT Uid FROM ftpd WHERE User="\L" AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R") MYSQLGetGID SELECT Gid FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R") MYSQLGetDir SELECT Dir FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R") MySQLGetBandwidthUL SELECT ULBandwidth FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R") MySQLGetBandwidthDL SELECT DLBandwidth FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R") MySQLGetQTASZSELECT QuotaSize FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R") MySQLGetQTAFS SELECT QuotaFiles FROM ftpd WHERE User="\L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "\R") [/code:1:3fd1997c95] |
phpcool 回复于:2004-11-20 23:14:46 |
[quote:5304657089="fuwu.net.cn"]如何实现对用户密码进行md5加密呀?[/quote:5304657089] 以php为例:$password=md5($password);将密码进行md5加密, 然后入库。 在pureftpd-mysql.conf中设 MYSQLCrypt md5 |
studyboy 回复于:2004-11-24 08:30:19 |
pureftpd只是一个低负载需求的ftpd,跑在低配置的bsd上面很超值 如果你真的要很多功能,建议去看看glftpd吧…… 公网用gl的基本上只有ts 教育网里面用gl的很多 |
ydj 回复于:2004-11-24 11:07:52 |
我用楼主的办法,在AIX5下安装时,编译时出现以下错误: log_mysql.c: In function `sqlsubst': log_mysql.c:105: error: syntax error before '.' token log_mysql.c:126: error: `ip_ff' undeclared (first use in this function) log_mysql.c:126: error: (Each undeclared identifier is reported only once log_mysql.c:126: error: for each function it appears in.) make: 1254-004 The error code from the last command is 1. 我的MYSQL版本为:mysql-standard-4.0.21-ibm-aix5.1.0.0-powerpc, GCC的版本为3.2.2,pureftp我试过两个版本,分别为1.0.20和1.0.21,都出同样的问题。请教这是什么原因。 |
phpcool 回复于:2004-11-24 12:40:58 |
我在rh/FreeBSD都没问题,你找找Pureftpd有没有aix版的,这个我也没试过。 |
ydj 回复于:2004-11-24 13:26:08 |
我在编译时,发现可以支持AIX,在README文件中也说明可以支持AIX。现在是对MYSQL组件的支持问题,好象是对MYSQL读取的函数有点问题。但我解决不了。特请教。 |
phpcool 回复于:2004-11-24 14:05:33 |
cp mysql/lib/以ibmysqlclient开头的文件 /usr/lib 然后ldconfig |
ydj 回复于:2004-11-25 09:37:32 |
谢谢楼的回答,你可能还是用LINUX或BSD的概念吧,好象在AIX下没有ldconfig命令呀,我用ld 命令和path设定,都不行,还会在make时出现同样的错,而不能编译成功。就是不能到pureftpd网站,否则,可能到那边去看一下为什么不能在AIX下编译成加上MYSQL模块。 |
sulily 回复于:2004-11-26 15:11:10 |
请教: 我按楼主说的,都很顺利,到登陆管理端的时候,提示: Can't establish DB connection. Access denied for user 'ftp'@'test' (using password: YES) 我建了ftp的用户阿,也允许登陆test主机阿,哪位高手给解释一下被, 谢 谢! |
冷风 回复于:2004-11-26 15:52:49 |
为什么我认证通不过?? 我查了mysql的日志,ftp的确是查询了数据库中对应的用户记录,但是认证为什么没通过呢??密码加密类型不对? |
phpcool 回复于:2004-11-26 16:10:07 |
第一、确认pureftpd-mysql.conf中的数据帐号、密码是否正确。 第二、此帐号是否处于缴活状态。 |
jizhihui 回复于:2004-11-29 19:19:46 |
本人初次接触ftp,按照上面提示,建好了服务器,可是只能用IPv4地址访问,不能用IPv6 本人主机IPv4地址 192.168.0.235 IPv6地址 ::192.168.0.235 用ftp 192.168.0.235可以登录,用ftp ::192.168.0.235,提示 ftp: ::192.168.0.235: unknown host 不知为什么请高手指点 谢谢, |
homesp 回复于:2004-12-11 23:39:30 |
configure后提示PAM header not found 应该怎么办啊 |
phpcool 回复于:2004-12-12 16:34:30 |
你的是什么系统? configure的信息全部贴出来。 |
homesp 回复于:2004-12-12 22:48:06 |
[quote:dd2a0bacf4="phpcool"]你的是什么系统? configure的信息全部贴出来。[/quote:dd2a0bacf4] 我的系统是Mandrakelinux10.1 Official configure的信息如下: ./configure --prefix=/usr/local/pureftpd --with-mysql=/usr/share/mysql --with-paranoidmsg --with-shadow --with-welcomemsg --with-uploadscript --with-quotas --with-cookie --with-pam --with-virtualhosts --with-virtualroot --with-diraliases --with-sysquotas --with-ratios --with-ftpwho --with-throttling --with-language=simplified-chinese 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 for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for gcc... gcc checking for C compiler default output file name... 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 gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for AIX... no checking for library containing strerror... none required checking for perl... /usr/bin/perl checking for python... /usr/bin/python checking for ANSI C header files... yes checking whether stat file-mode macros are broken... no checking whether time.h and sys/time.h may both be included... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required 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 for unistd.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking ioctl.h usability... no checking ioctl.h presence... no checking for ioctl.h... no checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/vfs.h usability... yes checking sys/vfs.h presence... yes checking for sys/vfs.h... yes checking sys/statvfs.h usability... yes checking sys/statvfs.h presence... yes checking for sys/statvfs.h... yes checking sys/sendfile.h usability... yes checking sys/sendfile.h presence... yes checking for sys/sendfile.h... yes checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking sys/fsuid.h usability... yes checking sys/fsuid.h presence... yes checking for sys/fsuid.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/capability.h usability... no checking sys/capability.h presence... no checking for sys/capability.h... no checking shadow.h usability... yes checking shadow.h presence... yes checking for shadow.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking sys/pstat.h usability... no checking sys/pstat.h presence... no checking for sys/pstat.h... no checking for sys/mount.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sys/fcntl.h usability... yes checking sys/fcntl.h presence... yes checking for sys/fcntl.h... yes checking sys/loadavg.h usability... no checking sys/loadavg.h presence... no checking for sys/loadavg.h... no checking sys/ptrace.h usability... yes checking sys/ptrace.h presence... yes checking for sys/ptrace.h... yes checking security/pam_appl.h usability... no checking security/pam_appl.h presence... no checking for security/pam_appl.h... no checking security/pam_misc.h usability... no checking security/pam_misc.h presence... no checking for security/pam_misc.h... no checking security/pam_filter.h usability... no checking security/pam_filter.h presence... no checking for security/pam_filter.h... no checking sgtty.h usability... yes checking sgtty.h presence... yes checking for sgtty.h... yes checking termio.h usability... yes checking termio.h presence... yes checking for termio.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking varargs.h usability... no checking varargs.h presence... no checking for varargs.h... no checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking io.h usability... no checking io.h presence... no checking for io.h... no checking crypt.h usability... yes checking crypt.h presence... yes checking for crypt.h... yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking CoreFoundation/CoreFoundation.h usability... no checking CoreFoundation/CoreFoundation.h presence... no checking for CoreFoundation/CoreFoundation.h... no checking POSIX termios... yes checking whether byte ordering is bigendian... no checking return type of signal handlers... void checking for size_t... yes checking for uid_t in sys/types.h... yes checking for pid_t... yes checking for off_t... yes checking for mode_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for struct tm.tm_gmtoff... yes checking whether timezone is scalar... yes checking for nlink_t... yes checking for dev_t... yes checking for ino_t... yes checking for short... yes checking size of short... 2 checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking for long long... yes checking size of long long... 8 checking for mode_t... (cached) yes checking size of mode_t... 4 checking for connect... yes checking for gethostbyname... yes checking for gethostbyname... (cached) yes checking for sendfile in -lsendfile... no checking for socklen_t... yes checking for ssize_t... yes checking for sig_atomic_t... yes checking whether gcc needs -traditional... no checking for an ANSI C-conforming const... yes checking for inline... inline checking if malloc debugging is wanted... no checking for cap_init in -lcap... no checking for getspnam... yes configure: error: PAM headers not found. |
phpcool 回复于:2004-12-12 23:28:05 |
估计是跟系统版本不匹配,我在rathat、freeBSD都很顺利。 建议用跟系统匹配的版本。 |
homesp 回复于:2004-12-13 18:13:44 |
有 For MandrakeLinux的吗??? |
phpcool 回复于:2004-12-14 08:52:23 |
ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ 找找看有没有你要的。 |
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/