Operating System - Linux
1819796 Members
3133 Online
109607 Solutions
New Discussion юеВ

installing the perl-Tk module

 
Rick Garland
Honored Contributor

installing the perl-Tk module

Hi all:

Got RH 2.1 AS on Dell PE1650.
I am working on getting Bastille setup and running on this system but I am having a hard time loading the required module - the perl-Tk module.

Have obtained the perl-Tk-800.024-2.i386.rpm from the rpmfind site. When I do the rpm install (rpm -ivh ) is errors out saying that failed dependencies libc.so.6 (GLIBC_2.3) is needed by perl-Tk.

When I do the rpm -ivh for the glibc-2.2.4-26.i386.rpm it errors out and says "file <> from install of glibc-2.2.4-26 conflicts with file from package glibc-2.2.4-26."

My expectation would be "the package is already installed" which it is.

How can I get around this seemingly endless loop?

Many thanks!

8 REPLIES 8
Mark Grant
Honored Contributor

Re: installing the perl-Tk module

Rick, any reason why you didn't just use "cpan" to check out the perl tk module?
Never preceed any demonstration with anything more predictive than "watch this"
Rick Garland
Honored Contributor

Re: installing the perl-Tk module

2 reasons why not CPAN.

1) Research on Bastille says this module works
2) On CPAN there are numerous perl-Tk modules, which one to choose?


Huc_1
Honored Contributor

Re: installing the perl-Tk module


Did you try installing it with Uvh ?

Probaly the answer is yes ?

J-P

Smile I will feel the difference
Mark Grant
Honored Contributor

Re: installing the perl-Tk module

Wow, there are a lot of tk modules!

I see your point.
Never preceed any demonstration with anything more predictive than "watch this"
Huc_1
Honored Contributor

Re: installing the perl-Tk module

From my rh9 I found following link as where it came from.

Perhaps you could compare ?

http://search.cpan.org/author/NI-S/Tk-800.024/

to find this i did a rpm -qRvvi perl-Tk

J-P
Smile I will feel the difference
Rick Garland
Honored Contributor

Re: installing the perl-Tk module

Tried using the rpm -Uvh with no success.
Did download and install the Bundle::Tk from CPAN, again no success.

Martin P.J. Zinser
Honored Contributor

Re: installing the perl-Tk module

Hello Rick,

get the latest stable Perl-Tk from CPAN.

Then follow the normal steps:

perl Makefile.PL
make
make test
make install

This should leave you with a working perl Tk linked againt your current glibc.

I have done this often on my Linux systems without running into problems.

Greetings, Martin
Stuart Browne
Honored Contributor

Re: installing the perl-Tk module

Rick, the dependancy error just means that it was compiled using a newer glibc version than you are using.

Two choices, one: grab the source and compile yourself as has been previously mentioned.

two: grab the source RPM, and rebuild it using 'rpm --rebuild perl-Tk-800.024-2.src.rpm'.

This should compile new RPM's (to end up in /usr/src/redhat/RPMS/i386/) that will work on your specific environment.

At worst, you may need to install the src rpm, and tweak the dependancy list in '/usr/src/redhat/SPECS/perl-Tk.spec' (or whatever it calls it's self). Look at the version numbers after the 'Requires' lines.

To rebuild after you've tweaked, you have to issue a different command, 'rpm -bb /usr/src/redhat/SPECS/perl-Tk.spec', but the built RPM's end up in the same place.
One long-haired git at your service...