gpt4 book ai didi

ruby-on-rails - scrypt 无法通过 authologic 安装

转载 作者:行者123 更新时间:2023-12-03 21:23:57 24 4
gpt4 key购买 nike

我正在使用使用 authlogic 的 Rails 应用程序。包括 scrypt 加密算法(尽管未使用)。我在 Mac 上遇到此错误。我该如何解决?

为什么 i386 被认为是平台?我真的不关心 scrypt - 我怎样才能解决这个问题?

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

最佳答案

`bundle update scrypt`

scrypt gem 刚刚发布了 3.0.6 解决了这个问题。它不在变更日志中,但您可以阅读 PR: https://github.com/pbhogan/scrypt/pull/72

关于ruby-on-rails - scrypt 无法通过 authologic 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50184614/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com