Skip to content

Instantly share code, notes, and snippets.

@everdark
Created November 20, 2015 17:14
Show Gist options
  • Save everdark/64181835f8c3f3b6a5ab to your computer and use it in GitHub Desktop.
Save everdark/64181835f8c3f3b6a5ab to your computer and use it in GitHub Desktop.
solve logstash jruby issue on raspberry pi 2
# reference:
# https://github.com/elastic/logstash/issues/1916
# https://github.com/jruby/jruby/issues/1561#issuecomment-67953147
cd /tmp
git clone https://github.com/jnr/jffi.git
cd jffi
ant jar # sudo apt-get install ant
# replace libjffi-1.2.so with the one build on pi
cp /tmp/jffi/build/jni/libjffi-1.2.so /opt/logstash-2.0.0/vendor/jruby/lib/jni/arm-Linux/libjffi-1.2.so
# re-jar
cd /opt/logstash-2.0.0/vendor/jruby/lib # where the jruby.jar lies
zip -g jruby.jar jni/arm-Linux/libjffi-1.2.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment