Wine
我正在尝试在我的 Macbook(OS X 10.9.3)上安装。
首先,我尝试使用Homebrew
列出一组依赖项的内容,然后去获取第一个。
==> Installing dependencies for wine: libtiff, gd, libgphoto2, little-cms
==> Installing wine dependency: libtiff
==> Downloading ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz
此时超时
沮丧的是,我尝试使用Macports
,它同样可以解决依赖关系,获取大量依赖关系,但当达到
Attempting to fetch MesaLib-8.0.5.tar.bz2 from ftp://ftp.freedesktop.org/pub/mesa/older-versions/8.x/8.0.5/
该过程再次挂起并最终失败。
这两个文件都可以通过浏览器或使用ftp
命令行下载。但是,Homebrew 似乎正在尝试使用下载。尝试使用如下方式cUrl
下载它们...cUrl
curl -O ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz
超时(编辑:错误 56)
我的 cUrl 有问题吗?为什么 Homebrew 或 Macports 无法通过 ftp 下载文件?
编辑
这可能是 openSSL 的问题吗?我
OpenSSL 1.0.1g 7 Apr 2014
编辑2
tcpdump
尝试
curl -O --ftp-pasv ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz
抱歉,篇幅太长了,但我不知道这有多少相关性。这是在监听主机 ftp.remotesensing.org 的流量。
sudo tcpdump -nS -i en0 host ftp.remotesensing.org
12:15:34.249112 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778514, win 8235, options [nop,nop,TS val 52293163 ecr 726108029], length 0
12:15:34.467541 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [P.], seq 3593778514:3593778562, ack 1751566815, win 114, options [nop,nop,TS val 726108084 ecr 52293163], length 48
12:15:34.467577 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778562, win 8232, options [nop,nop,TS val 52293325 ecr 726108084], length 0
12:15:34.467622 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [P.], seq 1751566815:1751566831, ack 3593778562, win 8232, options [nop,nop,TS val 52293325 ecr 726108084], length 16
12:15:34.688464 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [.], ack 1751566831, win 114, options [nop,nop,TS val 726108138 ecr 52293325], length 0
12:15:34.688465 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [P.], seq 3593778562:3593778596, ack 1751566831, win 114, options [nop,nop,TS val 726108138 ecr 52293325], length 34
12:15:34.688548 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778596, win 8230, options [nop,nop,TS val 52293484 ecr 726108138], length 0
12:15:34.688595 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [P.], seq 1751566831:1751566853, ack 3593778596, win 8230, options [nop,nop,TS val 52293484 ecr 726108138], length 22
12:15:34.939547 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [P.], seq 3593778596:3593778619, ack 1751566853, win 114, options [nop,nop,TS val 726108202 ecr 52293484], length 23
12:15:34.939592 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778619, win 8228, options [nop,nop,TS val 52293665 ecr 726108202], length 0
12:15:34.939648 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [P.], seq 1751566853:1751566858, ack 3593778619, win 8228, options [nop,nop,TS val 52293665 ecr 726108202], length 5
12:15:35.159850 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [P.], seq 3593778619:3593778628, ack 1751566858, win 114, options [nop,nop,TS val 726108256 ecr 52293665], length 9
12:15:35.159878 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778628, win 8228, options [nop,nop,TS val 52293827 ecr 726108256], length 0
12:15:35.159996 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [P.], seq 1751566858:1751566867, ack 3593778628, win 8228, options [nop,nop,TS val 52293827 ecr 726108256], length 9
12:15:35.377961 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [P.], seq 3593778628:3593778665, ack 1751566867, win 114, options [nop,nop,TS val 726108311 ecr 52293827], length 37
12:15:35.377989 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778665, win 8226, options [nop,nop,TS val 52293987 ecr 726108311], length 0
12:15:35.378089 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [P.], seq 1751566867:1751566880, ack 3593778665, win 8226, options [nop,nop,TS val 52293987 ecr 726108311], length 13
12:15:35.600672 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [P.], seq 3593778665:3593778702, ack 1751566880, win 114, options [nop,nop,TS val 726108366 ecr 52293987], length 37
12:15:35.600705 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778702, win 8223, options [nop,nop,TS val 52294148 ecr 726108366], length 0
12:15:35.600751 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [P.], seq 1751566880:1751566886, ack 3593778702, win 8223, options [nop,nop,TS val 52294148 ecr 726108366], length 6
12:15:35.823766 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [P.], seq 3593778702:3593778749, ack 1751566886, win 114, options [nop,nop,TS val 726108421 ecr 52294148], length 47
12:15:35.823792 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778749, win 8220, options [nop,nop,TS val 52294313 ecr 726108421], length 0
12:16:53.020888 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778749, win 8220, length 0
12:16:53.235782 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [.], ack 1751566886, win 114, options [nop,nop,TS val 726127776 ecr 52294313], length 0
12:18:14.221005 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778749, win 8220, length 0
12:18:14.444259 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [.], ack 1751566886, win 114, options [nop,nop,TS val 726148075 ecr 52294313], length 0
12:19:33.654871 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778749, win 8220, length 0
12:19:33.855813 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [.], ack 1751566886, win 114, options [nop,nop,TS val 726167933 ecr 52294313], length 0
12:20:35.830462 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [P.], seq 3593778749:3593778763, ack 1751566886, win 114, options [nop,nop,TS val 726183421 ecr 52294313], length 14
12:20:35.830464 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [F.], seq 3593778763, ack 1751566886, win 114, options [nop,nop,TS val 726183421 ecr 52294313], length 0
12:20:35.830512 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778763, win 8219, options [nop,nop,TS val 52521432 ecr 726183421], length 0
12:20:35.830512 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [.], ack 3593778764, win 8219, options [nop,nop,TS val 52521432 ecr 726183421], length 0
12:20:35.830576 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [P.], seq 1751566886:1751566892, ack 3593778764, win 8219, options [nop,nop,TS val 52521432 ecr 726183421], length 6
12:20:35.830769 IP 192.168.1.76.60796 > 140.211.15.132.21: Flags [F.], seq 1751566892, ack 3593778764, win 8219, options [nop,nop,TS val 52521432 ecr 726183421], length 0
12:20:36.051447 IP 140.211.15.132.21 > 192.168.1.76.60796: Flags [R], seq 3593778766, win 0, length 0
答案1
尝试使用被动模式,例如--ftp-pasv
curl 选项。如果此方法有效,您也可以在 curl 的配置文件中指定此选项($HOME/.curlrc
有关详细信息,请参阅手册页)。