ruby - RVM - cannot install thrift on Amazon Linux checking strlcpy() in string.h -


i'm using:

  • amazon linux - 2012.09
  • rvm v1.19.1
  • ruby ruby-1.9.3-p362 (via rvm)
  • system ruby 1.8.7
  • thrift v0.7.0 (i know there newer version removes c dependancy, however, have dependancy requires v0.7.0)

i'm running following command happily installs gems until crashes out @ thrift:

/usr/local/rvm/bin/rvm ruby-1.9.3-p362 exec bundle install 

which produces error:

installing thrift (0.7.0) gem::installer::extensionbuilderror: error: failed build gem native extension.      /usr/local/rvm/rubies/ruby-1.9.3-p362/bin/ruby extconf.rb checking strlcpy() in string.h... no creating makefile  make compiling compact_protocol.c compiling struct.c struct.c:28:1: error: static declaration of ‘strlcpy’ follows non-static declaration /usr/local/rvm/rubies/ruby-1.9.3-p362/include/ruby-1.9.1/ruby/missing.h:198:20: note: previous declaration of ‘strlcpy’ here make: *** [struct.o] error 1 

i can see quite lot discussion around topic, however, no real solution - appreciated.

thanks


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -