Re: [tcljava-user] Compiling TCL Blend
Brought to you by:
mdejong
From: Leonardo K. S. <sh...@gm...> - 2013-05-22 13:37:49
|
Hi Ross so I've mixed ideas from your script and form tclBlend README.txt and this what has worked for me maybe can help someone someday :-) thanks, man! >> cd /tmp/2 tar xvzf ~leoks/Downloads/tcl8.5.7-src.tar.gz tar xvzf ~leoks/Downloads/tk8.5.7-src.tar.gz tar xvzf ~leoks/Downloads/thread2.6.5.tar.gz tar xvzf ~leoks/Downloads/expect-5.44.1.15.tar.gz tar xvzf ~leoks/Downloads/tclBlend1.4.1.tar.gz mkdir build_tcl mkdir build_tk mkdir build_thread mkdir build_tclblend cd build_tcl ../tcl8.5.7/unix/configure --prefix=/opt/tclblend/ --enable-threads --enable-64bit make install cd .. cd build_tk ../tk8.5.7/unix/configure --prefix=/opt/tclblend/ --enable-threads --enable-64bit --with-tcl=/tmp/2/build_tcl make install cd .. cd build_thread/ ../thread2.6.5/configure --prefix=/opt/tclblend/ --enable-threads --enable-64bit --with-tcl=/tmp/2/build_tcl make test make install cd .. mkdir build_expect cd build_expect/ ../expect-5.44.1.15/configure --prefix=/opt/tclblend/ --enable-threads --enable-64bit --with-tcl=/tmp/2/build_tcl --with-tk=/tmp/2/build_tk make test make install cd ../build_expect/ ../expect-5.44.1.15/configure --prefix=/opt/tclblend/ --enable-threads --enable-64bit --with-tcl=/tmp/2/build_tcl --with-tk=/tmp/2/build_tk make test make install cd ../build_tclblend/ yum install compat-gcc-34.x86_64 sudo yum install compat-gcc-34.x86_64 sudo mv /usr/bin/gcc /usr/bin/gcc44 sudo cp /usr/bin/gcc34 /usr/bin/gcc sudo yum install java-1.6.0-openjdk java-1.6.0-openjdk-devel ../tclBlend1.4.1/configure --with-tcl=/tmp/2/build_tcl --with-thread=/tmp/2/build_thread/ --with-jdk=/usr/lib/jvm/java-1.6.0-openjdk.x86_64/ --prefix=/opt/tclblend/make make test (Total 1397 Passed 1324 Skipped 5 Failed 68) make install sudo cp /usr/bin/gcc44 /usr/bin/gcc then in the script set env(LD_LIBRARY_PATH) "/opt/tclblend/lib/tcljava1.4.1" package require java set ts [ java::call System currentTimeMillis ] puts "$ts\n" This is for RHEL 6 64 bits >> [] Leo On Tue, May 21, 2013 at 5:00 PM, Ross, Bill <Bil...@ca...>wrote: > I got it to work on Centos**** > > 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 > x86_64 x86_64 GNU/Linux**** > > ** ** > > Here are some of my notes:**** > > ** ** > > tcl**** > > gzip -d tcl8.5.7-src.tar.gz**** > > tar -xf tcl8.5.7-src.tar**** > > cd tcl8.5.7/unix/**** > > ./configure --enable-threads --enable-64bit**** > > make install**** > > tk**** > > gzip -d tk8.5.7-src.tar.gz**** > > tar -xf tk8.5.7-src.tar**** > > cd tk8.5.7/unix/**** > > ./configure --enable-threads --enable-64bit**** > > make install**** > > threads**** > > gzip -d thread2.6.5.tar.gz**** > > tar -xf thread2.6.5.tar**** > > cd thread2.6.5/**** > > ./configure --enable-threads --enable-64bit**** > > make test**** > > make install**** > > expect**** > > gzip -d expect-5.44.1.15.tar.gz**** > > tar -xf expect-5.44.1.15.tar**** > > cd expect-5.44.1.15**** > > ./configure --enable-threads --enable-64bit**** > > make test**** > > make install**** > > tclblend (couldn’t get configure CC=gcc34 to work, had to change > /usr/bin/gcc)**** > > yum install compat-gcc-34.x86_64**** > > mv /usr/bin/gcc /usr/bin/gcc44**** > > cp /usr/bin/gcc34 /usr/bin/gcc**** > > gzip -d tclBlend1.4.1.tar.gz**** > > tar -xf tclBlend1.4.1.tar**** > > cd tclBlend1.4.1**** > > ./configure --with-tcl=/home/xxx/software/tcl8.5.7 > --with-thread=/home/xxx/software/thread2.6.5 > --with-jdk=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64**** > > make test (all.tcl: Total 1397 Passed 1320 Skipped 5 > Failed 72)**** > > make install**** > > cp /usr/bin/gcc44 /usr/bin/gcc**** > > scripts need=> set env(LD_LIBRARY_PATH) "/usr/local/lib/tcljava1.4.1"; # > for tclBlend**** > > ** ** > > ** ** > > ** ** > > I also have it built on a very old 32 bit linux box **** > > 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386 GNU/Linux* > *** > > ** ** > > Hope that helps.**** > > ** ** > > Bill**** > > ** ** > > *From:* Leonardo K. Shikida [mailto:sh...@gm...] > *Sent:* Tuesday, May 21, 2013 3:39 PM > *To:* tcl...@li... > *Subject:* [tcljava-user] Compiling TCL Blend**** > > ** ** > > Hi > > I am trying to compile TCL Blend in linux i386_64, but from the configure > file, it seems it's only supported by JDK 1.4 (linux), JDK 1.5 for AMD64 > and Sun JDK 1.4 and 1.5 for Windows. > > So I am trying to compile using **** > > tcl8.4.13-src.tar.gz**** > > thread2.6.3.tar.gz**** > > tclBlend1.4.1.tar.gz > j2sdk1.4.2_19 (i586)**** > > > The compilation also complains of gcc being superior than 4.1.0 and > several other linking problems. > > What versions of JSDK and GCC are recommended in order to compile TCL > Blend on a linux box? > > **** > > TIA > > Leo**** > |