Created
November 20, 2015 17:14
-
-
Save everdark/64181835f8c3f3b6a5ab to your computer and use it in GitHub Desktop.
solve logstash jruby issue on raspberry pi 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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