Search code examples
windowsperlinstallationmediawikimediawiki-api

MediaWiki-API Installation on windows


trying to automate using perl scripts on windows server using MediaWiki::Bot and Mediawiki::API taken from

http://metacpan.org/pod/MediaWiki::Bot

http://metacpan.org/pod/MediaWiki::API

Installation issue

C:\Users\user\Downloads\MediaWiki-API-0.36>perl Makefile.PL
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Writing Makefile for MediaWiki::API

C:\Users\user\Downloads\MediaWiki-API-0.36>make
/bin/sh: C:Perlbinperl.exe: command not found
make: *** [blib\lib\MediaWiki\\.exists] Error 127

same issue seen on MediaWiki-Bot too, so i just copied the API.pm and Bot.pm file to the c:/Perl/lib/MediaWiki folder.


Solution

  • It looks like it's trying to find C:\Perl\bin\perl.exe but the path separators are being treated as escape characters. You can try replacing \ with / in your Makefile.