Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Perl5.26 installing Tk module manually

by Marshall (Canon)
on May 11, 2021 at 03:08 UTC ( #11132373=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl5.26 installing Tk module manually
in thread Perl5.26 installing Tk module manually

Hi Rob!

No, I am not saying that every new module installation requires a complete Perl rebuild.
I think you can still do ">cpan install XXX".

In this thread, I saw a question like: "unable to install Tk".
AS (Active State) is saying that they can build a custom version that includes
massive packages like Tk - and that this build process will work.
If you can select the package(s) in their GUI, the build will succeed, meaning that all dependencies will be resolved.

I don't think you have to do this for every package. Based upon the feedback so far, it appears that my AS 5.26 custom build with Tk DID WORK.
That was the OP's question: asked and I think answered, albeit in an xy way!

  • Comment on Re^3: Perl5.26 installing Tk module manually

Replies are listed 'Best First'.
Re^4: Perl5.26 installing Tk module manually
by syphilis (Bishop) on May 11, 2021 at 04:39 UTC
    I think you can still do ">cpan install XXX".

    I meant to specify "a new XS module", but I left out the crucial "XS" :-(
    IIRC, there was no C toolchain provided with the AS perl distro that I tried some months ago, I couldn't quickly find out how to get hold of their somewhat ageing mingw-w64 port of gcc-4.6.3, and using one of the more recent gcc compilers (that I do have) failed for reasons that I can't now recall.
    (I thought I posted here about that experience, but I'm damned if I can find it and am therefore unable to provide more details about it.)
    Do they provide a means of grabbing a copy of their gcc-4.6.3 compiler ?

    Anyway ... if you have the time to try installing an XS module (eg cpan -i Math::LongDouble), I'd be interested to know how you get on.
    I'm not at all predisposed to rubbishing them, but my intermittent experiences with AS perl have been ones of dissatisfaction for quite a few years now.

    Cheers,
    Rob
      Hi Rob!

      As near as I remember, the gcc version comes if you install the AS CPAN module.
      As I mentioned, I am at v 5.24.
      Added: I guess for v5.26 or v5.28, you perhaps would have to fork a new version like I did to add Tk in addition to Tkx in 5.26. Then add CPAN to the public reference project (in addition to Tk) if it is not already there?

      I didn't try that, but I ran your suggested command in my command window, (eg cpan -i Math::LongDouble). Here are results in a readmore tag.
      This is "verbatim", except that I edited out my user id on this machine.
      Cheers, Marshall

      Another PS: I looked at my custom AS build of 5.26 with Tk and I could add Math::LongDouble from https://github.com/sisyphus/math-longdouble to that fork, if I wanted to it that way. I do suspect that it would be possible manually add just this one module like I did for v5.24 on my machine. In the current world where computing power, memory and storage are getting to the "don't worry about it" stage, build strategies that would have been unthinkable before are now not only thinkable, but plausible and workable.

        WARNING: The sqrt and ** (pow) overloading is buggy on ActivePerl. (See the README file.)

        Ooops ... you shouldn't be getting that warning. (Now fixed on github.)

        I used the wizard to install perl-5.28.1 from the AS msi. I'm still having trouble getting anywhere - maybe there's something in the registry, from a previous installation that's causing problems.
        I've pretty much lost interest in persevering with it.

        Having added my gcc-4.7.0 compiler and dmake to my path, here's what I get when I try a manual build of Math::LongDouble:
        C:\sisyphusion\Math-LongDouble-0.22>perl Makefile.PL WARNING: The sqrt and ** (pow) overloading is buggy on ActivePerl. (See the README file.) Checking if your kit is complete... Looks good ... Detected uninstalled Perl. Trying to continue. Have \_64\active~1.28\lib Want \temp\activestate--------please-run-the-install-script--------\li +b Warning (mostly harmless): No library found for -lm Warning (mostly harmless): No library found for -lmoldname Warning (mostly harmless): No library found for -lkernel32 Warning (mostly harmless): No library found for -luser32 Warning (mostly harmless): No library found for -lgdi32 Warning (mostly harmless): No library found for -lwinspool Warning (mostly harmless): No library found for -lcomdlg32 Warning (mostly harmless): No library found for -ladvapi32 Warning (mostly harmless): No library found for -lshell32 Warning (mostly harmless): No library found for -lole32 Warning (mostly harmless): No library found for -loleaut32 Warning (mostly harmless): No library found for -lnetapi32 Warning (mostly harmless): No library found for -luuid Warning (mostly harmless): No library found for -lws2_32 Warning (mostly harmless): No library found for -lmpr Warning (mostly harmless): No library found for -lwinmm Warning (mostly harmless): No library found for -lversion Warning (mostly harmless): No library found for -lodbc32 Warning (mostly harmless): No library found for -lodbccp32 Warning (mostly harmless): No library found for -lcomctl32 Failed to opendir 'C:\TEMP\ActiveState--------please-run-the-install-s +cript--------\lib\CORE' to find header files: No such file or directory at C:/_64/ActiveState-5.28/site/lib/ExtUtil +s/MM_Any.pm line 3049.
        I don't understand any of that.
        I don't know what or where the "uninstalled Perl" is.
        The directory \_64\active~1.28\lib does not exist AFAICT.
        I don't understand the direction to "please-run-the-install-script".

        Also, in their perl/site/lib/ActivePerl/Config.pm, there's a sub _warn that begins:
        sub _warn { my($msg) = @_; unless (-t STDOUT) { print "\n$msg\n"; return; } require Win32::Console; .....
        If AS is going to conditionally call Win32::Console, it's probably a good idea that they include Win32::Console in their distribution. (You can pass that suggestion on to them if you like.)
        My first attempts at using the cpan utility resulted simply in the announcement that Win32::Console could not be found, and should be installed.
        I speculate that _warn() had been called because dmake could not be found in my path ... but that useful piece of information never made it to the screen because -t STDOUT was "True" && Win32::Console was nowhere to be found.

        Cheers,
        Rob

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2021-07-23 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?