Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^7: Disappointed with latest Strawberry Perl

by eserte (Deacon)
on Dec 30, 2007 at 17:28 UTC ( #659648=note: print w/ replies, xml ) Need Help??

in reply to Re^6: Disappointed with latest Strawberry Perl
in thread Disappointed with latest Strawberry Perl

Nothing is wrong with Tk :) It just needs an extra argument on the initial Makefile.PL command line.
Maybe that could be addressed with's new support for "distroprefs". That should be able to automatically add the necessary keyword on Win32.
Tk should normally build without any additional arguments. Something else went wrong here.

As for expat/XML::Parser, maybe an Alien::expat module would solve the problems: easy installation of XML::Parser, and keeping the Strawberry Perl distribution small.

Comment on Re^7: Disappointed with latest Strawberry Perl
Replies are listed 'Best First'.
Re^8: Disappointed with latest Strawberry Perl
by Tux (Monsignor) on Dec 31, 2007 at 09:54 UTC

    I have no experience with building Tk in a windows-only environment, because I always use Cygwin, with full X11 installed, and ActivePerl comes with Tk bundled, so I have no need to build myself. As Strawberry obviously is a similar build to ASperl ($^O - wise that is), adding MSWin32 can do no harm.

    Anyway, by now I really hate the title of this thread, as I value Strawberry more and more with every experience. It is all doable. At least for me. I'm just sharing my experiences here hoping the product will get even better with the next build.

    I can understand your point of seeing Tk as bloat to Strawberry, and if the new CPAN option solves that, I would not miss it, as building it with cpan then will yield no additional problems.

    Is there any reason why the install path for Strawberry is fixed at C:\Strawberry? I have those utils at D: normally, and I can imagine a network share as install path so all can share it's beauty without having to install it.

    Enjoy, Have FUN! H.Merijn

      It's only the path where the installer insists on putting Strawberry Perl. You can (after "installation") simply move the directory and patch and and CPAN/ to point to the new directory. I think the fixed installation mostly stems from some weird belief that executables (and especially Perl) are not relocatable by default on Win32.

      You will of course need to change $ENV{INCLUDE}, $ENV{LIB} and $ENV{PATH} to reflect the new location as well, but as you're setting up your own environment anyway, that should be no problem either.

        I think the fixed installation mostly stems from some weird belief that executables (and especially Perl) are not relocatable by default on Win32.

        Unless I'm missing something, it's almost completely undocumented short of examining the source code.

        Prompted by your post, from a little experimention and source code browsing in win32/win32.c, it looks like on Windows, perl.exe automatically sets @INC relative to $^X. However, most of the Perl toolchain looks to and to determine the right directories for various library paths, which is why things break oddly just moving the directory without patching those files. (I think that is what you're describing is the case.)

        Given that, it should be fairly easy to patch and to just set the library paths similarly by looking relative to $^X

        It also looks like perl.exe uses the long path for $^X and the derived pathnames. I wonder if those were the short pathnames instead whether things would work better if Perl were installed in places like "C:\Program Files\perl"?


        Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2015-11-28 09:43 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (741 votes), past polls