halo... i am using fedora core 4,2.6.11-1.1369.stk16
Because I did installed a graphviz-2.8 and it need tcl8.3 to run it succesfully in order to support mobile mesh protocol. I did realised my distro got tcl8.4 by default but i did read a link as below:
http://www.linuxquestions.org/questi...d.php?t=234786
The person said that :" Just having the package installed is not enough when compiling you need to have the developement files installed as well. "
I am trying to install tcl8.3.4 into my distro and i did found a link for installation as below:
http://www.tcl.tk/doc/howto/compile.html
The installation step is :
1) cd unix
2) ./configure
3)make
4)make test
5)make install
when i come to step "make", i did found an error message shown:
[root@localhost unix]# make
cc -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall -Wconversion -Wno-implicit-int -fPIC -I./../generic -I. -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".so\" -DTCL_LIBRARY=\"/usr/local/lib/tcl8.3\" \
-DTCL_PACKAGE_PATH="\"/usr/local/lib\"" \
./../unix/tclUnixInit.c
rm -f libtcl8.3.so
cc -pipe -shared -o libtcl8.3.so regcomp.o regexec.o regfree.o regerror.o tclAlloc.o tclAsync.o tclBasic.o tclBinary.o tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o tclCompExpr.o tclCompile.o tclDate.o tclEncoding.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o tclListObj.o tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o tclPkg.o tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o tclResolve.o tclResult.o tclScan.o tclStringObj.o tclThread.o tclStubInit.o tclStubLib.o tclTimer.o tclUtf.o tclUtil.o tclVar.o tclMtherr.o tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o tclUnixFile.o tclUnixPipe.o tclUnixSock.o tclUnixTime.o tclUnixInit.o tclUnixThrd.o tclUnixNotfy.o tclLoadDl.o -ldl -lieee -lm
if test "xtclLoadDl.o" = "xtclLoadAout.o"; then \
ranlib libtcl8.3.so; \
fi
cc -pipe -rdynamic tclAppInit.o -L/home/kokchin/Desktop/tcl8.3.4/unix -ltcl8.3 -ldl -lieee -lm \
-Wl,-rpath,/usr/local/lib -o tclsh
[root@localhost unix]# make test
if test ! -d dltest; then mkdir dltest; else true; fi
cd dltest; if test -f configure; then ./configure; else \
/home/kokchin/Desktop/tcl8.3.4/unix/dltest/configure; fi
loading cache ./config.cache
creating ./config.status
creating Makefile
if test ! -f tclsh; then make tclsh; else true; fi
cd dltest; PATH=..:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/kokchin/bin TCL_LIBRARY=../../library make
make[1]: Entering directory `/home/kokchin/Desktop/tcl8.3.4/unix/dltest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kokchin/Desktop/tcl8.3.4/unix/dltest'
cc -pipe -rdynamic tclTestInit.o tclTest.o tclTestObj.o tclTestProcBodyObj.o tclThreadTest.o tclUnixTest.o -L/home/kokchin/Desktop/tcl8.3.4/unix -ltcl8.3 -ldl -lieee -lm \
-Wl,-rpath,/usr/local/lib -o tcltest
LD_LIBRARY_PATH=`pwd`:; export LD_LIBRARY_PATH; \
LIBPATH=`pwd`:; export LIBPATH; \
SHLIB_PATH=`pwd`:; export SHLIB_PATH; \
TCL_LIBRARY="/home/kokchin/Desktop/tcl8.3.4/library"; export TCL_LIBRARY; \
./tcltest ./../tests/all.tcl
couldn't read file "./../tests/all.tcl": no such file or directory
make: *** [test] Error 1
When i typed "make test' :
[root@localhost unix]# make test
if test ! -f tclsh; then make tclsh; else true; fi
cd dltest; PATH=..:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/kokchin/bin TCL_LIBRARY=../../library make
make[1]: Entering directory `/home/kokchin/Desktop/tcl8.3.4/unix/dltest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kokchin/Desktop/tcl8.3.4/unix/dltest'
cc -pipe -rdynamic tclTestInit.o tclTest.o tclTestObj.o tclTestProcBodyObj.o tclThreadTest.o tclUnixTest.o -L/home/kokchin/Desktop/tcl8.3.4/unix -ltcl8.3 -ldl -lieee -lm \
-Wl,-rpath,/usr/local/lib -o tcltest
LD_LIBRARY_PATH=`pwd`:; export LD_LIBRARY_PATH; \
LIBPATH=`pwd`:; export LIBPATH; \
SHLIB_PATH=`pwd`:; export SHLIB_PATH; \
TCL_LIBRARY="/home/kokchin/Desktop/tcl8.3.4/library"; export TCL_LIBRARY; \
./tcltest ./../tests/all.tcl
couldn't read file "./../tests/all.tcl": no such file or directory
make: *** [test] Error 1
When i typed "make install" :
[root@localhost unix]# make install
Installing libtcl8.3.so to /usr/local/lib/
Installing tclsh as /usr/local/bin/tclsh8.3
Installing tclConfig.sh to /usr/local/lib/
Installing libtclstub8.3.a to /usr/local/lib/
Installing header files
Installing library files to /usr/local/lib/tcl8.3
Installing library http1.0 directory
Installing library http2.4 directory
Installing library opt0.4 directory
Installing library msgcat1.1 directory
Installing library tcltest1.0 directory
Installing library encoding directory
Installing top-level (.1) docs
/bin/sh: line 0: cd: ./../doc: No such file or directory
sed: can't read *.1: No such file or directory
Cross-linking top-level (.1) docs
Installing C API (.3) docs
/bin/sh: line 0: cd: ./../doc: No such file or directory
sed: can't read *.3: No such file or directory
Cross-linking C API (.3) docs
Installing command (.n) docs
/bin/sh: line 0: cd: ./../doc: No such file or directory
sed: can't read *.n: No such file or directory
Cross-linking command (.n) docs
I did found out that my distro has tcl8.4 by default as shown:
[root@localhost unix]# whereis tcl
tcl: /usr/bin/tcl /usr/lib/tcl8.4 /usr/local/lib/tcl8.3 /usr/share/tcl8.4
Did anyone know why got error message when trying to install??