mjording / ttyrec

ttyrec is a tty recorder. Recorded data can be played back with the included ttyplay command. ttyrec is just a derivative of script command for recording timing information with microsecond accuracy as well. It can record emacs -nw, vi, lynx, or any programs running on tty.
http://0xcc.net/ttyrec/index.html.en
395 stars 41 forks source link

Doesn't appear to work on Fedora 20 #3

Open travispaul opened 10 years ago

travispaul commented 10 years ago

Tried to use ttyrec on Fedora 20 but it didn't work, just thought I would report it. If I am doing something wrong please let me know.

$ make CFLAGS=-DHAVE_getpt
gcc -DHAVE_getpt   -c -o ttyrec.o ttyrec.c
gcc -DHAVE_getpt   -c -o io.o io.c
gcc -DHAVE_getpt -o ttyrec ttyrec.o io.o
gcc -DHAVE_getpt   -c -o ttyplay.o ttyplay.c
gcc -DHAVE_getpt -o ttyplay ttyplay.o io.o
gcc -DHAVE_getpt   -c -o ttytime.o ttytime.c
gcc -DHAVE_getpt -o ttytime ttytime.o io.o

$ ./ttyrec 
/dev/ttyXX: No such file or directory
                                     Terminated

Also tried without HAVE_getpt

$ make clean
rm -f *.o ttyrec ttyplay ttytime ttyrecord *~

$ make
gcc -O2   -c -o ttyrec.o ttyrec.c
gcc -O2   -c -o io.o io.c
gcc -O2 -o ttyrec ttyrec.o io.o
gcc -O2   -c -o ttyplay.o ttyplay.c
gcc -O2 -o ttyplay ttyplay.o io.o
gcc -O2   -c -o ttytime.o ttytime.c
gcc -O2 -o ttytime ttytime.o io.o

$ ./ttyrec
Out of pty's
Terminated

$ uname -a
Linux localhost.localdomain 3.14.4-200.fc20.x86_64 #1 SMP Tue May 13 13:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
daixtr commented 10 years ago

This patch allows it to build and run properly on RHEL (and likely CentOS):

wget http://0xcc.net/ttyrec/ttyrec-1.0.8.tar.gz
wget http://paperlined.org/apps/rhel/building/ttyrec-1.0.8.RHEL5.patch
tar -xvzf ttyrec-1.0.8.tar.gz
cd ttyrec-1.0.8
patch -i ../ttyrec-1.0.8.RHEL5.patch

Let me know if you are still having issues. Good luck.

djmitche commented 10 years ago

As a gist, in case paperlined.org goes away, as some other hosts for this patch have: https://gist.github.com/djmitche/08c41b8b16ca3b969df4

djmitche commented 10 years ago

Note: with this patch, don't use CFLAGS=-DHAVE_getpt.

brockers commented 9 years ago

The patch and the cflag removal make this work for me. Thanks for the update djmitche!

norpol commented 9 years ago

Oh, a huge thank you @daixtr It's working for me too. Could this be merged to main branch?

ryukinix commented 8 years ago

Same problem here and the patch fixed. Why this doesn't in the main branch yet? Unmaintained project?

ryukinix commented 8 years ago

WoW, I saw now... 6 years without commit. I don't think this will change HAHAHA

dvershinin commented 5 years ago

Just got this working and packaged for CentOS 7. Anyone who wants to use that build on CentOS 7:

yum -y install https://extras.getpagespeed.com/release-el7-latest.rpm
yum -y install ttyrec
djmitche commented 5 years ago

Definitely an unmaintained project. If this is valuable, I would suggest forking! (It's not valuable to me at the moment, or I would..)