eitro22
@eitro22 (toi yosito)

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

bundle installができない

IMG_1953.PNG
IMG_1954.PNG
IMG_1955.PNG
IMG_1957.PNG

bundle installを実行した際にエラーが発生します。

gemfileとエラーメッセージを添付します。
確認の程宜しくお願いします。

0

2Answer

Comments

  1. @eitro22

    Questioner

    ./Thread.h:78:39: note: expanded from macro 'rbffi_thread_blocking_region'
    # define rbffi_thread_blocking_region rb_thread_call_without_gvl
    ^
    1 error generated.
    make: *** [Call.o] Error 1

    make failed, exit code 2

    Gem files will remain installed in /Users/eitro10/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ffi-1.9.18 for inspection.
    Results logged to /Users/eitro10/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-19/2.6.0/ffi-1.9.18/gem_make.out

    この様なエラーが発生します。

以下のコマンドで確認してみてください。

xcode-select --version

もしインストールしていない場合、
xcode-selectをインストールしてから、もう一度ffiをインストールしてみてください。

xcode-select --install

gem install ffi -v '1.9.18'
1Like

Comments

  1. @eitro22

    Questioner

    eitro10@yoshiokatoshininnoMacBook-Pro ruby-getting-started % shell
    xcode-select --version
    zsh: command not found: shell
    xcode-select version 2384.

    この状態でgem install ffi -v '1.9.18'を実行すると

    ./Thread.h:78:39: note: expanded from macro 'rbffi_thread_blocking_region'
    # define rbffi_thread_blocking_region rb_thread_call_without_gvl
    ^
    1 error generated.
    make: *** [Call.o] Error 1

    make failed, exit code 2

    Gem files will remain installed in /Users/eitro10/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ffi-1.9.18 for inspection.
    Results logged to /Users/eitro10/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-19/2.6.0/ffi-1.9.18/gem_make.out

    このエラーがでます、どうしたら宜しいですか?

Your answer might help someone💌