I'm working with a Rails app that uses authlogic. The scrypt crypto algorithim is included (although not used). I'm gettting this error on my Mac. How do I resovle?
Why is i386 being thought as platform? I really don't care about scrypt - how can I get around this?
ld: in '/usr/local/lib/libunwind.dylib', file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libunwind.dylib for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
rake aborted!
Command failed with status (1): [gcc -bundle -o x86_64-darwin/libscrypt_ext...]
/Users/jt/.rvm/gems/ruby-2.1.2@global/gems/ffi-compiler-1.0.1/lib/ffi-compiler/compile_task.rb:153:in `block in define_task!'
Tasks: TOP => default => x86_64-darwin/libscrypt_ext.bundle
(See full trace by running task with --trace)
rake failed, exit code 1
Gem files will remain installed in /Users/jt/.rvm/gems/ruby-2.1.2@ssui/gems/scrypt-3.0.5 for inspection.
Results logged to /Users/jt/.rvm/gems/ruby-2.1.2@ssui/extensions/x86_64-darwin-17/2.1.0/scrypt-3.0.5/gem_make.out
An error occurred while installing scrypt (3.0.5), and Bundler cannot continue.
Make sure that `gem install scrypt -v '3.0.5'` succeeds before bundling.
In Gemfile:
authlogic was resolved to 3.6.0, which depends on
scrypt
scryptgem version3.0.5is causing the problem.I was checking their releases and can not find
3.0.5. The latest release is3.0.3jvillianmay be right. The solution could be usingwtfiwtzsuggestion:by checking the
scryptRakefilesourcecode, I found the code that could be triggering the error. It is a mac specific issue (if t.platform.mac?).