Hi Guys, ho un messaggio di errore durante l'esecuzione sudo bundle install:errore durante l'installazione crypt (3.1.7)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for ruby/util.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling bcrypt_ext.c
compiling crypt.c
compiling crypt_blowfish.c
compiling crypt_gensalt.c
compiling wrapper.c
linking shared-object bcrypt_ext.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [bcrypt_ext.bundle] Error 1
make failed, exit code 2
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/bcrypt-3.1.7 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/bcrypt-3.1.7/gem_make.out
An error occurred while installing bcrypt (3.1.7), and Bundler cannot continue.
Make sure that `gem install bcrypt -v '3.1.7'` succeeds before bundling.
poi ho cercato di eseguire sudo gem install -v bcrypt '3.1 0,7' e hanno seguito il messaggio di errore:
Building native extensions. This could take a while...
ERROR: Error installing bcrypt:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for ruby/util.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling bcrypt_ext.c
compiling crypt.c
compiling crypt_blowfish.c
compiling crypt_gensalt.c
compiling wrapper.c
linking shared-object bcrypt_ext.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [bcrypt_ext.bundle] Error 1
make failed, exit code 2
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/bcrypt-3.1.7 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-13/2.0.0/bcrypt-3.1.7/gem_make.out
Dopo questo, cerco di eseguire sudo gem install bcrypt, ancora non funziona. Qualche consiglio?
possibile duplicato di [installazione di Ruby Gem non riesce su Mavericks e Xcode 5.1 - argomento sconosciuto: '-multiply \ _definedsuppress'] (http://stackoverflow.com/questions/22352838/ruby-gem-install-json-fails -on-mavericks-and-xcode-5-1-unknown-argument-mul) – BroiSatse
sudo ARCHFLAGS = -Wno-error = unused-command-line-argument-hard-error-in-future gem installa bcrypt sembra sta lavorando! – user3456226
Se funziona, e risolto il problema, è necessario pubblicare una risposta alla propria domanda per gli altri che si fermeranno in futuro. –