Skip to content
New issue

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

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

Already on GitHub? # to your account

Install on an M1 Mac (ARM64) #83

Closed
tristanmorgan opened this issue Sep 1, 2021 · 4 comments
Closed

Install on an M1 Mac (ARM64) #83

tristanmorgan opened this issue Sep 1, 2021 · 4 comments
Labels

Comments

@tristanmorgan
Copy link
Owner

Describe the bug
I tried to install Awskeyring on an M1 Mac.

To Reproduce
Steps to reproduce the behavior:

  1. Ran Xcode-select --install
  2. Ran gem install awskeyring --user-install --bindir ~/bin
  3. Finally awskeyring help
  4. See error 🤮

.bundle/vendor/gems/ffi-1.15.3/lib/ffi/library.rb:275: [BUG] Bus Error at 0x000000010054c000 ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20]

Expected behavior
Installing and running successfully is what I hoped for.

Desktop (please complete the following information):

  • macOS version: Big Sur
  • Ruby version 2.6.3p62
  • Awskeyring Version 1.9.0

Additional context
Twas installing on an M1 Mac.

@tristanmorgan
Copy link
Owner Author

tristanmorgan commented Sep 1, 2021

Solving the problem myself... after chasing down the errors, installing FFI separately (with the extra flag) fixes it.

run gem install ffi --user-install -- --enable-libffi-alloc before installing Awskeyring.

@tristanmorgan
Copy link
Owner Author

Solution found in ffi/ffi#864

@tristanmorgan
Copy link
Owner Author

don't ask me why....

# cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/
# ln -s universal-darwin21 universal-darwin22

@tristanmorgan
Copy link
Owner Author

on a continuing theme....

# cd /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/include/ruby-2.6.0/
# ln -s universal-darwin23 universal-darwin22

this time if you used the commandline tools without Xcode.

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

No branches or pull requests

1 participant