From: Rudi Cilibrasi Date: 2007-10-04T20:22:03+09:00 Subject: Re: problem with OpenMP in Ruby extension Hi Ara, Good to hear from you and I am glad to hear you are still thinking about dynamic linking issues. Unfortunately I tried your suggestion and so far I cannot detect any measurable difference in behavior. Same error messages in both cases, with and without the #have_library(gomp...) line. Yes, it has taken years but I have rewritten complearn to use gobject and OpenMP and I must say the results are exciting. Recently, somebody sent in a patch to improve the complearn tree search from O(n^5) to O(n^3) and this really made my week last week, speeding up tree search by thousands of times. I am very excited to start applying the new technology but this whole ruby extension thing openmp problem has rained on my parade! nice to hear from you again, -r. On 10/3/07, ara.t.howard wrote: > > On Oct 3, 2007, at 3:53 PM, Rudi Cilibrasi wrote: > > I adjusted the extconf.rb to include this line: > > > > have_library('gomp', 'main') > > > > And rebuilding works but running a simple test program (just trying > > to require > > complearn) fails in a different way than before: > > > > this sounds like it gets the link right (LD_LIBRARY_PATH) but fails > at runtime. try setting LD_RUN_PATH to the location of the gomp lib > *before* compiling > > for example > > export LD_RUN_PATH=/full/path/to/directory/with/gomp/lib > ruby extconf.rb && make && sudo make install > > just a hunch... > > cheers. > > ps. long time time no hear! > > a @ http://drawohara.com/ > -- > we can deny everything, except that we have the possibility of being > better. simply reflect on that. > h.h. the 14th dalai lama > > > > > -- "We can try to do it by breaking free of the mental prison of separation and exclusion and see the world in its interconnectedness and non-separability, allowing new alternatives to emerge." -- after Vandana Shiva