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

cannot load such file -- rugged/2.7/rugged (LoadError) #942

Open
wonderer007 opened this issue Nov 7, 2022 · 4 comments
Open

cannot load such file -- rugged/2.7/rugged (LoadError) #942

wonderer007 opened this issue Nov 7, 2022 · 4 comments

Comments

@wonderer007
Copy link

wonderer007 commented Nov 7, 2022

I am having issue with rugged gem. Installation went smooth. When I run rails s I get following error

/Users/haiderali/.rvm/gems/ruby-2.7.3/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': dlopen(/Users/haiderali/.rvm/gems/ruby-2.7.3/gems/rugged-1.0.1/lib/rugged/rugged.bundle, 0x0009): 
symbol not found in flat namespace (_git_annotated_commit_free) - /Users/haiderali/.rvm/gems/ruby-2.7.3/gems/rugged-1.0.1/lib/rugged/rugged.bundle (LoadError)

System

  • ruby-2.7.3
  • MacOS Monterey (M1)
@carlosmn
Copy link
Member

carlosmn commented Nov 9, 2022

It looks like the version of rugged you have does not correspond to the dynamic libgit2 that you have installed where ruby is finding it. If you don't want to manage the dynamic library separately then I would recommend building statically.

@regdek
Copy link

regdek commented Nov 27, 2022

I'm having the same issue with

  • ruby-2.6.6
  • MacOS Monterey (M1)
  • rugged 0.99.0

can you please explain what building statically means?

@carlosmn
Copy link
Member

The default is to build libgit2 statically into the rugged shared object. If neither of you are overriding this when building, it's possible there is something different on ARM machines or specifically Apple's implementation of it or the tooling for it that might need some adjustment, but I don't have such a machine to test on.

@yelodia
Copy link

yelodia commented Nov 23, 2024

@carlosmn Hello. I've got this error on ubuntu 20.4 after installing rugged with --use-system-libraries option. If I install rugged without it I have segmentation fault error.
System
ruby 2.7.5
rugged 1.2.0
OS Ubuntu 20.4

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

4 participants