Advertisement
crankycoder

Untitled

Oct 12th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. $ jruby --version
  2. 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]
  3.  
  4. I think I've uninstalled the jls-grok gem, I've verified using this:
  5.  
  6. Victors-MacBook-Air:ruby victorng$ jgem list
  7.  
  8. *** LOCAL GEMS ***
  9.  
  10. bert (1.1.2 java)
  11. brick (0.0.3)
  12. bundle (0.0.1)
  13. bundler (1.0.21)
  14. ffi-rzmq (0.8.2)
  15. git (1.2.5)
  16. jeweler (1.6.2)
  17. jruby-httpclient (1.0.0 java)
  18. json (1.6.1 java, 1.5.0 java)
  19. json-jruby (1.5.0 java)
  20. mime-types (1.16)
  21. rake (0.9.2, 0.8.7)
  22. rdoc (3.6.1)
  23. rest-client (1.6.7)
  24. slop (2.1.0)
  25. sources (0.0.1)
  26. Victors-MacBook-Air:ruby victorng$
  27.  
  28. jirb says I have no grok installed either:
  29.  
  30. $ jirb -rubygems
  31. irb(main):001:0> require 'grok-pure'
  32. LoadError: no such file to load -- grok-pure
  33. ..bunch of stuff deleted here...
  34.  
  35. Ok, so now I go to install jls-grok from source:
  36.  
  37. Victors-MacBook-Air:ruby victorng$ jrake
  38. WARNING: no rubyforge_project specified
  39. Successfully built RubyGem
  40. Name: jls-grok
  41. Version: 0.9.0
  42. File: jls-grok-0.9.0.gem
  43. Victors-MacBook-Air:ruby victorng$
  44.  
  45. Install the gem:
  46.  
  47. Victors-MacBook-Air:ruby victorng$ jgem install ./jls-grok-0.9.0.gem
  48. Successfully installed jls-grok-0.9.0
  49. 1 gem installed
  50. Victors-MacBook-Air:ruby victorng$
  51.  
  52. Verify the gem installed properly:
  53.  
  54. Victors-MacBook-Air:ruby victorng$ jgem list
  55.  
  56. *** LOCAL GEMS ***
  57.  
  58. bert (1.1.2 java)
  59. brick (0.0.3)
  60. bundle (0.0.1)
  61. bundler (1.0.21)
  62. ffi-rzmq (0.8.2)
  63. git (1.2.5)
  64. jeweler (1.6.2)
  65. jls-grok (0.9.0)
  66. jruby-httpclient (1.0.0 java)
  67. json (1.6.1 java, 1.5.0 java)
  68. json-jruby (1.5.0 java)
  69. mime-types (1.16)
  70. rake (0.9.2, 0.8.7)
  71. rdoc (3.6.1)
  72. rest-client (1.6.7)
  73. slop (2.1.0)
  74. sources (0.0.1)
  75. Victors-MacBook-Air:ruby victorng$
  76.  
  77.  
  78. Run tests:
  79.  
  80. Victors-MacBook-Air:test victorng$ make test-pure
  81. JRUBY_OPTS=--1.9 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$PWD/../../" RUBYLIB="$PWD/../lib" ruby pure-ruby/alltests.rb
  82. Loading tests: pure-ruby/general/basic_test.rb
  83. /Users/victorng/dev/grok/ruby/test/../lib/grok-pure.rb:22: warning: regexp has invalid interval
  84. ./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)
  85. (?<name> # match the pattern name
  86. (?<pattern>[A-z0-9]+)
  87. (?::(?<subname>[A-z0-9_:]+))?
  88. )
  89. (?:=(?<definition>
  90. (?:
  91. (?:[^{}\\]+|\\.+)+
  92. |
  93. (?<curly>\{(?:(?>[^{}]+|(?>\\[{}])+)|(\g<curly>))*\})+
  94. )+
  95. ))?
  96. [^}]*
  97. }/
  98. from ./pure-ruby/general/basic_test.rb:2
  99. from pure-ruby/alltests.rb:7:in `load'
  100. from pure-ruby/alltests.rb:7
  101. from pure-ruby/alltests.rb:5:in `each'
  102. from pure-ruby/alltests.rb:5
  103. make: *** [test-pure] Error 1
  104. Victors-MacBook-Air:test victorng$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement