VectorLinux
October 24, 2014, 04:34:33 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Can't find Tk.pm... [SOLVED]  (Read 37713 times)
SuSE-Refugee
Ex-Officio
Vectorite
****
Posts: 205


Dude In The Snappy Hat


« on: August 11, 2008, 07:50:33 am »

Grmblll...
Try to install a program and it obviously requires the file "Tk.pm".
Code:
root:# ./IVuploader.pl
Can't locate Tk.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i486-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at ./IVuploader.pl line 24.
BEGIN failed--compilation aborted at ./IVuploader.pl line 24.
Which isn't found anywhere on my 5.9Std system.
Google wasn't of much help either, save for telling me, the particular file has been omitted from Perl/tk somewhere down the line.

Any ideas on how to solve this?
I'd really like to have this prog running.
« Last Edit: August 15, 2008, 10:09:42 pm by SuSE-Refugee » Logged

<Lame sig>
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #1 on: August 11, 2008, 08:38:45 am »

http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-804.028.tar.gz

Extract and enter dir:
perl Makefile.PL
make
make test
make install

Edit: Be warned.  When running "make test" you will see hundreds of dialog boxes and pictures opening all over the place and closing. Enjoy the fireworks Smiley
« Last Edit: August 11, 2008, 08:42:25 am by exeterdad » Logged
kidd
Packager
Vectorian
****
Posts: 682


« Reply #2 on: August 11, 2008, 09:01:08 am »

There is more than one way to do it in perl.

you can install perl modules automatically with CPAN, which does dependency checking for you.

as root try

cpan -i Tk


after answering some questions (only first time of using cpan) tk will install with its dependencies


HTH
Logged

exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #3 on: August 11, 2008, 10:26:27 am »

Ahah!  Thanks kidd!
I was trying everything I could think of to do it the cpan way, but couldn't remember how.  Got out of practice since you have to use the source's method for packaging.

lol
I just used cpan -i and it runs the tests. So expect the fireworks show SuSE Smiley
Logged
SuSE-Refugee
Ex-Officio
Vectorite
****
Posts: 205


Dude In The Snappy Hat


« Reply #4 on: August 11, 2008, 11:02:39 am »

Running the
Code:
cpan -i Tk
now.
Looks pretty straightforward.
Me like.
Logged

<Lame sig>
SuSE-Refugee
Ex-Officio
Vectorite
****
Posts: 205


Dude In The Snappy Hat


« Reply #5 on: August 11, 2008, 11:05:53 am »

And there were the fireworks!

Oooooohhhh!!.....
Pretty colours!...

(But a bitch, they stole the focus, so I couldn't type here, while they were going...)
Logged

<Lame sig>
SuSE-Refugee
Ex-Officio
Vectorite
****
Posts: 205


Dude In The Snappy Hat


« Reply #6 on: August 11, 2008, 11:07:02 am »

Oopsie!
Code:
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/entry.t      2   512   350    2   0.57%  193 225
 (54 subtests UNEXPECTEDLY SUCCEEDED), 2 tests and 161 subtests skipped.
Failed 1/62 test scripts, 98.39% okay. 2/3686 subtests failed, 99.95% okay.
make: *** [test_dynamic] Error 255
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
now what?
Logged

<Lame sig>
exeterdad
Packager
Vectorian
****
Posts: 2046



« Reply #7 on: August 11, 2008, 11:30:54 am »

Hmmmm.  It so happens that I have both terminal windows open from my long way compile, and the cpan way.  I didn't notice that I had similar errors as you with cpan and the install failed.  But the "long way"...  all the tests finished without errors. And the "make install" worked without errors as well.

I'm not a cpan guru so I don't know how to troubleshoot.  But if a more elegant way isn't suggested. You can do the "long way" now since cpan has resolved any needed deps for you.
Logged
SuSE-Refugee
Ex-Officio
Vectorite
****
Posts: 205


Dude In The Snappy Hat


« Reply #8 on: August 13, 2008, 08:28:59 pm »

Well, I did it "the long way", like exeterdad suggested and it went without a hitch.
Code:
Everything works, Touchwood!
Logged

<Lame sig>
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!