gem eventmachine fatal error: 'openssl/ssl.h' file not found

后端 未结 9 2396
时光说笑
时光说笑 2020-12-02 04:01

Just installed El Capitan and can\'t install gem eventmachine 1.0.7. openssl is at 1.0.2a-1. Tried to use --with-ss

9条回答
  •  无人及你
    2020-12-02 04:32

    One alternative is to add a bundler config entry for your whole user profile, like this:

    cd ~
    bundle config build.eventmachine --with-cppflags=-I$(brew --prefix openssl)/include
    

    it'll create a .bundle/config file in your home directory, which is then used in all your projects when you run bundle install.

提交回复
热议问题