Differences between revisions 4 and 5
Revision 4 as of 2006-11-17 15:02:32
Size: 3943
Comment:
Revision 5 as of 2009-07-15 14:32:38
Size: 3947
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
<!> [[BR]] <!> <<BR>>
Line 7: Line 7:
it is otherwise, use the 32 bit version from the PCSS distribution.[[BR]] it is otherwise, use the 32 bit version from the PCSS distribution.<<BR>>
Line 72: Line 72:
The standard ''configure'' script does not recognize the JAVA installation but the [attachment:configure_tclBlend1.3.3_pacs5 attached configure script] does so. Place the new script in the The standard ''configure'' script does not recognize the JAVA installation but the [[attachment:configure_tclBlend1.3.3_pacs5|attached configure script]] does so. Place the new script in the
Line 92: Line 92:
are in a directory called '''packages''' under the user's home directory [attachment:complete_TCLblend_build_pacs5 this script] will build all four packages in one are in a directory called '''packages''' under the user's home directory [[attachment:complete_TCLblend_build_pacs5|this script]] will build all four packages in one

The host pacs5 runs SuSE 10.1. Although this is a 64 bit (AMD64) machine we got the TCLblend package only to work in a 32 bit mode. Due a bug in the gcc compiler all packages are compiled in nonoptimized mode.

<!>
Note for the TestControl users: Care must be taken to deactivate the TCLBlend packages from the PCSS distribution and use only the system installed TCLblend package. But for the Versant libraries it is otherwise, use the 32 bit version from the PCSS distribution.
<!>

Required source tar balls:

  • tcl8.4.14-src.tar.gz
  • tk8.4.14-src.tar.gz
  • thread2.6.5.tar.gz # TCL thread extension
  • tclBlend1.3.3.tar.gz

Place all four source tar balls into the same directory and also start each installation step from this directory.

As a prerequisite for all installation set the following flags to switch to 32bit compilation/link mode.

setenv CFLAGS "-m32"
setenv LDFLAGS "-m32"
setenv SHLIB_CFLAGS "-m32"

As not all configure script take attention to this flags the Makefiles are modified after execution of configure to make sure the -m32 is in place.

Installing TCL 8.4.14

rm -Rf tcl8.4.14
tar -xzf tcl8.4.14-src.tar.gz
cd tcl8.4.14/unix
./configure --enable-threads --enable-shared --enable-man-symlinks --prefix=/usr --disable-64bit
find . -name Makefile | xargs -n 1 sed -i 's/gcc -pipe/gcc -pipe -m32/'
find . -name Makefile | xargs -n 1 sed -i 's/-O2/-O0/'
make
make test
su -c "make install"

Installing TK 8.4.14

On host pacs5 the file /usr/X11R6/lib/libX11.so didn't exist so it is created as a link to the file /usr/X11R6/lib/libX11.so.6.2. Don't worry about an error message that this file already exists!

rm -Rf tk8.4.14
tar -xzf tk8.4.14-src.tar.gz
cd tk8.4.14/unix
./configure --enable-threads --enable-shared --enable-man-symlinks --prefix=/usr --with-tcl=../../tcl8.4.14/unix --disable-64bit
find . -name Makefile | xargs -n 1 sed -i 's/gcc -pipe/gcc -pipe -m32/'
find . -name Makefile | xargs -n 1 sed -i 's/-O2/-O0/'
sed -i 's/lib64/lib/' Makefile
su -c "ln -s /usr/X11R6/lib/libX11.so.6.2 /usr/X11R6/lib/libX11.so"
make
su -c "make install"

Install TCL thread extension

rm -Rf thread2.6.5
tar -xzf thread2.6.5.tar.gz
cd thread2.6.5/unix
../configure --enable-threads --enable-shared --enable-man-symlinks --prefix=/usr --with-tcl=../../tcl8.4.14/unix --disable-64bit
find . -name Makefile | xargs -n 1 sed -i 's/gcc -pipe/gcc -pipe -m32/'
find . -name Makefile | xargs -n 1 sed -i 's/-O2/-O0/'
make
make test
su -c "make install"

Install TCLblend

The standard configure script does not recognize the JAVA installation but the attached configure script does so. Place the new script in the directory where all the source tar ball are stored and name it configure.tclBlend1.3.3

rm -Rf tclBlend1.3.3
tar -xzf tclBlend1.3.3.tar.gz
cd tclBlend1.3.3/unix
cp ~/packages/configure.tclBlend1.3.3 ../configure
../configure --enable-threads --enable-shared --enable-man-symlinks --prefix=/usr --with-tcl=../../tcl8.4.14/unix --with-thread=../../thread2.6.5/unix --disable-64bit --with-jdk=/usr/java/jdk1.5.0_09__i386
find . -name Makefile | xargs -n 1 sed -i 's/gcc -pipe/gcc -pipe -m32/'
find . -name Makefile | xargs -n 1 sed -i 's/-O2/-O0/'
make
make test
su -c "make install"

To make all in one go

Under the assumption that all four source tar balls and the modified configure script configure.tclBlend1.3.3 are in a directory called packages under the user's home directory this script will build all four packages in one go. The script will ask five times for the root password to both install the packages and to make sure the file /usr/X11R6/lib/libX11.so exists.

Herschel: PACS/SoftwareInstallation/TCLblend1_3_3 (last edited 2009-07-15 14:32:38 by localhost)