perl tk module?

Place to discuss Fedora and/or Red Hat
Post Reply
ZiaTioN
administrator
administrator
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm
Contact:

perl tk module?

Post by ZiaTioN » Tue Oct 28, 2003 1:01 am

Ok I thought CPAN was suppose to be respectible. man it seems 90% of the modules I get from there never make it all the way through a manual install. They either fail during the make process (99% of the time) or faile during install.

What is the deal? Does anyone know of a perl tk module (preferably an rpm) that will successfully install on RH9

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Oct 28, 2003 10:30 am

I am using Perl/Tk on my RH machine at home and I am reasonably certain that I installed it via RPM from FreshRPMS using apt-get but I'll check on that and get back with you if that doesn't get you going.

Edit: I just checked FreshRPMS and it's not on there. I'll get back with you when I get home this evening if you haven't figured it out by then.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Oct 28, 2003 1:33 pm

Ahh I couldn't wait. I'm not sure if this is how I installed it at home but it does seem to be a little more of a pain than it should be if Perl-Tk*.rpm were to be included with Red Hat or in FreshRPMS (I can't believe it's not). The first thing I tried was the standard CPAN install and it complained that the X11 headers weren't. I installed the X11 headers and the CPAN downloaded, compiled but didn't install because of a few tests that "unexpectedly succeeded" (oh my) that I can live with so I went ahead and installed anyway. This sums up my commands:

Code: Select all

apt-get install XFree86-devel
perl -MCPAN -e 'install Tk'
Then after a couple of failed tests:

Code: Select all

cd ~/.cpan/build/Tk-804.025_beta4
make install
Finished.

ZiaTioN
administrator
administrator
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm
Contact:

Post by ZiaTioN » Tue Oct 28, 2003 2:57 pm

LOL... man I know.

Here is my latest attempt:
perl -MCPAN -e 'install Tk'
and here is a portion of what happened during this install:
Can't open Tk-804.025_beta4.tar.gz: No such file or directory
Bad luck... Still failed!
Can't access URL ftp://ftp.perl.org/pub/CPAN/authors/id/ ... ta4.tar.gz.

Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/authors/id/ ... ta4.tar.gz
LWP failed with code[404] message[File 'Tk-804.025_beta4.tar.gz' not found]
Fetching with Net::FTP:
ftp://ftp.perl.org/pub/CPAN/authors/id/ ... ta4.tar.gz
Couldn't fetch Tk-804.025_beta4.tar.gz from ftp.perl.org

Trying with "/usr/bin/wget -O -" to get
ftp://ftp.perl.org/pub/CPAN/authors/id/ ... ta4.tar.gz
--00:56:32-- ftp://ftp.perl.org/pub/CPAN/authors/id/ ... ta4.tar.gz
=> `-'
Resolving ftp.perl.org... done.
Connecting to ftp.perl.org[209.120.136.27]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/CPAN/authors/id/N/NI/NI-S ... done.
==> PORT ... done. ==> RETR Tk-804.025_beta4.tar.gz ...
No such file `Tk-804.025_beta4.tar.gz'.


System call "/usr/bin/wget -O - "ftp://ftp.perl.org/pub/CPAN/authors/id/ ... ta4.tar.gz" > /root/.cpan/sources/authors/id/N/NI/NI-S/Tk-804.025_beta4.tar"
returned status 1 (wstat 256)
Warning: expected file [/root/.cpan/sources/authors/id/N/NI/NI-S/Tk-804.025_beta4.tar.gz] doesn't exist
Please check, if the URLs I found in your configuration file () are valid.
The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'

Could not fetch authors/id/N/NI/NI-S/Tk-804.025_beta4.tar.gz
Giving up on '/root/.cpan/sources/authors/id/N/NI/NI-S/Tk-804.025_beta4.tar.gz'
:)

I do not think the XFree86-devel has anything to do with not being able to grab this file from any of the URL's CPAN provides but who knows.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Oct 28, 2003 3:28 pm

Yeah, your CPAN doesn't appear to be configured correctly and can't retrieve the actual Tk file. If your behind a proxy or similar you will have to configure appropriately. I think you can reset your CPAN settings by deleting your ~/.cpan directory. It should then ask you all the questions again like where to download from, proxies, etc...

ZiaTioN
administrator
administrator
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm
Contact:

Post by ZiaTioN » Tue Oct 28, 2003 11:38 pm

Well here we go again. Man I think I must have the worst damn time with installing anything recently for no apparent reason.

I did basically exactly what you did and still no go. here is the latest errors:
Writing Makefile for Tk
Makefile:95: *** missing separator. Stop.
/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
That was at the very end of the auto install. This time it managed to download the package and tried to create the make file and do a make install but failed. I then changed directory to /root/.cpan/build/Tk-804.025_beta4 and tried a manual make install like you did:
[root@ToughGuy Tk-804.025_beta4]# make install
Makefile:95: *** missing separator. Stop.
[root@ToughGuy Tk-804.025_beta4]# make install
Makefile:95: *** missing separator. Stop.
[root@ToughGuy Tk-804.025_beta4]# make install
Makefile:95: *** missing separator. Stop.
[root@ToughGuy Tk-804.025_beta4]# make install
Makefile:95: *** missing separator. Stop.
[root@ToughGuy Tk-804.025_beta4]# pwd
/root/.cpan/build/Tk-804.025_beta4
I am sure you can see my frustration here with the multiple failed make installs. :)

Any ideas?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Tue Oct 28, 2003 11:56 pm

Hmmm, actually now that I am home I see that I have the RPM installed. This appears to be the exact one I have installed:

http://www.rpmfind.net//linux/RPM/contr ... .i386.html

Maybe you will have more luck with that. Here is the actual binary:

ftp://fr.rpmfind.net/linux/contrib/libc ... 2.i386.rpm

ZiaTioN
administrator
administrator
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm
Contact:

Post by ZiaTioN » Wed Oct 29, 2003 1:10 am

Sweet man that worked. I cannot believe that there are so many bunk versions of this module out there. They all say for RH 9 but this was the only one that was successfull.

Thanks...

Post Reply