centos 6.4 安装 gftp

来源:互联网 发布:云计算虚拟化技术入门 编辑:程序博客网 时间:2024/05/17 09:32

由于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 打勾。

原创粉丝点击