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

LoadError: cannot load such file -- ffi-compiler/compile_task #91

Open
mvn-anhle-hn opened this issue Dec 3, 2024 · 0 comments
Open

Comments

@mvn-anhle-hn
Copy link

mvn-anhle-hn commented Dec 3, 2024

Getting an error while installing authlogic gem, which has scrypt (3.0.8) dependency
I tried gem install scrypt -v '3.0.8' --source 'https://rubygems.org/', didn't work

gem install scrypt -v '3.0.8' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
ERROR:  Error installing scrypt:
	ERROR: Failed to build gem native extension.

    current directory: /Users/anh.le/.rvm/gems/ruby-2.6.0/gems/scrypt-3.0.8/ext/scrypt
/Users/anh.le/.rvm/rubies/ruby-2.6.0/bin/ruby -rrubygems /Users/anh.le/.rvm/gems/ruby-2.6.0/gems/rake-13.2.1/exe/rake RUBYARCHDIR\=/Users/anh.le/.rvm/gems/ruby-2.6.0/extensions/-darwin-22/2.6.0/scrypt-3.0.8 RUBYLIBDIR\=/Users/anh.le/.rvm/gems/ruby-2.6.0/extensions/-darwin-22/2.6.0/scrypt-3.0.8
rake aborted!
LoadError: cannot load such file -- ffi-compiler/compile_task
/Users/anh.le/.rvm/gems/ruby-2.6.0/gems/scrypt-3.0.8/ext/scrypt/Rakefile:1:in `<top (required)>'
/Users/anh.le/.rvm/gems/ruby-2.6.0/gems/rake-13.2.1/exe/rake:27:in `<main>'
(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in /Users/anh.le/.rvm/gems/ruby-2.6.0/gems/scrypt-3.0.8 for inspection.
Results logged to /Users/anh.le/.rvm/gems/ruby-2.6.0/extensions/-darwin-22/2.6.0/scrypt-3.0.8/gem_make.out

Any suggestion?

OS: MacOS Ventura 13.6
Chip: Apple M1

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

1 participant