Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to compile 0.35 on Ubuntu 20.04 #471

Open
p-phillips opened this issue Oct 24, 2024 · 4 comments
Open

Failure to compile 0.35 on Ubuntu 20.04 #471

p-phillips opened this issue Oct 24, 2024 · 4 comments

Comments

@p-phillips
Copy link

p-phillips commented Oct 24, 2024

I'm trying to upgrade my R packages on an Ubuntu 20.04 install to git2r 0.35

I've got libgit2-dev installed:

# apt list --installed| egrep libgit
libgit-wrapper-perl/focal,focal,now 0.048-1 all [installed,automatic]
libgit2-28/focal-updates,focal-security,now 0.28.4+dfsg.1-2ubuntu0.1 amd64 [installed,automatic]
libgit2-dev/focal-updates,focal-security,now 0.28.4+dfsg.1-2ubuntu0.1 amd64 [installed,automatic]
libgit2-glib-1.0-0/focal,now 0.28.0.1-2 amd64 [installed,automatic]
libgit2-glib-1.0-dev/focal,now 0.28.0.1-2 amd64 [installed]
libgitlab-api-v4-perl/focal,focal,now 0.25-1 all [installed,automatic]

but I'm getting the

configure: error: package dependency requirement 'libgit2 >= 1.0' could not be satisfied.
See 'config.log' for more details
ERROR: configuration failed for package ‘git2r’

error message. I've installed the GIT MAINTAINERS ppa but still the same error message.

My suspicion is that my problem is that I don't have a sufficiently up to date version of the development libraries? - I can't find anything obvious regarding a libgit2-dev PPA that would upgrade the library from 0.28.4.

Advice appreciated. Thanks. Pete

@stewid
Copy link
Member

stewid commented Oct 25, 2024

Yes, I bumped the version of libgit2 to >= 1.0. It was challenging to check for multiple libgit2 API differences in the configuration and I decided to move forward. I am sorry that this is causing you difficulties in installing version 0.35. There are no other changes in that version so you can continue to use the previous version of git2r.

@p-phillips
Copy link
Author

Any advice on what the options would be in future ? This is likely to burn anyone still on a long term supported version of Ubuntu.

@trosendal
Copy link
Contributor

The error message indicates that you need to install a version of libgit2 that is greater than or equal to version 1.0. On Ubuntu you can apparently get that from the 'universe' repository or from here: https://ubuntu.pkgs.org/24.04/ubuntu-universe-amd64/libgit2-glib-1.0-0_1.2.0-1build4_amd64.deb.html . I would suggest that 'options for the future' include installation of the required dependency to avoid getting 'burned'.

@p-phillips
Copy link
Author

_

The error message indicates that you need to install a version of libgit2 that is greater than or equal to version 1.0

_

Yeah, I understand that. The problem is that if you are running a long term support release, you can't get that dependency unless someone makes a PPA available, and I've not been able to find one for Ubuntu 20.04. All the repos only have 0.28.4 versions for Ubuntu 20.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants