Require 'pty' not working on Solaris

just trying our jruby-1.6.1 on a Solaris (10) system. I was looking at
the pty library but get the following error

$jruby -vrpty -e ‘p 0’
jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (Java HotSpot™
Client VM
1.6.0_23) [SunOS-x86-java]
FFI::NotFoundError: Function ‘forkpty’ not found in []
attach_function at
each at org/jruby/
attach_function at
LibUtil at
PTY at
(root) at

Some ‘googling’ seems to indicate that forkpty is not something that
exists on
Solaris but:

There is an open issue against the pty library
( but the note in that JIRA

‘The error only affects the jruby-complete-X.jar version; in the binary
.tar.gz or .zip versions the ‘pty’ library works normally’

So I must be missing something in my setup. Any ideas on what I should
try or
look for? I am not a developer and don’t exactly know where to start


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs