Logstash LoadError: no such file to load — i18n

J Denney
J Denney
Jul 15, 2015 · 1 min read
LoadError: no such file to load -- i18n
require at org/jruby/RubyKernel.java:1085
(root) at /usr/local/Cellar/logstash/1.4.2/libexec/lib/logstash/runner.rb:46

I received this error when trying to run logstash from within a Ruby script for automated integration test purposes. Turns out the ‘RUBYOPT’ environment variable was getting set, most likely by bundler, causing the issue. I simply cleared the env var before executing logstash:

RUBYOPT='' logstash -e '{config}'

or

unset RUBYOPT && logstash -e '{config}'

Jason Denney

Smart-enough dude sharing pointers on DIY projects, code, and living cheap. Developer of multitouch.app

    J Denney

    Written by

    J Denney

    software dev, multitouch.app

    Jason Denney

    Smart-enough dude sharing pointers on DIY projects, code, and living cheap. Developer of multitouch.app