# Ruby, HPUX and rubygems

**URL:** <https://www.ruby-forum.com/t/ruby-hpux-and-rubygems/137382>\
**Category:** Ruby\
**Created:** [May 12, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/ruby-hpux-and-rubygems/137382 "2008-05-12T18:11:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephen\_OSD](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Post date:** [May 12, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/ruby-hpux-and-rubygems/137382/1 "2008-05-12T18:11:20Z")

</div>

So I have the less than enjoyable of installing Ruby on a PA-RISC HPUX  
box - HPUX never makes it easy!

I managed to get Ruby 1.8.4 installed from the HPUX ports site, but in  
the installation guide it says they disabled pthreads.

Now when I attempt to install rubygems, its complains about not being  
able to require ‘thread’ as part of its installation.

Does anyone know if there is a way to get Rubygems installed without  
pthread support, or does anyone have a recpie to install Ruby 1.8.4 or  
newer on HPUX with pthreads enabled?

---

<div class="post-metadata">

**Author:** ![stephen\_OSD](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Post date:** [May 12, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/ruby-hpux-and-rubygems/137382/2 "2008-05-12T18:43:52Z")

</div>

stephen,  
I’ve never tried it on HPUX, but the stock 1.8.6 source  
from [ruby-lang.org](http://ruby-lang.org) compiled on irix 6.5 without any intervention  
(admittedly, it’s got a gnu toolchain installed: autoconf, gnu make  
and gcc 3.x installed). It’s a 32 bit install on a 64 bit box, but  
considering it required no intervention at all, I’m not complaining,  
and I can wait to tweak it.

Having just written that I decided to install gems: it installs fine,  
but complains about the socket library not being there. Humm, guess I  
do need to tweak it.

–Kyle

On Mon, May 12, 2008 at 11:10 AM, stephen O’D

---

<div class="post-metadata">

**Author:** ![stephen\_OSD](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@stephen\_OSD](https://www.ruby-forum.com/u/stephen_OSD)\
**Post date:** [May 13, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/ruby-hpux-and-rubygems/137382/3 "2008-05-13T18:16:04Z")

</div>

On May 12, 5:42 pm, Kyle S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> do need to tweak it.
> 
> > the installation guide it says they disabled pthreads.
> 
> > Now when I attempt to install rubygems, its complains about not being  
> > able to require ‘thread’ as part of its installation.
> 
> > Does anyone know if there is a way to get Rubygems installed without  
> > pthread support, or does anyone have a recpie to install Ruby 1.8.4 or  
> > newer on HPUX with pthreads enabled?

I have battled with it a long way, and it gets really far into  
compiling before complaining about unresolved symbols around zlib I  
think.

When I build with --enable-pthread it doesn’t get very far at all -  
the build seems to go into some from of infinite loop until it gets  
killed for using too much memory.

Pretty close to giving up on this one - I reckon its going to be  
easier to track down a Linux or Solaris box as I just don’t have the  
HPUX skills to work it out ☹
