Click here to get back home

Perl-Tk module - relocation error

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Perl-Tk module - relocation error Steven Feil 12-02-2004
Get Chitika Premium
Posted by Steven Feil on December 2, 2004, 4:12 pm
Please log in for more thread options
I download a script called Easy Connect GPRS
(http://easyconnect.linuxuser.hu/modules.php?name=index). This is a
Perl script that utilizes Tk. I did not have Perl-Tk installed on my
computer so I download the RPM package and installed it.

The first time I attempted to run the script I received the following
error

Can't locate Tk.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .)
at ./gprsec line 44.
BEGIN failed--compilation aborted at ./gprsec line 44.

I found that my perl-Tk package installed Tk.pm in the directory
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/.

So I edited the script. In the line before
use Tk;
I added the line
use lib '/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi';

Now when I attempt to run the script I get the error
/usr/bin/perl: relocation error:
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Tk/Event/Event.so
: undefined symbol: Perl_Gthr_key_ptr

I have verified that this file was installed as part of perl-Tk but I
don't know what to try next.


Posted by ___cliff rayman___ on December 3, 2004, 12:32 am
Please log in for more thread options

Steven Feil wrote:

>Can't locate Tk.pm in @INC (@INC contains:
> /usr/lib/perl5/5.6.0/i386-linux
> /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux
> /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .)
> at ./gprsec line 44.
>BEGIN failed--compilation aborted at ./gprsec line 44.
>
>I found that my perl-Tk package installed Tk.pm in the directory
>/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/.
>
>
you have more than one version of perl on your machine. you cannot mix
the two. as this is lnux try:
locate perl|grep bin

this should show you the perl binaries that are availble. modify the
script of the gprsec program so that it uses perl 5.8.0.

OR

you can always install TK.pm into your perl 5.6.0 if this is a better
option for you.

--
_____cliff_rayman_____cliff_@_rayman_._com_____



Posted by Steven Feil on December 2, 2004, 7:55 pm
Please log in for more thread options

> you have more than one version of perl on your machine. you cannot mix
> the two. as this is lnux try:
> locate perl|grep bin
> [snip]

Yes, Thanks, I see now. I installed a Perl Module that was not
compatible with the version of Perl I was using. I'll need to find a
perl-tk module that is compatible with my current version of Perl.


Similar ThreadsPosted
Error in Spreadsheet module August 9, 2007, 3:27 am
Error in delete file using NET:FTP module February 10, 2006, 6:31 pm
Error in perl module "bignum"... May 14, 2006, 4:31 pm
Installation error for module in CentOS 5.0 for HTML::Mason June 18, 2007, 10:03 pm
creating perl binary using PAR module , execution error under unix March 15, 2008, 7:06 am
Error: RCPT TO: error (550 relay not permitted) February 11, 2006, 1:39 pm
GD.c: 533: error: syntax error before "void" March 24, 2006, 10:15 am
Error while using LWP December 1, 2005, 8:06 am
Have I an error in my POD? December 21, 2005, 6:35 pm
Deparse error July 7, 2004, 2:52 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap