[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby/Oracle9/HPUX

Jamis Buck

10/9/2004 2:13:00 AM

I searched the archives and only encountered a brief thread started by
Alexey (ruby-talk:107425)...and it had no resolution...so...

We use HPUX at work, with Oracle 9i. The Oracle 9i bindings listed on
the RAA compile fine, but when they are used, Ruby dies saying that
"dlopen() can't load libraries with Thread Local Storage" (or something
to that effect). Well, I know the reason--the libclntsh Oracle library
links libpthreads, and you have to have compiled Ruby with pthread
support to load such beasts.

Well, I can't compile Ruby on HPUX with pthreads enabled, as Alexey
discovered. When I tried, the miniruby interpreter died inside the
Shellwords module. I managed to tweak some compiler settings and got it
to die somewhere else, inside ftools, as well. In the first case, it
died on a 'break'. In the second, on a 'next'. The gdb was virtually
identical to the one posted by Alexey.

So, I'm stuck. Has anyone managed to built Ruby on HPUX with
--enable-pthreads?

If no such solution can be found, I'll probably try to do something with
an intermediate daemon that routes requests between the Oracle client
and Ruby. Maybe even a web-service based solution. Any such solution
would incur some pretty severe performance hits, though, so I'd rather
not go that route...

- Jamis

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck...


1 Answer

Alexey Verkhovsky

10/9/2004 8:39:00 AM

0

On Sat, 2004-10-09 at 05:13, Jamis Buck wrote:
> So, I'm stuck.

And so am I, with exactly the same problem.

Result: in the office I use Java for half the tasks that I'd rather do
with Ruby. :(

Alex