in reply to Re^3: perl install in Fedora 16
in thread perl install in Fedora 16

OK, moved the files back. What to do now?

Replies are listed 'Best First'.
Re^5: perl install in Fedora 16
by oko1 (Deacon) on Feb 20, 2012 at 06:32 UTC

    At this point - yep, it looks like you have a damaged installation of Tk at the very least, so the right approach would be to reinstall it and re-check for errors:

    perl -MTk -wle'print $Tk::VERSION'
    -- 
    I hate storms, but calms undermine my spirits.
     -- Bernard Moitessier, "The Long Way"
      Removed: tk.x86_64 1:8.5.11-1.fc16 Dependency Removed: gtkwave.x86_64 0:3.3.25-1.fc16 python-imaging-tk.x86_64 0:1.1.7-4.fc16 tix.x86_64 1:8.4.3-6.fc15 tk-devel.x86_64 1:8.5.11-1.fc16 tkinter.x86_64 0:2.7.2-5.2.fc16 Installing: tk x86_64 1:8.5.11-1.fc16 updates 1.4 M Transaction Summary ================================================================================ Install 1 Package Total download size: 1.4 M Installed size: 3.4 M Is this ok y/N: y Downloading Packages: tk-8.5.11-1.fc16.x86_64.rpm | 1.4 MB 00:02 Running Transaction Check Running Transaction Test Transaction Test Succeeded Running Transaction Installing : 1:tk-8.5.11-1.fc16.x86_64 1/1 Installed: tk.x86_64 1:8.5.11-1.fc16 Complete! Still no joy, perl generates the same error as before and the package is in a different directory than the @INC path. From what I have read so far, the @INC path is a hash generated by perl at initial install and is not possible to change. Can this be true?
        From what I have read so far, the @INC path is a hash generated by perl at initial install and is not possible to change.

        Sure it can be changed:

        • use lib ...
        • the PERL5LIB environment variable
        • the -I command line option
        • manipulating @INC directly, e.g. BEGIN { unshift @INC, "/path/to/libs" }

        (Also, it's not a hash, but an array.)