[lug] Perl Question: finding Tk in FC7? it ran OK in earlier FCs

gordongoldin at aim.com gordongoldin at aim.com
Mon Sep 10 17:26:01 MDT 2007


 
Something I ran in earlier FCs errors in FC7 - saying it can't find Tk.? Did something significant change? Is it gTk now or something?

WARNING: /usr/bin/perl cannot find Perl module Tk.
???????? The above module(s) is/are required to correctly display 
???????? the Bastille User Interface.? If you are unable to find a
???????? pre-compiled module for your OS, they can be found at: 
?????????? http://www.cpan.org/modules/01modules.index.html
???????? If you installed the modules in another installation of 
???????? perl besides the one listed in the error message, you may 
???????? override Bastille's search path by setting the 
???????? $CORRECT_PERL_PATH environment variable to the directory 
???????? that the desired perl binary is located in.

/usr/bin/perl is equivalent to /usr/bin/perl5.8.8 in usr/bin

I used yum to install tcl and tk:

Installed: tk.i386 1:8.4.13-5.fc7
Dependency Installed: tcl.i386 1:8.4.13-16.fc7

Here is code:

?if [ $needx = "yes" ]; then
??????? missingmod=0 # flag to indicate if missing mod found.
??????? for mod in "Tk"
????????? do
??????? # see if perl can find the module
????????? ${CURRENT_PERL_PATH}/perl -M$mod < /dev/null > /dev/null 2>&1??????? **************
????????? if [ $? != 0 ]; then
??????? # Cannot find module
????????????? retval=2
????????????? if [ $missingmod = 0 ]; then
??????????? # First error message printed here
????????????????? missingmod=1;
????????????????? echo "$ERRORWARN ${CURRENT_PERL_PATH}/perl cannot find Perl module $mod.">&2


Gordon Golding
Center for Innovation and Creativity







 


________________________________________________________________________
Check Out the new free AIM(R) Mail -- Unlimited storage and industry-leading spam and email virus protection.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20070910/1bbbcab0/attachment.html>


More information about the LUG mailing list