in reply to Compile Error for Sun Solaris 10 module IO
perl Makefile.PL make make test make install [download]
This should do all the work for you of supplying the right flags, etc. to the build process. (edit: typo.)