Putting this in the ruby-talk ML just to have it searchable in case
run into this problem.
On some redhat based distros, if you compile ruby 1.9.1 from source and
install it as /usr/bin/ruby and have the “prelink” rpm installed, the
binary can become corrupted by prelink. When you try to run the
after prelink has run against it, you get a c stack trace with this
ruby: [BUG] iseq_compile_each: unknown node: NODE_METHOD
The solution is to either uninstall the prelink package or add the
line to /etc/prelink.conf
This tells prelink to not touch the ruby interpreter.
This has been killing us at work for the last couple of days. We are
running CentOS and compiling ruby 1.9.1 from source.