jruby woes

Main.java:128:in `run’: java.lang.NoClassDefFoundError: org/jruby/exceptions/ThreadKill
from Main.java:97:in `main’

meant “you upgraded your jruby version while a program was using the jar, so it changed from underneath it” (don’t do that).

ruby build woe

gcc.exe: ../.././ext/bigdecimal/bigdecimal.def: No such file or directory
make[1]: *** [../../.ext/i386-mingw32/bigdecimal.so] Error 1
make[1]: Leaving directory `/c/dev/ruby/downloads/ruby_trunk/ext/bigdecimal’
make: *** [mkmain.sh] Error 1

meant “you need to run configure again, it appears, to get new makefiles”

maven woe

error: error reading /root/.m2/repository/org/apache/xbean/xbean-spring/2.7/xbean-spring-2.7.jar; error in opening zip file

meant “that zip file was corrupted–a 404 file — delete it then run maven again” (the jar file was corrupt–boo on maven).

ruby multi input methods

I’ve contemplated in the past creating a little helper for ruby that allows the following:


class A
 def go_from_x_to_y(x, y)
 end
 multi_input :go_from_x_to_y
end

A.new.go_from(23).to(78)
or possibly
A.new.go_from_x(23).to_y(78)

Anybody think this would be interesting? Any takers thinking that this would be useful?
Just comment here and I’ll code it up.
Thanks.
-rp

rails woe

C:\dev\ruby\ties>ruby script\console
script/console:3:in `require’: C:/dev/ruby/ties/vendor/rails/railties/lib/commands/console.rb:19: syntax error, unexpected ‘:’, expecting keyword_then or ‘,’ or ‘;’ or ‘\n’
(SyntaxError)
when “p”: “production”
^
C:/dev/ruby/ties/vendor/rails/railties/lib/commands/console.rb:20: syntax error, unexpected keyword_when, expecting $end
when “d”: “development”
^
from script/console:3:in `<main>’
C:\dev\ruby\ties>pik 186

C:\dev\ruby\ties>ruby script\consolescript/console:3:in `require’: C:/dev/ruby/ties/vendor/rails/railties/lib/commands/console.rb:19: syntax error, unexpected ‘:’, expecting keyword_then or ‘,’ or ‘;’ or ‘\n’(SyntaxError)  when “p”: “production”           ^C:/dev/ruby/ties/vendor/rails/railties/lib/commands/console.rb:20: syntax error, unexpected keyword_when, expecting $end  when “d”: “development”      ^        from script/console:3:in `<main>’

meant “you wanted to run this with 1.8.6, not 1.9.x!”
C:\dev\ruby\ties>pik 186

ack woe

C:\dev\ruby\downloads\fcgi-2.4.0>ack os_unix –make
Undefined subroutine &Getopt::Long::Parser::Configure called at /usr/lib/perl5/5.6/msys/Getopt/Long.pm line 184.

meant “you need to use a non msys version of perl, like a cygwin one or a better msys one or something”