Ruby/Oracle9/HPUX

J

Jamis Buck

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
 
A

Alexey Verkhovsky

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top