I want to convert a osm file into a mp file by using osm2pm but I can not figure out how to do it. I tried to find an explanation on running osm2pm for a beginner for a couple of hours but I was not successful. I have installed a perl and tried the following command for the converstion.
c:\perl d:\osm2mp.pl d:\map.osm >map.mp
In d:, there were files, osm2mp.pl and map.osm.

It did not, however, work out and only produced an error message, "Can’t locate Template.pm in @INC… "

What are the correct way to do the conversion or where can I get an explanation for it?