`gdk install` fails on M1 mac FFI::NotFoundError: Function 'getmntinfo64' not found in [libc.dylib]
MacOS Monterey M1 Max :
--------------------------------------------------------------------------------
Generating gitlab-org/gitlab Rails translations
--------------------------------------------------------------------------------
rake aborted!
FFI::NotFoundError: Function 'getmntinfo64' not found in [libc.dylib]
/Users/tkuah/code/gdk-ee/gitlab/config/application.rb:15:in `<top (required)>'
/Users/tkuah/code/gdk-ee/gitlab/Rakefile:9:in `require'
/Users/tkuah/code/gdk-ee/gitlab/Rakefile:9:in `<top (required)>'
/Users/tkuah/.rbenv/versions/2.7.4/bin/bundle:23:in `load'
/Users/tkuah/.rbenv/versions/2.7.4/bin/bundle:23:in `<main>'
Caused by:
FFI::NotFoundError: Function 'getmntent' not found in [libc.dylib]
/Users/tkuah/code/gdk-ee/gitlab/config/application.rb:15:in `<top (required)>'
/Users/tkuah/code/gdk-ee/gitlab/Rakefile:9:in `require'
/Users/tkuah/code/gdk-ee/gitlab/Rakefile:9:in `<top (required)>'
/Users/tkuah/.rbenv/versions/2.7.4/bin/bundle:23:in `load'
/Users/tkuah/.rbenv/versions/2.7.4/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
make: *** [.gitlab-translations] Error 1
❌️ ERROR: Failed to install.
-------------------------------------------------------
You can try the following that may be of assistance:
- Run 'gdk doctor'.
- Visit the troubleshooting documentation:
https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/troubleshooting.md.
- Visit https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues to
see if there are known issues.
- Run 'gdk reset-data' if appropriate.
- Run 'gdk pristine' which will restore your GDK to a pristine state.
-------------------------------------------------------
https://github.com/ffi/ffi/issues/850 seems related
Edited by Thong Kuah