안녕하세염.... 저기 expect 컴파일시 에러가 떨어지는데염.
먼저 작업 순서부터 이야기 할께염..
OS는 Linux6.2 입니다.
/usr/local/tcl8.3.2]# ./configure
/usr/local/tcl8.3.2]# make
/usr/local/tcl8.3.2]# make install
이렇게 tcl을 컴파일 하니깐 잘 되더군염.
그리고나서 expect 컴파일을 했읍니다.
/usr/local/expect-5.32]# ./configure
/usr/local/expect-5.32]# make
여기까지는 잘 됩니다. 그런데
/usr/local/expect-5.32]# make install
하면 에러가 발생합니다.
<에러내용>
make[1]: Entering directory `/usr/local/expect-5.32'
Making binaries in testsuite...
make[2]: Entering directory `/usr/local/expect-5.32/testsuite'
make[2]: Nothing to be done for `binaries'.
make[2]: Leaving directory `/usr/local/expect-5.32/testsuite'
make[1]: Leaving directory `/usr/local/expect-5.32'
./mkinstalldirs /usr/local/lib/expect5.32
if [ -s libexpect5.32.a ] ; then
/usr/bin/install -c -m 644 libexpect5.32.a /usr/local/lib/expect5.32/libexpect
5.32.a ;
ranlib /usr/local/lib/expect5.32/libexpect5.32.a ;
/usr/bin/install -c -m 644 libexpect5.32.a /usr/local/lib/libexpect5.32.a ;
ranlib /usr/local/lib/libexpect5.32.a ;
else true; fi
if [ -s reconfigure_Tcl_for_shared_library ] ; then
/usr/bin/install -c reconfigure_Tcl_for_shared_library /usr/local/lib/reconfig
ure_Tcl_for_shared_library ;
/usr/bin/install -c pkgIndex /usr/local/lib/expect5.32/pkgIndex.tcl ;
else true; fi
cc -rdynamic -o expect_installed exp_main_exp.o -L/usr/local/lib -lexpect5.32
-L/usr/local/lib -ltcl8.3 -ldl -lieee -lm -lutil
: expect_installed
TCL_LIBRARY=/usr/local/tcl8.3.2/library ;
export TCL_LIBRARY ;
LD_LIBRARY_PATH=.:/usr/local/lib:/usr/local/lib:$LD_LIBRARY_PATH ./expect ./fixl
ine1 /usr/local/bin < ./example/timed-run > timed-run
can't read "line1": no such variable
while executing
"puts -nonewline "$line1[read stdin]"
"
(file "./fixline1" line 13)
make: *** [timed-run] Error 1
해결책좀 알려주세염..