Forum: Ruby Beware prelink and compiling ruby from source

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7cee9dd780723c5fa0f06a242338e57c?d=identicon&s=25 Douglas Seifert (Guest)
on 2010-03-12 02:07
(Received via mailing list)
All,

Putting this in the ruby-talk ML just to have it searchable in case
others
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
ruby
binary can become corrupted by prelink.  When you try to run the
interpreter
after prelink has run against it, you get a c stack trace with this
error
message:

ruby: [BUG] iseq_compile_each: unknown node: NODE_METHOD

The solution is to either uninstall the prelink package or add the
following
line to /etc/prelink.conf

-b /usr/bin/ruby

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.

Saludos,
Doug Seifert
This topic is locked and can not be replied to.