gpt4 book ai didi

ruby-on-rails - scrypt 2.0.2 构建失败

转载 作者:太空宇宙 更新时间:2023-11-04 12:45:10 26 4
gpt4 key购买 nike

bundle install fat_free_crm 需要 gem“scrypt”版本 2.0.2 ( https://rubygems.org/gems/scrypt/versions/2.0.2 ) 但我收到此错误:

ERROR:  Error installing scrypt:
ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.3.0/gems/scrypt-2.0.2/ext/scrypt
/usr/bin/ruby2.3 -rubygems /var/lib/gems/2.3.0/gems/rake-11.1.1/bin/rake RUBYARCHDIR=/var/lib/gems/2.3.0/extensions/arm-linux/2.3.0/scrypt-2.0.2 RUBYLIBDIR=/var/lib/gems/2.3.0/extensions/arm-linux/2.3.0/scrypt-2.0.2
mkdir -p arm-linux
/usr/bin/ruby2.3 -I/var/lib/gems/2.3.0/gems/ffi-compiler-1.0.1/lib/ffi-compiler/fake_ffi -I../../lib/scrypt /var/lib/gems/2.3.0/gems/ffi-compiler-1.0.1/lib/ffi-compiler/exporter.rb ../../lib/scrypt/scrypt_ext.rb ./scrypt_ext.h
gcc -fexceptions -O -fno-omit-frame-pointer -fno-strict-aliasing -Wall -msse -msse2 -fPIC -o arm-linux/crypto_scrypt-sse.o -c ./crypto_scrypt-sse.c
rake aborted!
Command failed with status (127): [gcc -fexceptions -O -fno-omit-frame-pointe...]
/var/lib/gems/2.3.0/gems/ffi-compiler-1.0.1/lib/ffi-compiler/compile_task.rb:133:in `block (2 levels) in define_task!'
Tasks: TOP => default => arm-linux/libscrypt_ext.so => arm-linux/crypto_scrypt-sse.o
(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/scrypt-2.0.2 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/arm-linux/2.3.0/scrypt-2.0.2/gem_make.out

我在互联网上找不到任何相关信息,我自己也不明白。任何帮助将不胜感激!

最佳答案

试试这个

sudo gem install rake

然后安装scrypt

gem install scrypt

关于ruby-on-rails - scrypt 2.0.2 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38949338/

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