我无法使用简单的脚本安装 Perlbrew:curl -L http://install.perlbrew.pl | bash
我以前很容易做到,但现在,在全新的 CentOS 6.5 中,我收到 400 Bad Request。
这是输出:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
113 226 113 226 0 0 187 0 0:00:01 0:00:01 --:--:-- 187
bash: line 1: syntax error near unexpected token `newline'
bash: line 1: `<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">'
如果我执行 curl 部分,这就是响应(不将其传递给 bash)
curl -L http://install.perlbrew.pl
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body>
</html>
这是我的卷曲版本: curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 协议:tftp ftp telnet dict ldap ldaps http 文件 https ftps scp sftp
功能:GSS-协商 IDN IPv6 大文件 NTLM SSL libz
通常的编译器也安装了yum groupinstall 'Development Tools'
什么会失败?真的很奇怪……