when I execute a ruby code I get
Unable to load thrift_native extension. Defaulting to pure Ruby libraries.
how I ignore this mes开发者_高级运维sage ?
If it's a Ruby warning message and you just don't want to see it, this should answer your question.
How to disable warning for redefining a constant when loading a file
I'm using Jruby.
I got rid of this warning by adding an empty file named 'thrift_native.rb' to a directory in my $LOAD_PATH that takes precedence over the thrift folder.
I Chose to simply add it in the same 'app-root' directory that my Gemfile is stored in.
精彩评论