rspec woe

undefined method `be’ for #<Spec::Matchers::PositiveOperatorMatcher:0x8368aac>
spec.parse_fast.rb:9:in `block (2 levels) in <main>’

undefined method `be’ for #<Spec::Matchers::PositiveOperatorMatcher:0x8368aac>

spec.parse_fast.rb:9:in `block (2 levels) in <main>’

meant “you need .should.be_an instead of should.be”

easier regexes with ruby

Sometimes you just wish regexes were easier.

Here’s some tricks, with ruby.

1) combine regexes

This works with 1.8 or 1.9

float = /[\d]+\.[\d]+/

complex = /[+-]#{float}\.#{float}/

2) use rubuluar to sanity check your regexes http://rubular.com/

This is an excellent tool for testing your regexes–brings sanity to building them.

3) used named regexes (1.9 only)

I haven’t actually done this–it is actually similar to just doing them as separate, inline regexes–above

http://pragdave.blogs.pragprog.com/pragdave/2008/10/fun-with-ruby-19-regular-expressions.html

java install woe

[27:1708][rdp@ilab1:~/dev/downloads]$ ./java_ee_sdk-5_08-jdk-6u17-linux.bin\?AuthParam\=1259366955_bb14c7117853af4a80da3c741b1b87de\&TicketId\=nod0AlERQ35
wn+MtlkOcUZ2dcg\=\=\&GroupName\=CDS\&FilePath\=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin\&File\=java_ee_sdk-5_08-jdk-6u17-linux.bin
Checking available disk space…
Checking Java(TM) 2 Runtime Environment…
Extracting Java(TM) 2 Runtime Environment files…
Extracting installation files…
*** glibc detected *** ./java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin: free(): invalid next size (fast): 0×08073130 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7ca6a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0×90)[0xb7caa4f0]
./java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin(zipFreeEntry+0x5a)[0x8051523]
./java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin(UnzipFiles+0×200)[0x804fe1a]
./java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin(main+0xa3e)[0x804e4c2]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7c51450]
./java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin(dlopen+0×41)[0x804c9f5]
======= Memory map: ========
08048000-08061000 r-xp 00000000 00:16 143321109  /home/rdp/dev/downloads/java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin
08061000-08063000 rw-p 00018000 00:16 143321109  /home/rdp/dev/downloads/java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin
08063000-080b5000 rw-p 08063000 00:00 0          [heap]
b7a00000-b7a21000 rw-p b7a00000 00:00 0
b7a21000-b7b00000 —p b7a21000 00:00 0
b7b19000-b7b1a000 rw-p b7b19000 00:00 0
b7b1a000-b7b59000 r–p 00000000 08:01 3236783    /usr/lib/locale/en_US.utf8/LC_CTYPE
b7b59000-b7c3a000 r–p 00000000 08:01 3236782    /usr/lib/locale/en_US.utf8/LC_COLLATE
b7c3a000-b7c3b000 rw-p b7c3a000 00:00 0
b7c3b000-b7d84000 r-xp 00000000 08:01 4335384    /lib/tls/i686/cmov/libc-2.7.so
b7d84000-b7d85000 r–p 00149000 08:01 4335384    /lib/tls/i686/cmov/libc-2.7.so
b7d85000-b7d87000 rw-p 0014a000 08:01 4335384    /lib/tls/i686/cmov/libc-2.7.so
b7d87000-b7d8b000 rw-p b7d87000 00:00 0
b7d8b000-b7d95000 r-xp 00000000 08:01 4309182    /lib/libgcc_s.so.1
b7d95000-b7d96000 rw-p 0000a000 08:01 4309182    /lib/libgcc_s.so.1
b7d96000-b7db9000 r-xp 00000000 08:01 4335388    /lib/tls/i686/cmov/libm-2.7.so
b7db9000-b7dbb000 rw-p 00023000 08:01 4335388    /lib/tls/i686/cmov/libm-2.7.so
b7dbb000-b7e6b000 r-xp 00000000 08:01 3206218    /usr/lib/libstdc++.so.5.0.7
b7e6b000-b7e70000 rw-p 000af000 08:01 3206218    /usr/lib/libstdc++.so.5.0.7
b7e70000-b7e75000 rw-p b7e70000 00:00 0
b7e75000-b7e84000 r-xp 00000000 08:01 4335399    /lib/tls/i686/cmov/libresolv-2.7.so
b7e84000-b7e86000 rw-p 0000f000 08:01 4335399    /lib/tls/i686/cmov/libresolv-2.7.so
b7e86000-b7e88000 rw-p b7e86000 00:00 0
b7e88000-b7e91000 r-xp 00000000 08:01 4335386    /lib/tls/i686/cmov/libcrypt-2.7.so
b7e91000-b7e93000 rw-p 00008000 08:01 4335386    /lib/tls/i686/cmov/libcrypt-2.7.so
b7e93000-b7eba000 rw-p b7e93000 00:00 0
b7eba000-b7ebc000 r-xp 00000000 08:01 4335387    /lib/tls/i686/cmov/libdl-2.7.so
b7ebc000-b7ebe000 rw-p 00001000 08:01 4335387    /lib/tls/i686/cmov/libdl-2.7.so
b7ebe000-b7ebf000 rw-p b7ebe000 00:00 0
b7ebf000-b7ed3000 r-xp 00000000 08:01 4335398    /lib/tls/i686/cmov/libpthread-2.7.so
b7ed3000-b7ed5000 rw-p 00013000 08:01 4335398    /lib/tls/i686/cmov/libpthread-2.7.so
b7ed5000-b7ed7000 rw-p b7ed5000 00:00 0
b7ed8000-b7ed9000 r–p 00000000 08:01 3236732    /usr/lib/locale/en_US.utf8/LC_NUMERIC
b7ed9000-b7eda000 r–p 00000000 08:01 3236538    /usr/lib/locale/en_US.utf8/LC_TIME
b7eda000-b7edb000 r–p 00000000 08:01 3236541    /usr/lib/locale/en_US.utf8/LC_MONETARY
b7edb000-b7edc000 r–p 00000000 08:01 3244040    /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b7edc000-b7edd000 r–p 00000000 08:01 3236811    /usr/lib/locale/en_US.utf8/LC_PAPER
b7edd000-b7ede000 r–p 00000000 08:01 3236809    /usr/lib/locale/en_US.utf8/LC_NAME
b7ede000-b7edf000 r–p 00000000 08:01 3236594    /usr/lib/locale/en_US.utf8/LC_ADDRESS
b7edf000-b7ee0000 r–p 00000000 08:01 3236595    /usr/lib/locale/en_US.utf8/LC_TELEPHONE
b7ee0000-b7ee1000 r–p 00000000 08:01 3236596    /usr/lib/locale/en_US.utf8/LC_MEASUREMENT
b7ee1000-b7ee8000 r–s 00000000 08:01 1867777    /usr/lib/gconv/gconv-modules.cache
b7ee8000-b7ee9000 r–p 00000000 08:01 3236597    /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION
b7ee9000-b7eeb000 rw-p b7ee9000 00:00 0
b7eeb000-b7eec000 r-xp b7eeb000 00:00 0          [vdso]
b7eec000-b7f06000 r-xp 00000000 08:01 4309009    /lib/ld-2.7.so
b7f06000-b7f08000 rw-p 00019000 08:01 4309009    /lib/ld-2.7.so
bfab7000-bfacc000 rw-p bffeb000 00:00 0          [stack]
Deleting temporary files…

[27:1708][rdp@ilab1:~/dev/downloads]$ ./java_ee_sdk-5_08-jdk-6u17-linux.bin\?AuthParam\=1259366955_bb14c7117853af4a80da3c741b1b87de\&TicketId\=nod0AlERQ35

wn+MtlkOcUZ2dcg\=\=\&GroupName\=CDS\&FilePath\=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin\&File\=java_ee_sdk-5_08-jdk-6u17-linux.bin

Checking available disk space…

Checking Java(TM) 2 Runtime Environment…

Extracting Java(TM) 2 Runtime Environment files…

Extracting installation files…

*** glibc detected *** ./java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin: free(): invalid next size (fast): 0×08073130 ***

======= Backtrace: =========

/lib/tls/i686/cmov/libc.so.6[0xb7ca6a85]

/lib/tls/i686/cmov/libc.so.6(cfree+0×90)[0xb7caa4f0]

./java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin(zipFreeEntry+0x5a)[0x8051523]

./java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin(UnzipFiles+0×200)[0x804fe1a]

./java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin(main+0xa3e)[0x804e4c2]

/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7c51450]

./java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin(dlopen+0×41)[0x804c9f5]

======= Memory map: ========

08048000-08061000 r-xp 00000000 00:16 143321109  /home/rdp/dev/downloads/java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin

08061000-08063000 rw-p 00018000 00:16 143321109  /home/rdp/dev/downloads/java_ee_sdk-5_08-jdk-6u17-linux.bin?AuthParam=1259366955_bb14c7117853af4a80da3c741b1b87de&TicketId=nod0AlERQ35wn+MtlkOcUZ2dcg==&GroupName=CDS&FilePath=%2FESD8%2FJavaee%2Fjava_ee_sdk-5_08-jdk-6u17-linux.bin&File=java_ee_sdk-5_08-jdk-6u17-linux.bin

08063000-080b5000 rw-p 08063000 00:00 0          [heap]

b7a00000-b7a21000 rw-p b7a00000 00:00 0

b7a21000-b7b00000 —p b7a21000 00:00 0

b7b19000-b7b1a000 rw-p b7b19000 00:00 0

b7b1a000-b7b59000 r–p 00000000 08:01 3236783    /usr/lib/locale/en_US.utf8/LC_CTYPE

b7b59000-b7c3a000 r–p 00000000 08:01 3236782    /usr/lib/locale/en_US.utf8/LC_COLLATE

b7c3a000-b7c3b000 rw-p b7c3a000 00:00 0

b7c3b000-b7d84000 r-xp 00000000 08:01 4335384    /lib/tls/i686/cmov/libc-2.7.so

b7d84000-b7d85000 r–p 00149000 08:01 4335384    /lib/tls/i686/cmov/libc-2.7.so

b7d85000-b7d87000 rw-p 0014a000 08:01 4335384    /lib/tls/i686/cmov/libc-2.7.so

b7d87000-b7d8b000 rw-p b7d87000 00:00 0

b7d8b000-b7d95000 r-xp 00000000 08:01 4309182    /lib/libgcc_s.so.1

b7d95000-b7d96000 rw-p 0000a000 08:01 4309182    /lib/libgcc_s.so.1

b7d96000-b7db9000 r-xp 00000000 08:01 4335388    /lib/tls/i686/cmov/libm-2.7.so

b7db9000-b7dbb000 rw-p 00023000 08:01 4335388    /lib/tls/i686/cmov/libm-2.7.so

b7dbb000-b7e6b000 r-xp 00000000 08:01 3206218    /usr/lib/libstdc++.so.5.0.7

b7e6b000-b7e70000 rw-p 000af000 08:01 3206218    /usr/lib/libstdc++.so.5.0.7

b7e70000-b7e75000 rw-p b7e70000 00:00 0

b7e75000-b7e84000 r-xp 00000000 08:01 4335399    /lib/tls/i686/cmov/libresolv-2.7.so

b7e84000-b7e86000 rw-p 0000f000 08:01 4335399    /lib/tls/i686/cmov/libresolv-2.7.so

b7e86000-b7e88000 rw-p b7e86000 00:00 0

b7e88000-b7e91000 r-xp 00000000 08:01 4335386    /lib/tls/i686/cmov/libcrypt-2.7.so

b7e91000-b7e93000 rw-p 00008000 08:01 4335386    /lib/tls/i686/cmov/libcrypt-2.7.so

b7e93000-b7eba000 rw-p b7e93000 00:00 0

b7eba000-b7ebc000 r-xp 00000000 08:01 4335387    /lib/tls/i686/cmov/libdl-2.7.so

b7ebc000-b7ebe000 rw-p 00001000 08:01 4335387    /lib/tls/i686/cmov/libdl-2.7.so

b7ebe000-b7ebf000 rw-p b7ebe000 00:00 0

b7ebf000-b7ed3000 r-xp 00000000 08:01 4335398    /lib/tls/i686/cmov/libpthread-2.7.so

b7ed3000-b7ed5000 rw-p 00013000 08:01 4335398    /lib/tls/i686/cmov/libpthread-2.7.so

b7ed5000-b7ed7000 rw-p b7ed5000 00:00 0

b7ed8000-b7ed9000 r–p 00000000 08:01 3236732    /usr/lib/locale/en_US.utf8/LC_NUMERIC

b7ed9000-b7eda000 r–p 00000000 08:01 3236538    /usr/lib/locale/en_US.utf8/LC_TIME

b7eda000-b7edb000 r–p 00000000 08:01 3236541    /usr/lib/locale/en_US.utf8/LC_MONETARY

b7edb000-b7edc000 r–p 00000000 08:01 3244040    /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES

b7edc000-b7edd000 r–p 00000000 08:01 3236811    /usr/lib/locale/en_US.utf8/LC_PAPER

b7edd000-b7ede000 r–p 00000000 08:01 3236809    /usr/lib/locale/en_US.utf8/LC_NAME

b7ede000-b7edf000 r–p 00000000 08:01 3236594    /usr/lib/locale/en_US.utf8/LC_ADDRESS

b7edf000-b7ee0000 r–p 00000000 08:01 3236595    /usr/lib/locale/en_US.utf8/LC_TELEPHONE

b7ee0000-b7ee1000 r–p 00000000 08:01 3236596    /usr/lib/locale/en_US.utf8/LC_MEASUREMENT

b7ee1000-b7ee8000 r–s 00000000 08:01 1867777    /usr/lib/gconv/gconv-modules.cache

b7ee8000-b7ee9000 r–p 00000000 08:01 3236597    /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION

b7ee9000-b7eeb000 rw-p b7ee9000 00:00 0

b7eeb000-b7eec000 r-xp b7eeb000 00:00 0          [vdso]

b7eec000-b7f06000 r-xp 00000000 08:01 4309009    /lib/ld-2.7.so

b7f06000-b7f08000 rw-p 00019000 08:01 4309009    /lib/ld-2.7.so

bfab7000-bfacc000 rw-p bffeb000 00:00 0          [stack]

Deleting temporary files…

meant “download the file again and try not to use such a long path–possibly even download it in a browser and then scp it over so it won’t be messed”

jruby has to be in your path to work in linux

[27:1657][rdp@ilab1:~/go/src]$ ~/installs/jruby-1.4.0/bin/jgem install backtracer
/usr/bin/env: jruby: No such file or directory
[27:1657][rdp@ilab1:~/go/src]$ export PATH=$PATH:~/installs/jruby-1.4.0/bin

[27:1657][rdp@ilab1:~/go/src]$ ~/installs/jruby-1.4.0/bin/jgem install backtracer

/usr/bin/env: jruby: No such file or directory

[27:1657][rdp@ilab1:~/go/src]$ export PATH=$PATH:~/installs/jruby-1.4.0/bin

ruby gnuplot example

thought I’d write this one down for posterity’s sake…

Gnuplot.open do |gp|
Gnuplot::Plot.new( gp ) do |plot|
#plot.title  ”Example” # we don’t need no shtinkin titles
plot.ylabel ylabel if ylabel
plot.xlabel xlabel if xlabel
plot.xrange “[0:#{ xs.last + 1}]; set logscale y”
#    plot.yrange “[0:10]” auto calculated
# is there an xmin?
plot.terminal ‘pdf’
plot.output name
#plot.logscale ‘y’

Gnuplot.open do |gp|

Gnuplot::Plot.new( gp ) do |plot|

#plot.title  ”Example” # we don’t need no shtinkin titles

plot.ylabel ylabel if ylabel

plot.xlabel xlabel if xlabel

plot.xrange “[0:#{ xs.last + 1}]; set logscale y”

#    plot.yrange “[0:10]” auto calculated

# is there an xmin?

plot.terminal ‘pdf’

plot.output name

#plot.logscale ‘y’ # this line is the one I was proud of

gem packing woe

make
gcc -shared -s -o ruby_prof.so ruby_prof.o -L. -Lc:/ruby18/lib -L.   -Wl,–enable-auto-image-base,–enable-auto-import,–export-all   -lmsvcrt-ruby18  -lshell32 -lws2_32
ruby_prof.o: In function `prof_add_call_info’:
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:501: undefined reference to `ruby_xrealloc2′
ruby_prof.o: In function `get_method’:
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:899: undefined reference to `rb_sourcefile’
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:900: undefined reference to `rb_sourceline’
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:480: undefined reference to `ruby_xmalloc2′
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:551: undefined reference to `ruby_xmalloc2′
ruby_prof.o: In function `switch_thread’:
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:176: undefined reference to `ruby_xmalloc2′
ruby_prof.o: In function `prof_event_hook’:
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:1043: undefined reference to `rb_frame_method_id_and_class’
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:1178: undefined reference to `rb_sourceline’
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:1114: undefined reference to `rb_sourceline’
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:198: undefined reference to `ruby_xrealloc2′
ruby_prof.o: In function `prof_method_source_file’:
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:625: undefined reference to `rb_str_new_cstr’
collect2: ld returned 1 exit status
make: *** [ruby_prof.so] Error 1
make
gcc -shared -s -o ruby_prof.so ruby_prof.o -L. -Lc:/ruby18/lib -L.   -Wl,–enable-auto-image-base,–enable-auto-import,–export-all   -lmsvcrt-ruby18  -lshell32 -lws2_32
ruby_prof.o: In function `prof_add_call_info’:
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:501: undefined reference to `ruby_xrealloc2′
ruby_prof.o: In function `get_method’:
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:899: undefined reference to `rb_sourcefile’
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:900: undefined reference to `rb_sourceline’
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:480: undefined reference to `ruby_xmalloc2′
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:551: undefined reference to `ruby_xmalloc2′
ruby_prof.o: In function `switch_thread’:
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:176: undefined reference to `ruby_xmalloc2′
ruby_prof.o: In function `prof_event_hook’:
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:1043: undefined reference to `rb_frame_method_id_and_class’
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:1178: undefined reference to `rb_sourceline’
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:1114: undefined reference to `rb_sourceline’
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:198: undefined reference to `ruby_xrealloc2′
ruby_prof.o: In function `prof_method_source_file’:
C:/dev/ruby/ruby-prof/ext/ruby_prof.c:625: undefined reference to `rb_str_new_cstr’
collect2: ld returned 1 exit status
make: *** [ruby_prof.so] Error 1
meant the same thing as my note on
“you packed ruby_prof.so by accident within the gem itself” (probably gem creator error)

paranoia github.com woe

debug1: read PEM private key done: type RSA
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Offering public key: /c/Documents and Settings/packrd/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /c/Documents and Settings/packrd/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive).

debug1: read PEM private key done: type RSA

debug2: we sent a publickey packet, wait for reply

debug1: Authentications that can continue: publickey,password,keyboard-interactive

debug1: Offering public key: /c/Documents and Settings/packrd/.ssh/id_rsa

debug2: we sent a publickey packet, wait for reply

debug1: Authentications that can continue: publickey,password,keyboard-interactive

debug1: Trying private key: /c/Documents and Settings/packrd/.ssh/id_dsa

debug2: we did not send a packet, disable method

debug1: No more authentication methods to try.

Permission denied (publickey,password,keyboard-interactive).

and

C:\dev\ruby\old\sane_ruby>git pom

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

Someone could be eavesdropping on you right now (man-in-the-middle attack)!

It is also possible that the RSA host key has just been changed.

The fingerprint for the RSA key sent by the remote host is

24:88:7d:70:2e:48:14:de:45:bc:34:e6:7c:1a:96:d0.

Please contact your system administrator.

Add correct host key in /c/Documents and Settings/packrd/.ssh/known_hosts to get rid of this message.

Offending key in /c/Documents and Settings/packrd/.ssh/known_hosts:1342

Password authentication is disabled to avoid man-in-the-middle attacks.

Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.

Permission denied (publickey,password,keyboard-interactive).

fatal: The remote end hung up unexpectedly

meant “you changed github.com’s IP address in your etc/hosts file–change it back!”

ruby 1.9.1 mingw with tk (activetcl)

It is possible

download -p243 [or what not]

make sure active tcl is in the path

do a normal ‘./configure && make’ from within msys bash

make will fail when it tries to compile tk

go into ext/tk

edit Makefile, change the roots from /Tcl [or what have you] to C:/Tcl

run make again from within ext/tk

now re-run make && make install from the root.  You should now have a healthy 1.9 distro with Tk support.