Curl - option --retry-connrefused: is unknown или как скомпилировать новую версию CURL: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск
 
(не показана 1 промежуточная версия этого же участника)
Строка 1: Строка 1:
 +
[[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]]
 +
 
=== Curl - option --retry-connrefused: is unknown или как скомпилировать новую версию CURL ===
 
=== Curl - option --retry-connrefused: is unknown или как скомпилировать новую версию CURL ===
  
Строка 27: Строка 29:
  
  
Проверить новую версию можно командой:
+
Проверить новую версию curl можно командой:
 
  # curl -V
 
  # curl -V
 
  curl 7.75.0 (x86_64-pc-linux-gnu) libcurl/7.75.0 OpenSSL/1.1.1k
 
  curl 7.75.0 (x86_64-pc-linux-gnu) libcurl/7.75.0 OpenSSL/1.1.1k
Строка 33: Строка 35:
 
  Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
 
  Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
 
  Features: alt-svc AsynchDNS HTTPS-proxy IPv6 Largefile NTLM NTLM_WB SSL TLS-SRP UnixSockets
 
  Features: alt-svc AsynchDNS HTTPS-proxy IPv6 Largefile NTLM NTLM_WB SSL TLS-SRP UnixSockets
 
 
 
 
  
  
 
Новые версии CURL можно всегда посмотреть по ссылке:
 
Новые версии CURL можно всегда посмотреть по ссылке:
 
*https://curl.se/download/
 
*https://curl.se/download/

Текущая версия на 10:31, 29 марта 2021

Доступная цена

Curl - option --retry-connrefused: is unknown или как скомпилировать новую версию CURL

На Ubuntu 16.04 используется старая версия CURL - 7.47.0, поэтому при использовании может возникать ошибка:

curl: option --retry-connrefused: is unknown

Речь идет про эту опцию

 --retry-connrefused
In addition to the other conditions, consider ECONNREFUSED as a transient error too for --retry. This option is used together  with --retry.
Added in 7.52.0.


Компиляцию и установку последней версии CURL можно выполнить командами (в примере обновляется до curl-7.75.0):

# apt remove curl
# apt purge curl
# apt update
# apt install -y libssl-dev autoconf libtool make
# cd /usr/local/src
# wget https://curl.haxx.se/download/curl-7.75.0.zip
# unzip curl-7.75.0.zip
# cd curl-7.75.0
# ./buildconf
# ./configure --with-ssl
# make
# make install
# ldconfig


Проверить новую версию curl можно командой:

# curl -V
curl 7.75.0 (x86_64-pc-linux-gnu) libcurl/7.75.0 OpenSSL/1.1.1k
Release-Date: 2021-02-03
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HTTPS-proxy IPv6 Largefile NTLM NTLM_WB SSL TLS-SRP UnixSockets


Новые версии CURL можно всегда посмотреть по ссылке: