scrypt 2.0.2无法构建

时间:2016-08-15 04:30:05

标签: ruby-on-rails ruby linux raspberry-pi debian

fat_free_crm的

bundle install需要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

我在互联网上找不到任何相关内容,我自己也不理解。任何帮助将不胜感激!

1 个答案:

答案 0 :(得分:0)

尝试一下

sudo gem install rake

然后安装scrypt

gem install scrypt