in reply to Re^3: Tk::Canvas not working
in thread Tk::Canvas not working

When I tried to uninstall Tk, I received a message that TK was not found. It seems like my attempt to uninstall Tk::Canvas had uninstalled all of Tk. When I tried to reinstall Tk, Norton Anti-Virus found viruses in at least two files, including "Win64.Evo.gen[Trj]" in Canvas.xs.dll, which of course caused the install to fail. I now suspect that this whole chain of events was started by Norton downloading a new virus signature which fit this file. It must have removed or quarantined the file without my noticing it. I strongly believe that this is a false positive, but I have not decided how to proceed.
Bill

Replies are listed 'Best First'.
Re^5: Tk::Canvas not working
by syphilis (Archbishop) on Dec 09, 2024 at 00:52 UTC
    It seems like my attempt to uninstall Tk::Canvas had uninstalled all of Tk.

    Yes - I see now that Tk::Canvas is part of Tk. (I had assumed it was a separate distribution, but it's not.)

    You firstly need to find out how to deal with this DOS attack that Norton AV has launched. (I don't know how best to do that, but I would expect there is some way of telling the AV program to permit these "infected" files to be installed and executed.)
    Then, re-running:
    cpanm https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/ +download/patched_cpan_modules/Tk-804.036_001.tar.gz
    should be all that's needed.

    Cheers,
    Rob
      Thanks for the suggestions and encouragement. Looks like I have some research to do. Norton (the company) no longer offers help with Windows 7 problems. This problem is likely to happen to everyone using NAV and Tk. I hope our dialog helps other to recognize it when it does.
      Bill
Re^5: Tk::Canvas not working
by harangzsolt33 (Deacon) on Dec 09, 2024 at 03:56 UTC
    Downloading an updated virus signature database might not help, because the name "Win64.Evo.gen{Trj}" indicates that this particular false positive was detected based on heuristic scan, not based on a signature match. So, the anti-virus software disassembles the code and looks for particular code patterns or operations rather than a specific match. For example, I remember, back in the day when everybody used MS-DOS, it was a popular thing for viruses to look for all the EXE or COM files within the current directory. So, anti-virus softwares were designed to look for this behavior rather than a particular code. So, when the anti-virus program noticed that a program searches for *.exe and *.com, then that caused an warning alert. And that's what you have here. It's not a match based alert. So, you will have to go into options and disable the heuristic scanner. I don't have Norton Antivirus, so I can't give you more step-by-step directions on how to do that. But that's what you'll have to do. Or you can just disable the entire virus scanner temporarily while you install the Tk module.
      Aha! Norton seems to have updated itself recently. Several screens have changed slightly. In my ignorance of AV technology, I never considered this as a possible source of my problem. I agree that I probably could install Tk by turning off all AV. That would not help if AV later deletes the suspicious file again. I have found a page of options that looks promising. I still have to study them in view of your comments. Thanks.
      Bill
      Thanks to both of you for your help. Still, the time has come for me to give up for now. Tk will not install even with force turned on and AV turned off. Its log says that there is a file not found but I can determine what file it means. I probably should reinstall perl, but have become a bit gun-shy.
      Bill
        Tk will not install even with force turned on and AV turned off.

        Could it be that Windows Defender is the culprit ?
        That definitely happened to me once and I had to turn Windows Defender off to get a full install of a gcc package I had downloaded from https://winlibs.com.
        I eventually found a way to re-enable Windows Defender such that the problematic file was not removed ... but I forget the exact process.
        I think there was some way of telling Windows Defender to accept that specific file, despite it being deemed malevolent.

        Cheers,
        Rob
        The following procedure resolved all related issues.

        Uninstall strawberry perl

        Turn off anti-virus in Norton for one hour

        Install strawberry perl

        Install TK as described in previous posts

        Turn on anti-virus

        Install several modules required by my script

        Run the script. Norton quarantined the same file as before. This time, I found and selected the option to restore this file and make it an exception to the anti-virus checking

        Run my script successfully!!

        Bill