VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Can't find Tk.pm... [SOLVED]  (Read 41836 times)

Megamieuwsel

  • Ex-Officio
  • Vectorite
  • ****
  • Posts: 210
  • Dude In The Snappy Hat
Can't find Tk.pm... [SOLVED]
« on: August 11, 2008, 08:50:33 am »

Grmblll...
Try to install a program and it obviously requires the file "Tk.pm".
Code: [Select]
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, 11:09:42 pm by SuSE-Refugee »
Logged
<Lame sig>

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Can't find Tk.pm...
« Reply #1 on: August 11, 2008, 09: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 :)
« Last Edit: August 11, 2008, 09:42:25 am by exeterdad »
Logged

kidd

  • Packager
  • Vectorian
  • ****
  • Posts: 682
Re: Can't find Tk.pm...
« Reply #2 on: August 11, 2008, 10: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

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Can't find Tk.pm...
« Reply #3 on: August 11, 2008, 11: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 :)
Logged

Megamieuwsel

  • Ex-Officio
  • Vectorite
  • ****
  • Posts: 210
  • Dude In The Snappy Hat
Re: Can't find Tk.pm...
« Reply #4 on: August 11, 2008, 12:02:39 pm »

Running the
Code: [Select]
cpan -i Tknow.
Looks pretty straightforward.
Me like.
Logged
<Lame sig>

Megamieuwsel

  • Ex-Officio
  • Vectorite
  • ****
  • Posts: 210
  • Dude In The Snappy Hat
Re: Can't find Tk.pm...
« Reply #5 on: August 11, 2008, 12:05:53 pm »

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>

Megamieuwsel

  • Ex-Officio
  • Vectorite
  • ****
  • Posts: 210
  • Dude In The Snappy Hat
Re: Can't find Tk.pm...
« Reply #6 on: August 11, 2008, 12:07:02 pm »

Oopsie!
Code: [Select]
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
Re: Can't find Tk.pm...
« Reply #7 on: August 11, 2008, 12:30:54 pm »

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

Megamieuwsel

  • Ex-Officio
  • Vectorite
  • ****
  • Posts: 210
  • Dude In The Snappy Hat
Re: Can't find Tk.pm...
« Reply #8 on: August 13, 2008, 09:28:59 pm »

Well, I did it "the long way", like exeterdad suggested and it went without a hitch.
Code: [Select]
Everything works, Touchwood!
Logged
<Lame sig>