スポンサーリンク

CentOS7.3 64bitにttyrecを入れようとしたが・・・

 

まずyumで入れようとしてみる

[root@dev381]~# yum install ttyrec
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
base
centosplus
epel
extras
updates
updates/7/x86_64/primary_db
Loading mirror speeds from cached hostfile
* base: mirror.0x.sg
* centosplus: ftp.riken.jp
* extras: mirror.0x.sg
* updates: mirror.0x.sg
No package ttyrec available.
Error: Nothing to do

 

古いパッケージなのでないとのこと

続いてダウンロードからインストールをやってみる

$wget http://0xcc.net/ttyrec/ttyrec-1.0.8.tar.gz
$tar zxf ttyrec-1.0.8.tar.gz
$cdttyrec-1.0.8
$make
$cp ttyrec ttyplay ttytime /usr/local/bin

ここまではおk

[root@dev381]~# ttyrec ./myttyplay
Out of pty’s
zsh: terminated ttyrec ./myttyplay

エラーが出るので以下の記事を参考にしてみる

ttyrecのエラー - ksaitoの日記
ttyrecでこんなエラーが出ました。 $ ttyrec Out of pty's 終了しました $ /dev/pty*が読めないのが原因でコンパイル時にSVR4を指定するとエラーが出なくなりました。 $ apt-get source ttyrec パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成し...

[root@dev381]/home/sawaryot/ttyrec-1.0.8# make CFLAGS=-DSVR4
gcc -DSVR4 -c -o ttyrec.o ttyrec.c
ttyrec.c:60:21: fatal error: stropts.h: No such file or directory
#include <stropts.h>
^
compilation terminated.
make: *** [ttyrec.o] Error 1

エラーになる

以下参考ページ

https://shiroikagami.blogspot.jp/2012/04/ttyreccentos62-32bit.html
[root@dev381]/home/sawaryot/ttyrec-1.0.8# find / -name stropts.h

 

[sawaryot@dev381]~% yum provides */stropts.h
zsh: no matches found: */stropts.h

何もでない

 

そして参考ページには64bit版では動かなかったとか・・・

 

とりあえずttyrecは諦めてAsciinemaを使うか・・・

コメント

タイトルとURLをコピーしました