Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@OleMchls
Copy link
Contributor

As the homebrew team discussed in Homebrew/brew#9177 the new library path for homebrew on apple silicon is /opt/homebrew/lib. Alongside the PR to support MacPorts #638 this commits adds support for the new homebrew path.

Fixes #880

As the homebrew team discussed in Homebrew/brew#9177 the new library path for homebrew on apple silicon is `/opt/homebrew/lib`. Alongside the PR to support MacPorts ffi#638 this commits adds support for the new homebrew path.
@bbuchalter
Copy link
Contributor

What's it going to take to get this merged?

@superscott
Copy link

Agreed, can we get this merged? Can confirm it fixes M1 chips that use homebrew.

@bbuchalter
Copy link
Contributor

@larskanis sorry for the direct ping this is a very easy win and should be a quick review.

@tduehr tduehr merged commit 82e2092 into ffi:master Jun 2, 2021
@larskanis
Copy link
Member

For reference: I asked a question at homebrew about how to find homebrew installed libraries here: Homebrew/discussions#1600
They offered another possibility which is to use brew --prefix to retrieve the base path of homebrew. This would enable alternative install paths. However there is no builtin way within homebrew, that enables library loading at runtime (which is what we need by FFI).

@bbuchalter
Copy link
Contributor

@tduehr thanks for the merge! Any chance we could get a point release?

@lfuelling
Copy link

@tduehr thanks for the merge! Any chance we could get a point release?

If you need it right now you can add the following line to your Gemfile:
gem 'ffi', git: 'https://github.com/ffi/ffi', ref: '82e20928319e499b2e60679205733cb5f088c363'

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

Successfully merging this pull request may close these issues.

Could not open library 'sodium': dlopen(sodium, 5): image not found. (LoadError) on Apple Silicon M1

6 participants