Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
problems with installation of Tcl/Tk on my laptop
  • From: Maura Edeweiss Monville <memonvil@xxxxxxxxxxxxxxxx>
  • Date: Wed, 19 Apr 2006 12:56:11 -0500 (CDT)
  • Message-id: <Pine.GSO.4.58.0604191250150.13421@xxxxxxxxxxxxxxxxxxxxx>
Please, take a look at the installation procedure appended to this
e-mail. It is standard for Tcl/Tk
I launched on my x86_64 laptop. It failed with an incompatibility error.
It looks like it cannot find the adequate 64-bit library for X11 and
rejects the X11 which is standard for 32-bit.
How can I get around this problem ?
I need probably to force compilation for 32-bit because th Tcl/Tk will
be used for creating a GUI from the Monte Carlo code which is 32-bit.

By the way, I got the CERNLIB installed on my laptop... at least the
installation procedure completed error-free.

Thank you for all your help,
Maura

cc -pipe -rdynamic tkAppInit.o \
-L/home/mokhov/restricted/mars15/TCLTK/tmpdir/tk8.3.2/unix -ltk8.3
\
-L/home/mokhov/restricted/mars15/TCLTK/tmpdir/tcl8.3.2/unix
-ltcl8.3 -L/usr/X11R6/lib -lX11 -ldl -lieee -lm -lc
-Wl,-rpath,/home/mokhov/restricted/mars15/linux/lib:/usr/X11R6/lib -o wish
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
cannot find -lX11
collect2: ld returned 1 exit status
make: *** [wish] Error 1

************************************************************************
* installation procedure begins here *
************************************************************************
#!/bin/sh

set -e

RM=/bin/rm
SED=/bin/sed
MV=/bin/mv
MAKE=make

TCLVER=8.3.2
TKVER=8.3.2

#CCOPT="-V -verbose=all -g"
CCOPT="-O" # -V -verbose=all"

STARTDIR=`pwd`
OSTYPE=`uname -s`

TMPDIR=tmpdir

INSTALLDIR=/home/mokhov/restricted/mars15
#INSTALLDIR=/afs/fnal.gov/files/home/room1/mokhov/restricted/mars15

echo $OSTYPE

if [ $OSTYPE = SunOS ]; then
XINC=/usr/openwin/include
XLIB=/usr/openwin/lib
INSTALLDIR=$INSTALLDIR/sun
elif [ $OSTYPE = IRIX64 ]; then
XINC=/usr/include
XLIB=/usr/lib
INSTALLDIR=$INSTALLDIR/irix
elif [ $OSTYPE = AIX ]; then
XINC=/usr/include
XLIB=/usr/lib
INSTALLDIR=$INSTALLDIR/aix
elif [ $OSTYPE = OSF1 ]; then
XINC=/usr/include
XLIB=/usr/lib
INSTALLDIR=$INSTALLDIR/dec
elif [ $OSTYPE = Linux ]; then
XINC=/usr/include
XLIB=/usr/X11R6/lib
INSTALLDIR=$INSTALLDIR/linux
else
echo "System is unknown !"
exit 1
fi

echo $INSTALLDIR

if [ -d $TMPDIR ]; then
$RM -rf $TMPDIR
fi
mkdir $TMPDIR
cd $TMPDIR

gunzip -dc ../tcl$TCLVER.tar.gz | tar xvvf -

cd $STARTDIR

pwd

cd $TMPDIR/tcl$TCLVER/unix
./configure --disable-shared --prefix=$INSTALLDIR --with-x
--x-includes=$XINC --x-libraries=$XLIB
$SED s/-O/"$CCOPT"/ Makefile > Makefile.edited
$MV -f Makefile.edited Makefile
$MAKE
$MAKE install

cd $STARTDIR
cd $TMPDIR
gunzip -dc ../tk$TKVER.tar.gz | tar xvvf -

cd $STARTDIR
cd $TMPDIR/tk$TKVER/unix
./configure --disable-shared --prefix=$INSTALLDIR --with-x
--x-includes=$XINC --x-libraries=$XLIB
$SED s/-O/"$CCOPT"/ Makefile > Makefile.edited
$MV -f Makefile.edited Makefile
$MAKE
$MAKE install

cd $STARTDIR

$RM -rf $TMPDIR

exit 0

************************************************************************
* installation procedure ends here *
************************************************************************


< Previous Next >
Follow Ups