Ask Your Question
0

ttyrec runs Out of pty's

asked Sep 29 '11

satyaakam gravatar image satyaakam
53 2 7
http://satyaakam.net/

ttyrec-1.0.8-2.1.i386 is installed on Fedora 15 , when i run the command

$ttyrec Out of pty's Terminated

3 Answers

Sort by ยป oldest newest most voted
0
satyaakam has selected this answer as correct

answered Sep 29 '11

shanks gravatar image shanks flag of India
483 2 9 28
http://gsr-linux.blogspot...

Ok, this looks like a bug.

So what you can do is:

  1. remove the installed ttyrec.
  2. wget and install the src rpm from https://bugzilla.redhat.com/show_bug.cgi?id=741706
  3. go to the its source directory and untar it.

    tar -zxvf ttyrec-1.0.8.tar.gz

  4. patch the source with the included "ttyrec-Makefile.patch", then it works for UNIX98 pty standard.

    ttyrec-1.0.8]# patch -p1 < ../ttyrec-Makefile.patch1.2.3.3

  5. Make sure you have "libbsd-devel" installed, else

    yum install libbsd-devel

  6. make the source

    ttyrec-1.0.8]# make

  7. copy the binaries to /usr/bin

    ttyrec-1.0.8]# cp ttyrec ttytime ttyrecord /usr/bin/

  8. Execute "ttyrec"

link
1

answered Sep 30 '11

satyaakam gravatar image satyaakam
53 2 7
http://satyaakam.net/

instead built the RPM

rpmbuild --rebuild ttyrec-1.0.8-2.src.rpm

it works now.

link
0

answered Jan 25

egon gravatar image egon
1

So, it looks like libbsd is available for fedora, but not centos or redhat. What's the solution for those distros?

link

Comments

The answer is to include the proper files. libbsd, which isn't available on Centos/RedHat isn't the answer. <blockquote> 74c74,76

< #include <libutil.h>

> /* #include <libutil.h> / > #include <pty.h> / for openpty and forkpty / > #include <utmp.h> / for login_tty */ </blockquote>

egon (Jan 26)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: Sep 29 '11

Seen: 187 times

Last updated: Jan 25