Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ jruby --version
- jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [darwin-x86_64-java]
- I think I've uninstalled the jls-grok gem, I've verified using this:
- Victors-MacBook-Air:ruby victorng$ jgem list
- *** LOCAL GEMS ***
- bert (1.1.2 java)
- brick (0.0.3)
- bundle (0.0.1)
- bundler (1.0.21)
- ffi-rzmq (0.8.2)
- git (1.2.5)
- jeweler (1.6.2)
- jruby-httpclient (1.0.0 java)
- json (1.6.1 java, 1.5.0 java)
- json-jruby (1.5.0 java)
- mime-types (1.16)
- rake (0.9.2, 0.8.7)
- rdoc (3.6.1)
- rest-client (1.6.7)
- slop (2.1.0)
- sources (0.0.1)
- Victors-MacBook-Air:ruby victorng$
- jirb says I have no grok installed either:
- $ jirb -rubygems
- irb(main):001:0> require 'grok-pure'
- LoadError: no such file to load -- grok-pure
- ..bunch of stuff deleted here...
- Ok, so now I go to install jls-grok from source:
- Victors-MacBook-Air:ruby victorng$ jrake
- WARNING: no rubyforge_project specified
- Successfully built RubyGem
- Name: jls-grok
- Version: 0.9.0
- File: jls-grok-0.9.0.gem
- Victors-MacBook-Air:ruby victorng$
- Install the gem:
- Victors-MacBook-Air:ruby victorng$ jgem install ./jls-grok-0.9.0.gem
- Successfully installed jls-grok-0.9.0
- 1 gem installed
- Victors-MacBook-Air:ruby victorng$
- Verify the gem installed properly:
- Victors-MacBook-Air:ruby victorng$ jgem list
- *** LOCAL GEMS ***
- bert (1.1.2 java)
- brick (0.0.3)
- bundle (0.0.1)
- bundler (1.0.21)
- ffi-rzmq (0.8.2)
- git (1.2.5)
- jeweler (1.6.2)
- jls-grok (0.9.0)
- jruby-httpclient (1.0.0 java)
- json (1.6.1 java, 1.5.0 java)
- json-jruby (1.5.0 java)
- mime-types (1.16)
- rake (0.9.2, 0.8.7)
- rdoc (3.6.1)
- rest-client (1.6.7)
- slop (2.1.0)
- sources (0.0.1)
- Victors-MacBook-Air:ruby victorng$
- Run tests:
- Victors-MacBook-Air:test victorng$ make test-pure
- JRUBY_OPTS=--1.9 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$PWD/../../" RUBYLIB="$PWD/../lib" ruby pure-ruby/alltests.rb
- Loading tests: pure-ruby/general/basic_test.rb
- /Users/victorng/dev/grok/ruby/test/../lib/grok-pure.rb:22: warning: regexp has invalid interval
- ./pure-ruby/general/basic_test.rb:2:in `require': /Users/victorng/dev/grok/ruby/test/../lib/grok-pure.rb:22: undefined (?...) sequence: /%{ # match '%{' not prefixed with '\' (SyntaxError)
- (?<name> # match the pattern name
- (?<pattern>[A-z0-9]+)
- (?::(?<subname>[A-z0-9_:]+))?
- )
- (?:=(?<definition>
- (?:
- (?:[^{}\\]+|\\.+)+
- |
- (?<curly>\{(?:(?>[^{}]+|(?>\\[{}])+)|(\g<curly>))*\})+
- )+
- ))?
- [^}]*
- }/
- from ./pure-ruby/general/basic_test.rb:2
- from pure-ruby/alltests.rb:7:in `load'
- from pure-ruby/alltests.rb:7
- from pure-ruby/alltests.rb:5:in `each'
- from pure-ruby/alltests.rb:5
- make: *** [test-pure] Error 1
- Victors-MacBook-Air:test victorng$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement