Is there any way to change gcc compilation options for a gem?

后端 未结 2 599
野的像风
野的像风 2020-12-09 12:27

I\'m struggling to install the RedCloth gem. When I type

gem install RedCloth

I get :

[…]
ragel/redcloth_attributes.c.rl:          


        
2条回答
  •  执笔经年
    2020-12-09 12:59

    Had the same problem and here is the solution:

    $ sudo gem install RedCloth -- --with-cflags=\"-O2 -pipe -march=native -Wno-unused-but-set-variable\"
    

    You have to escape the quotes if you have more than one argument.

提交回复
热议问题