centos 6.4 安装 gftp

由于centos的yum源中我没有找到gftp,通过 yum install gftp 找不到软件。

所以,决定通过编译源代码的方式安装gftp

./configure 回报错,有两个错误,一个是glib库版本不对,另一个是gtk版本不对,各种yum安装不正确,最后yum install gtk* glib* 解决。

从gftp官网,下载到gftp的源代码,./configure 之后make编译,报错:

pty.c:65:21: error : stropts.h :  no such file or dictionary

中文报错:

pty.c:65:21: 错误 : stropts.h :  没有这个文件或目录

解决方法如下:

在/usr/include/目录下,创建一个空的stropts.h文件。

# touch /usr/include/stropts.h

然后重新make源代码,编译成功。

# make install 安装成功

安装完,有以下两个错误:

1. 链接后下载时

550 Failed to open file.
Could not download /第三天 运算 from 192.168.0.42
There were 1 files or directories that could not be transferred. Check the log for which items were not properly transferred.

文件权限问题,该文件不支持下载。

2.

425 Use PORT or PASV first.

选项FTP->Preferences->FTP->Passive file transfers 打勾。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值