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

后端 未结 9 2375
时光说笑
时光说笑 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:22

    If you're installing EventMachine as a dependency of another gem, be sure to specify the correct version when you manually install the gem:

    gem install eventmachine -v 1.0.5 -- --with-cppflags=-I$(brew --prefix openssl)/include
    

    Then you can install the gem that you were originally trying to install:

    gem install mailcatcher
    

提交回复
热议问题