I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-05-09 14:52:14-07 by nextnick
Cannot install Tk on RH Ent 4 for EM64 ...
Sports Fans!

Below is the line where my installation consistently fails whether I use cpan or perform a manual installation. Any ideas?

gcc -shared Tk.o chnGlue.o encGlue.o evtGlue.o objGlue.o tixGlue.o tkGlue.o tkGlue_f.o tkWin32Dll.o -o blib/arch/auto/Tk/Tk.so pTk/libpTk.a -L/usr/X11R6/lib -lX11 -lnsl -lm

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11

/usr/bin/ld: cannot find -lX11

collect2: ld returned 1 exit status

make: *** [blib/arch/auto/Tk/Tk.so] Error 1

[root@lguut Tk-804.027]# perl -v

This is perl, v5.8.5 built for x86_64-linux-thread-multi

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page.

[root@lguut Tk-804.027]# uname -a

Linux lguut.lrltech.com 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux

[root@lguut Tk-804.027]#

Direct Responses: 5139 | Write a response
Posted on 2007-05-15 12:07:54-07 by nextnick in response to 5098
Re: Cannot install Tk on RH Ent 4 for EM64 ...

Sports Fans,

Forgive me for talking to myself, but I thought this additional information might help.

After failing to install Perl/Tk on my Ent 4 machine, I had a request to install it on a 64 bit RH Ent 3 machine (Linux 2.4). So, I attempted a Perl/Tk installation using cpan, but Tk will not install on it either!? It runs into the same type of problem I saw on my Ent 4 machine:

tkGlue.c: In function `XEvent_Info': tkGlue.c:5014: warning: cast to pointer from integer of different size gcc -c -I/usr/X11R6/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict +- aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 - g -pipe -DVERSION=\"804.027\" -DXS_VERSION=\"804.027\" -fPIC "-I/usr/lib64/perl5/5.8.0/x86_64-</p +> linux-thread-multi/CORE" -Wall -Wno-implicit-int -Wno-comment -Wno-unused - D__USE_FIXED_PROTOTYPES__ tkGlue_f.c gcc -c -I/usr/X11R6/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict +- aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 - g -pipe -DVERSION=\"804.027\" -DXS_VERSION=\"804.027\" -fPIC "-I/usr/lib64/perl5/5.8.0/x86_64- linux-thread-multi/CORE" -Wall -Wno-implicit-int -Wno-comment -Wno-unused - D__USE_FIXED_PROTOTYPES__ tkWin32Dll.c Running Mkbootstrap for Tk () chmod 644 Tk.bs rm -f blib/arch/auto/Tk/Tk.so LD_RUN_PATH="/usr/X11R6/lib:/lib64" gcc -shared Tk.o chnGlue.o encGlue.o evtGlue.o objGlue.o tixGlue.o tkGlue.o tkGlue_f.o tkWin32Dll.o -o blib/arch/auto/Tk/Tk.so pTk/libpTk.a - L/usr/X11R6/lib -lX11 -lnsl -lm /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11 /usr/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11 /usr/bin/ld: cannot find -lX11 collect2: ld returned 1 exit status make: *** [blib/arch/auto/Tk/Tk.so] Error 1 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Failed during this command: NI-S/Tk-804.027.tar.gz : make NO cpan[3]> quit Lockfile removed. [root@lguut root]# uname -a Linux lguut.lrltech.com 2.4.21-37.EL #1 SMP Wed Sep 7 13:32:18 EDT 2005 x86_64 x86_64 x86_64 GNU/Li +nux [root@lguut root]# perl -v This is perl, v5.8.0 built for x86_64-linux-thread-multi (with 1 registered patch, see perl -V for more detail) Copyright 1987-2002, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. [root@lguut root]#
Direct Responses: Write a response