1

我需要 c11 支持,但我似乎无法从自制软件安装 gcc48:

$ brew install gcc48
==> Downloading ftp://gcc.gnu.org/pub/gcc/snapshots/4.8.0-RC-20130316/gcc-4.8.0-RC-20130316.tar.bz2

curl: (9) Server denied you to change to the given directory
Error: Download failed: ftp://gcc.gnu.org/pub/gcc/snapshots/4.8.0-RC-20130316/gcc-4.8.0-RC-20130316.tar.bz2
4

1 回答 1

1

似乎curl没有给出正确的错误,从而误导您认为这是某种身份验证问题。

真正的问题是 ftp 服务器上不存在指定的目录。也许这是一个自制的问题。

$ wget ftp://gcc.gnu.org/pub/gcc/snapshots/4.8.0-RC-20130316/gcc-4.8.0-RC-20130316.tar.bz2
--2013-07-19 15:16:06--  ftp://gcc.gnu.org/pub/gcc/snapshots/4.8.0-RC-20130316/gcc-4.8.0-RC-20130316.tar.bz2
           => `gcc-4.8.0-RC-20130316.tar.bz2'
Resolving gcc.gnu.org (gcc.gnu.org)... 209.132.180.131
Connecting to gcc.gnu.org (gcc.gnu.org)|209.132.180.131|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/gcc/snapshots/4.8.0-RC-20130316 ... 
No such directory `pub/gcc/snapshots/4.8.0-RC-20130316'.
于 2013-07-19T09:50:46.717 回答