I am trying to install scrypt gem and kept on running errors as following.
Fetching: ffi-1.9.6.gem (100%)
Building native extensions. This could take a while...
Successfully installed ffi-1.9.6
Fetching: ffi-compiler-0.1.3.gem (100%)
Successfully installed ffi-compiler-0.1.3
Fetching: scrypt-2.0.0.gem (100%)
ERROR: Error installing scrypt:
ERROR: Failed to build gem native extension.
Building native extensions. This could take a while...
/Users/CHENGLC/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -rubygems /Users/CHENGLC/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake RUBYARCHDIR=/Users/CHENGLC/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-13/1.9.1/scrypt-2.0.0 RUBYLIBDIR=/Users/CHENGLC/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-13/1.9.1/scrypt-2.0.0
mkdir -p x86_64-darwin
/usr/local/opt/gcc46/bin/gcc-4.6 -fexceptions -O -fno-omit-frame-pointer -fno-strict-aliasing -Wall -msse -msse2 -arch x86_64 -arch i386 -o x86_64-darwin/crypto_scrypt-sse.o -c ./crypto_scrypt-sse.c
gcc-4.6: error: x86_64: No such file or directory
gcc-4.6: error: i386: No such file or directory
gcc-4.6: error: unrecognized option '-arch'
gcc-4.6: error: unrecognized option '-arch'
rake aborted!
Command failed with status (1): [/usr/local/opt/gcc46/bin/gcc-4.6 -fexcepti...]
Tasks: TOP => default => x86_64-darwin/libscrypt_ext.bundle => x86_64-darwin/crypto_scrypt-sse.o
(See full trace by running task with --trace)
rake failed, exit code 1
I have tried to reinstall ruby, reset rvm and also reinstall the gcc but non of these helped. Please let me know if there is a way to solve this. The following is the environment:
ruby -v
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin13.4.0]
rvm -v
rvm 1.26.6 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
Besides that, I would like to know if there is material that I can study for setting up the environment in general for example: what does each line in the .bashrc file mean?
Thanks in advance.