Установка ffi 1.12.2 с родными расширениями FAILED - PullRequest
1 голос
/ 27 февраля 2020

После запуска "gem install ffi" и попытки установить его на MacOS я получаю следующую ошибку:

> $ gem install ffi 
> NOTE:Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/escape-0.0.4.gemspec:18. NOTE:
> Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/fuzzy_match-2.0.4.gemspec:17.
> NOTE: Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/i18n-0.9.5.gemspec:17. NOTE:
> Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/little-plugger-1.1.4.gemspec:18.
> NOTE: Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/logging-2.2.2.gemspec:18. NOTE:
> Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/open4-1.3.4.gemspec:16. NOTE:
> Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/escape-0.0.4.gemspec:18. NOTE:
> Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/fuzzy_match-2.0.4.gemspec:17.
> NOTE: Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/i18n-0.9.5.gemspec:17. NOTE:
> Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/little-plugger-1.1.4.gemspec:18.
> NOTE: Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/logging-2.2.2.gemspec:18. NOTE:
> Gem::Specification#rubyforge_project= is deprecated with no
> replacement. It will be removed on or after 2019-12-01.
> Gem::Specification#rubyforge_project= called from
> /Users/myuser/.gem/specifications/open4-1.3.4.gemspec:16. Building
> native extensions. This could take a while... ERROR:  Error installing
> ffi:  ERROR: Failed to build gem native extension.
> 
>     current directory: /Users/georgegoci/.gem/gems/ffi-1.12.2/ext/ffi_c
> /Users/myuser/.rbenv/versions/2.7.0/bin/ruby -I
> /Users/myuser/.rbenv/versions/2.7.0/lib/ruby/2.7.0 -r
> ./siteconf20200227-34272-rl7ya0.rb extconf.rb checking for ffi.h... no
> checking for ffi.h in /usr/local/include,/usr/include/ffi... no
> checking for shlwapi.h... no checking for
> rb_thread_call_without_gvl()... yes checking for
> ruby_native_thread_p()... yes checking for ruby_thread_has_gvl_p()...
> yes creating extconf.h creating Makefile
> 
> current directory: /Users/myuser/.gem/gems/ffi-1.12.2/ext/ffi_c
> make "DESTDIR=" clean
> 
> current directory: /Users/myuser/.gem/gems/ffi-1.12.2/ext/ffi_c
> make "DESTDIR=" Configuring libffi clang: error: unsupported option
> '-print-multi-os-directory' clang: error: no input files cd
> "/Users/myuser/.gem/gems/ffi-1.12.2/ext/ffi_c/libffi-x86_64-darwin18"
> && /Applications/Xcode 10_3.app/Contents/Developer/usr/bin/make
> /bin/sh: /Applications/Xcode: No such file or directory make: ***
> ["/Users/myuser/.gem/gems/ffi-1.12.2/ext/ffi_c/libffi-x86_64-darwin18"/.libs/libffi_convenience.a]
> Error 127
> 
> make failed, exit code 2
> 
> Gem files will remain installed in
> /Users/myuser/.gem/gems/ffi-1.12.2 for inspection. Results logged
> to
> /Users/myuser/.gem/extensions/x86_64-darwin-18/2.7.0/ffi-1.12.2/gem_make.out

Я также пробую это решение:

  1. Gem install ffi Не удалось создать собственное расширение gem
  2. Не удается установить pg 1.1.3 с собственными расширениями

Но решение по-прежнему отсутствует.

Есть идеи?

...