1. Using CYGWIN
well, running perl Makefile.PL is not enough. this just builds the Makefile needed by your system to build the whole package using make.
so after saying perl Makefile.PL, try to do the following
make
make test
make install
in that order and see what happens.
2. Using ActivePerl
As Roger said above, you could use ActiveState's ppm (Perl Package Manager) which is imho a better choice on win32 systems (since we are not used to building stuff on windows :) )
doing just ppm install Data::Serializer is not always the best choice since there can be available multiple versions on multiple servers.
so open a dos-box (start/run/cmd) and then start ppm
use the command search to look up the version, so type ppm search Data::Serializer (or help search for assistance)
Have fun!
| [reply] [d/l] [select] |
With ActivePerl, go to command prompt and type:
ppm install Data-Serializer
That's all you have to do to install this module from ActiveState's PPM repository.
| [reply] [d/l] |
Thank you very much, Roger. I didn't know about this command before. However, being as illiterate as I am with Windows(I had to make a reluctant switch from an Apple), I can't find out why it gives me this:
C:\>ppm install data-serializer Installing package 'data-serializer'... Error installing package 'data-serializer': Could not locate a PPD file for pack
age data-serializer
I tried specifying the full filepath to Data-Serialzer-0.20.tar.gz, and tried just Data-Serializer-0.20 and I get the same thing.
Please forgive my stupidity.
| [reply] |
Try again with case sensitive module name:
ppm install Data-Serializer
If this still doesn't work, it means you are behind a firewall and need to go through a proxy and need to setup the proxy environment variables.
So one step at a time, try again with the command above.
| [reply] [d/l] |
Opened CYGWIN, changed to the directory, used perl makefile.pl
It told me that it had successfully installed it
Urm... no, that's merely the first step. You still have to go through the make cycle. For Cygwin, use the make that comes with it. If you use ActivePerl or Indigoperl, you can use nmake, a free download (50k) from Microsoft.
Now the steps are, in the directory the decompressed archive is in:
- perl Makefile.PL
- creates the makefile
- make or nmake
- builds/moves the module files into their final form and tree structure organisation (under blib in the same directory)
- make test or nmake test
- runs the test scripts (common: *.t files under the directory t) while temporarily adding the directories under blib, namely blib/lib and blib/arch, to @INC. This is necessary because the module isn't installed yet.
- make install or nmake install
- copies the file trees under blib to its final location, normally that's under site/lib. This is the actual final installation.
Oh, and I tried it with Data::Serializer. It works well, without PPM.
| [reply] |