まずはSADを使える環境を整える。
MAIN trunkのMakefileでは Tkinter付きが基本なので src/README.TclTk-Linuxを良く読んで、Tcl/Tk 8.4.7を入れておくこと (SAD用の拡張パッチをあてるので、システム付属のTcl/Tkは使えません) src/Makefile.ARCH中のTCLINSTALLDIRを先ほど入れた Tcl/TkのPREFIXに合わせた状態で
% gmake lib exe
すると、実行ファイル obj/ARCH/sad1.exeが出来ます (driver scriptは、bin/gsに用意されます)
EPICS付きで作る場合は、
% gmake EPICS=(EPICS PREFIX) lib exe
すると、EPICS Channel Access付きの SADが出来ます
wgetを先に入れておくと、手間が省ける。 (compile with X11 and Tcl/Tk)
% tar zxvf oldsad-amorita-snapshot-576.tar.gz
% cd oldsad-amorita-snapshot-576
% cp -p sad.conf.sample sad.conf
(Edit sad.conf)
(行頭の'#'は通常設定すべき箇所)
(行頭の'##'はオプション)
(SAD_ROOT=はinstall directory)
% make distclean
% make all % make install
実際のinstallの様子は以下に。(要Javascript)