LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2006, 06:13 AM   #1
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Rep: Reputation: 15
tcl installation problem


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??
 
Old 09-01-2006, 03:38 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I would recommend sticking with the 8.4 that came with your distro,
and just install dev-packages from the distro as well; I'm fairly
certain that Tcl 8.4 is downward compatible. Installing stuff from
source (without using src-rpms) in an rpm based distro is always a
bad idea - specially with tools that ARE available as RPM.


Cheers,
Tink
 
Old 09-01-2006, 11:37 PM   #3
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
halo... May i know is that you mean by using tcl-8.4 can support graphviz-2.8 as well ??? I just scare that sometimes it need the certain version of tcl since mobile mesh is an old software.


may i know i have to install tcl-devel 8.4 by using yum :
"yum install tcl-devel-8.4" ??
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot find Tcl dll ( Perl's Tcl bridge ) Xyem Linux - Software 2 08-08-2006 09:45 AM
Installation of Expect 5.x tcl private headers Anarchon Linux - Software 0 07-08-2005 09:02 AM
TCL/TK installation for amsn salmanucit Linux - Software 1 09-23-2004 11:45 AM
Tux Racer / TCL installation woes bellengr Linux - Software 1 06-30-2004 12:16 AM
tcl/tk and c problem??!! boxser72 Programming 1 06-26-2004 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration