Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Module problem?

by hotshot (Prior)
on Aug 04, 2003 at 09:00 UTC ( [id://280612]=perlquestion: print w/replies, xml ) Need Help??

hotshot has asked for the wisdom of the Perl Monks concerning the following question:

Hello guys!

I'v just moved from perl 5.6.0 on Linux RH7.1 to perl 5.8.0 on Linux RH9.0 and have some problems porting my project.
My current problem is related to the Term::ReadLine module that screams funny message to console:
# after executing: our $term = new Term::ReadLine 'Command Line Interface'; Warning [/etc/inputrc line 11]: Invalid variable 'mark-symlink-directories' # it shouts: Undifiened value assigned to typeglob at (eval 22) line 15, <RC> line +11.
Therefore any use of $term breaks the program, for example:
# when doing: $term->stifleHistory(100); # I get: Cannot do 'stifleHistory' in Term::ReadLine::Perl at /usr/lib/perl5/si +te_perl/5.8.0/Term/ReadLine/Perl.pm line 111.
Let me remind that everything worked fine before switching to the new environment.
Anyone to the rescue?

Hotshot

Replies are listed 'Best First'.
Re: Module problem?
by naChoZ (Curate) on Aug 04, 2003 at 12:32 UTC
    Need to see more script. Invalid variable 'mark-symlink-directories' is an important error.

    --
    "I just read perlman:perlboot," said Tom, objectively.
    naChoZ

Re: Module problem?
by hotshot (Prior) on Aug 05, 2003 at 06:34 UTC
    I searched google and tried to remember what I'v done to cause this and I stumbled an answer in the net that reminded me that it all began after I used perl -MCPAN -eshell and installed a module, during it's installation it notified me that a new version of CPAN.pm is available, so I did as it suggested and installed Bundle::CPAN. After that I started getting this funny warning.
    Anyhow, the second example I gave (with stifleHistory is irrelevant to the case - I installed Term::ReadLine::Gnu and it was gone).

    Hotshot
      Interesting! I decided to try installing Term::ReadLine::Gnu just to see if it would change anything and after installation the warning when starting CPAN is gone!

      Thinking back (been a while that this has been happening) I think the same thing occured on this machine. I didn't really pay attention to the original startup of CPAN after upgrading to rh9 but I do remember getting the notification on a new version of CPAN.pm being available and then the warning after reloading it.

      Still having problems installing/updating the same group of modules but do seem to be getting a bit closer to causes and effects anyway.

      Thanks for the info!

      Daeve

Re: Module problem?
by daeve (Deacon) on Aug 05, 2003 at 03:29 UTC
    When running CPAN on my RedHat9 machine (rh9 perl installed) I get

    [root@redone daeve]# perl -MCPAN -e shell Undefined value assigned to typeglob at (eval 13) line 15, <RC> line 1 +1. Warning [/etc/inputrc line 11]: Invalid variable `mark-symlinked-directories' cpan shell -- CPAN exploration and modules installation (v1.76) ReadLine support enabled

    when /etc/inputrc looks like

    1 # do not bell on tab-completion 2 #set bell-style none 3 4 set meta-flag on 5 set input-meta on 6 set convert-meta off 7 set output-meta on 8 9 # Completed names which are symbolic links to 10 # directories have a slash appended. 11 set mark-symlinked-directories on
    When line 11 is commented out like
    11 # set mark-symlinked-directories on
    CPAN comes up like it should.

    BUT there is still a problem. I have been over to the RedHat site as well as done several searches on google and haven't found an answer. I have several of the CPAN modules that I can install the current versions of time after time but when doing "r" they still come up as needing updating.

    I've just now downloaded the perl source from CPAN and done a complete build from source. It installed with little problem and most of the problem modules are installing or updating now but it still complains about "Invalid variable `mark-symlinked-directories'" if the line in /etc/inputrc is left uncommented.

    After reinstalling and now updating all the modules there are still several that CPAN does not show as updated. I have used "force install" on all of them but they still show up as needing updating. The list below are the ones that will not update.

    Package namespace installed latest in CPAN file Attribute::Handlers 0.77 0.78 A/AB/ABERGMAN/Attribute +-Handlers-0.78.tar.gz I18N::LangTags 0.27 0.28 S/SB/SBURKE/I18N-LangTa +gs-0.28.tar.gz List::Util 1.07_00 1.11 G/GB/GBARR/Scalar-List- +Utils-1.11.tar.gz NEXT 0.50 0.52 D/DC/DCONWAY/NEXT-0.52. +tar.gz Text::Balanced 1.89 1.95 D/DC/DCONWAY/Text-Balan +ced-1.95.tar.gz Tie::File 0.93 0.96 M/MJ/MJD/Tie-File-0.96. +tar.gz Unicode::Normalize 0.17 0.23 S/SA/SADAHIRO/Unicode-N +ormalize-0.23.tar.gz if 0.01 0.01000001 I/IL/ILYAZ/modules/if- +0.01000001.tar.gz 64 installed modules have no parseable version number

    Ideas?

    Daeve

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://280612]
Approved by Skeeve
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2024-04-24 09:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found