Unix chroot + script command

Hi all,
I have problems using the script command in a chroot enviroment.
I have copied all the neccesary libraries into the jail and I have also created the ptys devices.
When I tried to execute de command I get

openpty failed
Terminated

Any suggestions?

Thanks in Advance

Ana