in reply to Win32::Printer loadable object module?

I have downloaded and copied every file in the zip file over to the Win32 directory in the Perl lib directory and I get this error.
Why would you do a thing like that? Sure Win32-Printer doesn't have a README or INSTALL file, but the distribution is on CPAN and has a Makefile.PL. Now would be a good time to read A Guide to installing modules in Tutorials as well as perlmodinstall.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re: Win32::Printer loadable object module?

Replies are listed 'Best First'.
Re: Re: Win32::Printer loadable object module?
by Elijah (Hermit) on Jan 07, 2004 at 20:34 UTC
    I have run the make file but I was under the impression that these makes files were only for *nix platforms which I am not trying to install it on. I use apt-get for all my Linux installs and yes sometimes use the source and make, make test, and make install but this is being installed on a Win32 system.

    I simply copied over the module because this is all that is generally needed for most modules. If a module has specific requirements for install there should be an INSTALL.txt or a README or something.

    Update:

    I got the pre-compiled binary from www.wasx.net. Simply copy over the contents to the proper directory and it works (or at least no more error).

      I have run the make file but I was under the impression that these makes files were only for *nix platforms which I am not trying to install it on.
      Nope, it's not just for nix. That is the standard way to install perl modules (especially ones on CPAN).

      I simply copied over the module because this is all that is generally needed for most modules.
      In theory for pure-perl modules maybe, but by doing so you always miss out on the important work a module author does (making sure you have all the prerequisites, making sure the module will work(tests) ...).

      If a module has specific requirements for install there should be an INSTALL.txt or a README or something.
      Normally I'd agree with you, but seing how you got the distribution from CPAN, and it is a standard CPAN distribution despite the lacking README/INSTALL file, the installation instructions are the same as that of any standard cpan distribution (perlmodinstall - Installing CPAN Modules).

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.

        This comes straight from the link you gave on CPAN.

        If you're running ActivePerl (Win95/98/2K/NT/XP, Linux, Solaris) First, type ppm from a shell and see whether ActiveState's PPM repository has your module. If so, you can install it with ppm and you won't have to bother with any of the other steps here. You might be able to use the CPAN instructions from the "Unix or Linux" section above as well; give it a try. Otherwise, you'll have to follow the steps below. A. DECOMPRESS You can use the shareware Winzip ( http://www.winzip.com ) to decompress and unpack modules. B. UNPACK If you used WinZip, this was already done for you. C. BUILD Does the module require compilation (i.e. does it have files that end in .xs, .c, .h, .y, .cc, .cxx, or .C)? If it doesn't, go to INSTALL. If it does, life is now officially tough for you, because you have to compile the module yourself -- no easy feat on Windows. You'll need the nmake utility, available at ftp://ftp.microsoft.com/Softlib/MSLFILES/nmake15.exe D. INSTALL Copy the module into your Perl's lib directory. That'll be one of the directories you see when you type perl -e 'print "@INC"'
        It appears once you have the module unzipped and built (if neccessary) CPAN tells you to simply copy the module to your library also. This has always been the way I have done it. I don't understand, are you pointing out I was doing it right or pointing out I was doing it wrong with refrences from CPAN saying I was doing it right?

        Edit:

        Or maybe saying I missed .xs file and therefore missed the build step?