I'm tring to install R_3.3.1 in CentOS.
So i download tar file and build it.
During build this file i got some erros because of the defendency.
I solve this errors by reference.
https://oguya.ch/posts/2017-03-18-building-R-on-rhel-6/ here.
But At the libcurl step.I can't solve it.
checking if libcurl is version 7 and >= 7.28.0... yes
checking if libcurl supports https... no
configure: error: libcurl >= 7.28.0 library and headers are required with support for https
and My curl version is 7.47.1 so i think version is not matter
[nubiz#localhost R-3.3.1]$ curl --version
curl 7.47.1 (x86_64-pc-linux-gnu) libcurl/7.47.1 zlib/1.2.8
Protocols: dict file ftp gopher http imap pop3 rtsp smtp telnet tftp
but the error say this libcurl can't use http.
So is there any version can use http or something way to this error?
I check my protocols what can i use in curl using this command 'curl-config --protocols'
And i can using only HTTP like this
DICT
FILE
FTP
GOPHER
HTTP
IMAP
POP3
RTSP
SMTP
TELNET
TFTP
it can be enable to HTTPS?
Related
Since I have to use the sftp protocol to retrieve some documents from a remote server I reinstalled the curl library with ssl.
The curl --version now correctly returns
curl 7.72.0 (x86_64-pc-linux-gnu) libcurl / 7.72.0 OpenSSL / 1.1.1 zlib / 1.2.11 brotli / 1.0.4 libidn2 / 2.0.4 libpsl / 0.19.1 (+ libidn2 / 2.0.4 ) libssh / 0.7.0 / openssl / zlib nghttp2 / 1.30.0 librtmp / 2.3
Release-Date: 2020-08-19
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
and the sftp protocol is now enabled.
In R I tried to reinstall the RCurl package from source with install.package('RCurl', type = 'source') but the libcurlVersion() command keeps returning
[1] "7.58.0"
attr (, "ssl_version")
[1] "OpenSSL / 1.1.1"
attr (, "libssh_version")
[1] ""
attr (, "protocols")
[1] "dict" "file" "ftp" "ftps" "gopher" "http" "https" "imap"
[9] "imaps" "ldap" "ldaps" "pop3" "pop3s" "rtmp" "rtsp" "smb"
[17] "smbs" "smtp" "smtps" "telnet" "tftp"
where, as you can see, the library version is different from the one installed on the machine and the sftp protocol is not enabled.
How can I force R to use the correct curl version?
You need to re-install Older curl to solve the issue. You can specify the version of curl what you want, the guide build curl by source code
exampe:
wget https://curl.haxx.se/download/curl-7.58.0.zip
The guide to re-install curl by zip
https://yannmjl.medium.com/how-to-manually-update-curl-on-ubuntu-server-899476062ad6
I use the elastic 0.7.8 R package to connect to my Elastic Search instance.
Recently, I tried to secure the Elastic Search by using Search Guard 2.
Everything work fines after securing it.
But when I try to connect from R, it fails.
library(elastic)
connect(es_base = "https://localhost", es_port = 9200, es_user = USER, es_pwd = PASS)
The error in the log is "Client requested protocal TLSv1 not enabled or not supported"
I tried to connect to Elastic Search using cURL as below:
curl -k --tlsv1.1 -u USER:PASS https://localhost:9200 (This works)
curl -k --tlsv1.0 -u USER:PASS https://localhost:9200 (This fails)
I am unable to figure out how to force R to use TLSv1.1.
Please assist.
Below are the version:
R : 3.3.1
Elastic Search: 2.4.1
GCC: 4.9.2
OS: RHEL 6.7
Openssl: 1.0.1.e-fips 11 Feb 2013
In elasticsearch.yml simply set
searchguard.ssl.http.enabled_protocols:
- "TLSv1.2"
- "TLSv1.1"
- "TLSv1"
See also https://github.com/floragunncom/search-guard-ssl/blob/master/searchguard-ssl-config-template.yml
I'm trying to fetch the following URL via various libraries and command-line tools, but running into a SSL handshake error.
> curl https://www.joelosteen.com/Views/RSS/Feed?t=PodcastVideo&ct=CustomList&cst=Podcasts
curl: (35) error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
I've seen here it may be fixed by reducing possible ciphers, but trying this less strict call with restricted ciphers doesn't fix it.
curl -vlkL "https://www.joelosteen.com/Views/RSS/Feed?t=PodcastVideo&ct=CustomList&cst=Podcasts" --ciphers DHE-RSA-AES256-SHA
Any ideas how I can fix this? It's a shared account, ie no root available.
The server supports only TLS version 1.2, i.e. no TLS 1.0 or even SSL 3.0. My guess is that the curl you use is simply too old to use TLS 1.2, but without further details about the version you use this guess can not be verified.
To determine the version of curl use curl --version. If you see it is compiled with OpenSSL than it should show at least version 1.0.1 of OpenSSL to have TLS 1.2 support.
curl -vlkL ... --ciphers DHE-RSA-AES256-SHA
This is not a cipher supported by the server. One of the ciphers supported is AES128-SHA but again, no chance if your curl does not support TLS 1.2.
I am trying to install RCurl package that has sftp support. I install curl with sftp. On console, when I do curl -V, I do get the list of protocols supported:
curl 7.39.0 (x86_64-unknown-linux-gnu) libcurl/7.39.0 OpenSSL/0.9.8j zlib/1.2.7 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: Largefile NTLM NTLM_WB SSL libz
However, when I try to install RCurl version RCurl_1.95, I dont see sftp as one of the protocols:
curlVersion()$protocols
[1] "tftp" "ftp" "telnet" "dict" "ldap" "ldaps" "http" "file"
[9] "https" "ftps"
Is there a way to force Rcurl include sftp when manually installing the RCurl from the source?
I do not thinks so. While curl/libcurl might provide a huge amount of protocols -- as far as I understand the matter -- RCurl does not port all theoretically available protocols to be used in R.
You might either do that yourself or maybe kindly ask Duncan Temple Lang to add further protocols. A workaround might be to access curl from within R via shell() like this:
shell("curl example.com", intern = TRUE)
The ngx_echo module isn't included when I install nginx by:
sudo port install nginx
I looked at the portfile and the variants are:
addition dav debug flv geoip google_perftools gzip_static ipv6 mail perl5 realip redis secure_download ssl status substitution upload zip
Is ngx_echo included in any of those options?
I compiled it using macports as mentioned in the link below
https://serverfault.com/questions/328416/how-to-set-random-value-in-the-specified-range-in-variable/347191#347191