Skip to content

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

@mvn-anhle-hn

Description

@mvn-anhle-hn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions