# Oracle on HP-UX: was Ruby on HP-UX

**URL:** <https://www.ruby-forum.com/t/oracle-on-hp-ux-was-ruby-on-hp-ux/57432>\
**Category:** Ruby\
**Created:** [April 10, 2006, 10:33pm UTC](https://www.ruby-forum.com/t/oracle-on-hp-ux-was-ruby-on-hp-ux/57432 "2006-04-10T22:33:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Nordloh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a698b9/32.png) [@Tim\_Nordloh](https://www.ruby-forum.com/u/Tim_Nordloh)\
**Post date:** [April 10, 2006, 10:33pm UTC](https://www.ruby-forum.com/t/oracle-on-hp-ux-was-ruby-on-hp-ux/57432/1 "2006-04-10T22:33:18Z")

</div>

Assuming you are an Oracle user, here’s what I had to do to get the  
Oracle  
driver ‘working’.

Obvious steps:

1. Install dbd
2. install Oracle DBI

unobvious step,  
When I ran the test cases, I got this error:  
Can’t dlopen() a library containing Thread Local Storage:  
/usr/lib/libpthread.1 - …/oci8lib.sl (LoadError)" – from oci8.rb:7

Props to this guy, who had the solution:  
[http://www.alfonsomartone.itb.it/xvpucf.html](http://www.alfonsomartone.itb.it/xvpucf.html)

I had to set this variable :  
export LD\_PRELOAD=/usr/local/lib/ruby/site\_ruby/1.8/hppa2.0w-hpux11.11  
/oci8lib.sl

And the majority of the tests then passed.
