Subject: | How to compile Sys::MemInfo with Cygwin (solved) |
Date: | Thu, 9 May 2013 08:32:26 +0100 (BST) |
To: | "bug-Sys-MemInfo [...] rt.cpan.org" <bug-Sys-MemInfo [...] rt.cpan.org> |
From: | freesoft <kqfhjjgrn [...] yahoo.es> |
Hi. If you try to compile Sys::MemInfo module in Cygwin, you will get an error:
unsupported OS: cygwin
It is easy to fix:
* Untar the "Sys-MemInfo-0.91.tar.gz" file.
* Edit the "Makefile.PL" file, and replace the 16th line:
} elsif (/linux/) {
by this one:
} elsif (/linux/ or /cygwin/) {
* Save the file.
* Compile as usual:
perl Makefile.PL
make
make test
make install
Done.