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

Hello,

I have a perl program which need ByteLoader library to run on Windows. Unfortunately, I am very in Perl. I found information about ByteLoader library here, http://search.cpan.org/~rurban/B-C-1.24/ByteLoader/ByteLoader.pm .
However, I don't know how to put this library to use in my PC. I use windows xp with activeperl 5.10.1. Anyone know about how to install this library please help me.

Thank you

Replies are listed 'Best First'.
Re: How to use ByteLoader lib on Windows?
by toolic (Bishop) on Apr 03, 2010 at 16:55 UTC
    Since you have ActiveState Perl, you should be able to load this module from the command line:
    C:\Perl> ppm install ByteLoader
    I have 5.8.8 on Windows, and it is installed for me. I'd be surprised if it isn't available on 5.10.

    See also: A guide to installing modules for Win32

      I tried your suggested command but it didn't work. Do I need to add more repositories?

      Thank you
        Maybe...
        or, maybe not.

        But you definitely need to add an explanation of HOW "your ...command ...didn't work."

        What were the error messages (quoted verbatim)?

      ByteLoader isn't found on any repository. It used to be distributed with perl
      $ corelist ByteLoader -a ByteLoader was first released with perl 5.006 5.006 0.03 5.006001 0.04 5.006002 0.04 5.007003 0.04 5.008 0.04 5.008001 0.05 5.008002 0.05 5.008003 0.05 5.008004 0.05 5.008005 0.05 5.008006 0.05 5.008007 0.05 5.008008 0.06 5.008009 0.06 5.009 0.05 5.009001 0.05 5.009002 0.05 5.009003 0.06 5.009004 0.06
Re: How to use ByteLoader lib on Windows?
by syphilis (Archbishop) on Apr 04, 2010 at 08:30 UTC
    ByteLoader, as you know, is now part of B::C. Unfortunately, there doesn't seem to be a ppm for B::C at the ActiveState repo, or at any of the other repos, for that matter.

    It's being a bit troublesome for me to build on ActivePerl, with many of the tests segfaulting, but it builds fine (though somewhat noisily, and the tests take a long time to run) on Strawberry Perl if you're interested in going down that path.
    At least, the tests terminate with the claim that they all passed, though this looks a bit suss to me:
    t/bytecode.t ...... 32/39 Can't locate qr_loaded_module.pm in @INC (@I +NC contains: C:\_32\comp\B-C-1.24\blib\arch C:\_32\comp\B-C-1.24\blib +\lib C:\_32\comp\B-C-1.24\blib\lib C:\_32\comp\B-C-1.24\blib\arch C:/ +strawberry/perl/lib C:/strawberry/perl/site/lib C:\strawberry\perl\ve +ndor\lib .) at bytecode33.pl line 1. BEGIN failed--compilation aborted at bytecode33.plc line 858. t/bytecode.t ...... ok
    But, for the moment at least, it seems your best milage wrt ByteLoader will be with Strawberry Perl.

    Not sure why ActivePerl is being unco-operative .... interesting ... and probably worth a further look when I get a chance.

    Cheers,
    Rob
Re: How to use ByteLoader lib on Windows?
by t3st (Initiate) on Apr 05, 2010 at 02:15 UTC
    Thank you every one for your help.

    every comment is good for me.