git2r icon indicating copy to clipboard operation
git2r copied to clipboard

issue with the new version

Open tkcaccia opened this issue 1 year ago • 4 comments

There are issues with the new version. The package cannot link to the library libgit2


   Configuration failed to find libgit2 library. Try installing:
     * brew: libgit2 (MacOS)
     * deb: libgit2-dev   (Debian, Ubuntu, etc)
     * rpm: libgit2-devel (Fedora, CentOS, RHEL)
   and try again.

   If the libgit2 library is installed on your system but the git2r
   configuration is unable to find it, you can specify the include and
   lib path to libgit2 with:

   given you downloaded a tar-gz archive:
   R CMD INSTALL git2r-.tar.gz --configure-vars='INCLUDE_DIR=/path/to/include LIB_DIR=/path/to/lib'

   or cloned the GitHub git2r repository into a directory:
   R CMD INSTALL git2r/ --configure-vars='INCLUDE_DIR=/path/to/include LIB_DIR=/path/to/lib'

   or download and install git2r in R using
   install.packages('git2r', type='source', configure.vars='LIB_DIR=-L/path/to/libs INCLUDE_DIR=-I/path/to/headers')

  -----------------------------------------------------------------------


configure: error: in '/tmp/RtmpC68Wst/R.INSTALL2b147178c0db13/git2r':
configure: error: package dependency requirement 'libgit2 >= 1.0' could not be satisfied.
See 'config.log' for more details
ERROR: configuration failed for package ‘git2r’
* removing ‘/home/01481067/R/x86_64-pc-linux-gnu-library/4.4/git2r’

The downloaded source packages are in
	‘/tmp/RtmpuVeHGi/downloaded_packages’
Warning message:
In install.packages("git2r") :
  installation of package ‘git2r’ had non-zero exit status

Previous version works without problems remotes::install_version("git2r", "0.33.0")

tkcaccia avatar Nov 27 '24 18:11 tkcaccia

Boosting. I have the same issue. Using 0.33.0 worked for me though.

campbead avatar Mar 17 '25 03:03 campbead

Seeing the same

mstackhouse avatar Apr 17 '25 13:04 mstackhouse

Same issue

lisch7 avatar May 11 '25 17:05 lisch7

git2r > 0.33.0 needs a newer version of the libgit2 system library. Which is not available on Red Hat 8 (RHEL8), if by any chance you are using that system.