From: Shugo Maeda Date: 2011-08-10T16:30:04+09:00 Subject: [ruby-core:38888] Re: Init_prelude gone in 1.9.3 Hi, 2011/8/10 Christoph Kappel : > I tested 1.9.3 today and noticed that Init_prelude is gone, so far it > was the only way (I know) to init the gem path when embedding the ruby > interpreter. > > Without Init_prelude, what is the intended way to that? Can someone > point me to docs that I am probably missing about that? In Ruby 1.9.3 the gcc option -fvisibility=hidden is used, so not only Init_prelude() but other many symbols are hidden in 1.9.3. This change was done at r28709, but I haven't seen discussion about it. I asked the same question about Init_prelude() to nobu yesterday. He said that ruby_options(2, {"ruby", "-e;"}) can be used instead of Init_prelude() as a workaround. -- Shugo Maeda