Thrift Ruby Gem

Thrift Ruby gem

the issue for the moment can be found at https://issues.apache.org/jira/browse/THRIFT-2219

As a temporary fix for folks using gems, you can try setting the #define'ing the _FORTIFY_SOURCE macro to 0 to make strlcpy a function rather than a macro:

gem install thrift -- --with-cppflags='-D_FORTIFY_SOURCE=0'

or if you're using bundler, you can set the cflags for thrift locally via:

bundle config build.thrift --with-cppflags='-D_FORTIFY_SOURCE=0'

Can't install thrift gem on OS X El Capitan

I have a solution for you! Hopefully.

Had this same problem the other day.

The problem is in the clang compiler that El Capitan comes bundled with. I'm sure it screws up other issues but this is one point that I had a lot of issues with.

Try running the following command and let me know how it goes!

gem install thrift -- --with-cppflags=\"-D_FORTIFY_SOURCE=0 -Wno-shift-negative-value\"

Thrift gem and JRuby

When you're already using JRuby, I would use a Java native thrift client. For me, thrift was the reason for moving to JRuby in the first place, since the Ruby implementation is rather slow and buggy.

Unable to execute 'thrift' command after 'gem install thrift'

The documentation at http://rubydoc.info/gems/thrift/0.9.0/frames includes the caveat

This library provides the client and server implementations of thrift. It does not provide the compiler for the .thrift files. To compile .thrift files into language-specific implementations, please download the full thrift software package.

This would indicate to me that there might not be any command line feature installed as part of this gem. Have you tried to invoke the library from Ruby?

RVM - can not install gem thrift on Ubuntu 11.10

I found some references to this issue on an Apache forum. There is a patch file there that it looks like you can run in order to get the thrift gem to install. I checked it over and it looks sound.

You can find it here:

https://issues.apache.org/jira/browse/THRIFT-1382



Related Topics



Leave a reply



Submit