spf13 / spf13-vim

The ultimate vim distribution
http://vim.spf13.com
Apache License 2.0
15.56k stars 3.63k forks source link

Single line install does not work for me #731

Open rcousens opened 9 years ago

rcousens commented 9 years ago

Error on single line install from README.md

vagrant@localhost ~]$     curl https://j.mp/spf13-vim3 -L > spf13-vim.sh && sh spf13-vim.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   142  100   142    0     0     18      0  0:00:07  0:00:07 --:--:--    41^A
  0     0    0     0    0     0      0      0 --:--:--  0:00:14 --:--:--     0
100   279  100   279    0     0     14      0  0:00:19  0:00:19 --:--:--    64
spf13-vim.sh: line 1: syntax error near unexpected token `newline'
spf13-vim.sh: line 1: `<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">'

This has not worked for over a week, I felt like it would probably just be a temporary issue.

rcousens commented 9 years ago

This is what ends up inside spf13-vim.sh

<!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 />
Host name provided via SNI and via HTTP are different</p>
</body></html>
rcousens commented 9 years ago

For anyone else, my workaround has just been:

wget https://j.mp/spf13-vim3 && sh spf13-vim3
rcousens commented 9 years ago

My curl version info

curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.15.4 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz 
ghost commented 9 years ago

@spf13: please take a look at this.

qorbani commented 9 years ago

@rcousens - Do you have any special settings in your .curlrc?

cat ~/.curlrc

Also try to do -k to your curl command to bypass certificate checking. In some cases this solves the problem.

curl -k -L https://j.mp/spf13-vim3 > spf13-vim.sh && sh spf13-vim.sh
rcousens commented 9 years ago

Hi @qorbani

I have no .curlrc.

I'll try -k instead and report back.

rcousens commented 9 years ago

Also, I can report I've used the single line install on pretty much every distribution (Arch/CentOS/Ubuntu/Debian) without fail. It only seems to be an issue in my Fedora 21 box. Just realised this now..