Can't install any package in rstudio-server

Hello, I can't install any package in my rstudio server.

Error Information:

handle.c:30:1: error: unknown type name ‘curl_sslbackend’
   30 | curl_sslbackend default_ssl_backend;
      | ^~~~~~~~~~~~~~~
make: *** [handle.o] Error 1
ERROR: compilation failed for package ‘curl’
* removing ‘/home/zillur/R/x86_64-redhat-linux-gnu-library/3.6/curl’
* restoring previous ‘/home/zillur/R/x86_64-redhat-linux-gnu-library/3.6/curl’

The downloaded source packages are in
	‘/tmp/Rtmpd72KnF/downloaded_packages’
Warning messages:
1: In install.packages(pkgs = doing, lib = lib, repos = repos, ...) :
  installation of package ‘gdsfmt’ had non-zero exit status
2: In install.packages(update[instlib == l, "Package"], l, contriburl = contriburl,  :
  installation of package ‘curl’ had non-zero exit status

Description of issue -
I can install packages using sudo in command line but unable to install anything on the regular rstudio server in browser which I need.

Steps taken so far -
I thought permission problem so I did:
chmod -R 777 /home/zillur/R
and restarted rstudio but nothing happened. I uninstalled whole rstudio-server and reinstalled but nothing happens.

System Information:

  • RStudio Edition: Server
  • RStudio Version: 1.2.1335
  • OS Version: CentOS 7
  • R Version: 3.6.

Also:

> sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RCurl_1.95-4.12       bitops_1.0-6          ClassDiscovery_3.3.12 oompaBase_3.2.9       cluster_2.1.0         biomaRt_2.40.4       
[7] edgeR_3.26.8          limma_3.40.6         

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.2           oompaData_3.1.1      BiocManager_1.30.4   pillar_1.4.2         compiler_3.6.0       prettyunits_1.0.2   
 [7] tools_3.6.0          progress_1.2.2       mclust_5.4.5         zeallot_0.1.0        digest_0.6.20        bit_1.1-14          
[13] RSQLite_2.1.2        memoise_1.1.0        tibble_2.1.3         lattice_0.20-38      pkgconfig_2.0.2      rlang_0.4.0         
[19] Matrix_1.2-17        DBI_1.0.0            rstudioapi_0.10      parallel_3.6.0       httr_1.4.1           stringr_1.4.0       
[25] vctrs_0.2.0          S4Vectors_0.22.1     IRanges_2.18.2       hms_0.5.1            locfit_1.5-9.1       stats4_3.6.0        
[31] bit64_0.9-7          grid_3.6.0           Biobase_2.44.0       R6_2.4.0             AnnotationDbi_1.46.1 XML_3.98-1.20       
[37] magrittr_1.5         blob_1.2.0           backports_1.1.4      BiocGenerics_0.30.0  assertthat_0.2.1     stringi_1.4.3       
[43] crayon_1.3.4 
<

!-- Depending on your issue, the following may be useful /-->

  • RStudio diagnostics report:
  • Your sessionInfo():
  • RStudio crash report:
  • RStudio application log files:

From Troubleshooting Guide: Using RStudio

I'm having the exact same problem with the latest versions of R, curl, and CentOS:

handle.c:30:1: error: unknown type name ‘curl_sslbackend’

To my limited knowledge, something seems to have broken in the interaction between R's "curl" and the curl headers.

curl-config --cflags was blank, implying the development headers were already on the path.
Within R, capabilities("libcurl") return libcurl TRUE.

The only workaround I could find was to rely on an earlier snapshot of CRAN:
install.packages(c("httr"), repos="http://mran.revolutionanalytics.com/snapshot/2019-01-06/")

Here's more info about my system:
R version 3.6.0
CentOS Linux release 7.6.1810 (Core)
Linux 90912a1aeac3 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.36 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 unix-sockets

Installed Packages
curl.x86_64, 7.29.0-51.el7_6.3
libcurl.x86_64, 7.29.0-51.el7_6.3
libcurl-devel.x86_64, 7.29.0-51.el7_6.3

Seems the curl devs are working on a fix. https://github.com/jeroen/curl/issues/204

1 Like

Thank you. I have tried those suggestions but the problem persists. any Idea?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.