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

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

    gem pristine eventmachine -- --with-cppflags=-I/usr/local/opt/openssl/include
    

    pristine removes the old gem and recompiles it.

    The cpp flags option allows the compiler to find the openssl headers.

    You can also add the version if you like:

    gem pristine eventmachine -v '1.0.4' -- --with-cppflags=-I/usr/local/opt/openssl/include
    

提交回复
热议问题