Can't install thrift gem on OS X El Capitan

前端 未结 3 2021
一整个雨季
一整个雨季 2020-12-14 17:39

Trying to install thift gem after OSX El Capitan upgrade:

    $ gem install thrift
    Building native extensions.  This could take a while...
    ERROR:  Er         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 18:29

    You need to escape double quotes.

    $ bundle config build.thrift "--with-cppflags=\"-D_FORTIFY_SOURCE=0 -Wno-shift-negative-value\""

    $ cat ~/.bundle/config

    BUNDLE_BUILD__THRIFT: --with-cppflags="-D_FORTIFY_SOURCE=0 -Wno-shift-negative-value"

提交回复
热议问题