r-lib / gert

Simple git client for R
https://docs.ropensci.org/gert/
Other
148 stars 31 forks source link

error on redhat with lssh2 #195

Open taylordm opened 1 year ago

taylordm commented 1 year ago

Redhat has deprecated lssh2 in version 8. Any workaround to install gert with that limitation?

Operating System: Red Hat Enterprise Linux 8.6 (Ootpa) CPE OS Name: cpe:/o:redhat:enterprise_linux:8::baseos Kernel: Linux 4.18.0-372.26.1.el8_6.x86_64

`install.packages("gert", repos = c(ropensci = 'https://ropensci.r-universe.dev', CRAN = 'https://cloud.r-project.org')) Installing package into ‘/usr/lib64/R/library’ (as ‘lib’ is unspecified)

trying URL 'https://ropensci.r-universe.dev/src/contrib/gert_1.9.2.tar.gz'

Content type 'application/x-gzip' length 296424 bytes (289 KB)

downloaded 289 KB

jeroen commented 1 year ago

Well the workaround is already in place: it is trying to download a static libgit2 from https://autobrew.github.io/archive/x86_64_linux/libgit2-1.4.2-x86_64_linux.tar.gz but it seems you don't have an internet connection?

taylordm commented 1 year ago

I do have an internet connection. I am able to install most R packages.  Most installations are through yum. I take it yum install of libgit2 and libgit2-devel won’t work?On Jan 14, 2023, at 12:42 PM, Jeroen Ooms @.***> wrote: Well the workaround is already in place: it is trying to download a static libgit2 from https://autobrew.github.io/archive/x86_64_linux/libgit2-1.4.2-x86_64_linux.tar.gz but it seems you don't have an internet connection?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

jeroen commented 1 year ago

Yes you can use libgit2-devel from your system. But the drawback is that it is an older version of libgit2 and cloning from git-ssh remotes wont work because as you indicate yourself, redhat does not have libssh2.

But if you want this you can force this by setting the envvar USE_SYSTEM_LIBGIT2.

Sys.setenv(USE_SYSTEM_LIBGIT2=1)
install.packages("gert", repos = 'https://ropensci.r-universe.dev')

I think the error in your first post was a temporary internet problem on your side...