When you say "locally", does this mean somewhere in your /home/hippietrail/* directory? If so, you can specify in the perl script to use the library of where the module is located.

For example, if you're modules were under the directory "/home/hippietrail/modules", you add a line to the perl script "use lib '/home/hippietrail/modules';" to use that library.

Please correct me if I am wrong.

On Tue, May 12, 2009 at 5:31 PM, Andrew Dunbar <hippytrail@gmail.com> wrote:
I've locally installed the Perl module MediaWiki::API and successfully
made a Perl script which uses it. I've now converted the script to
Fasct CGI and placed it in my public_html with execute permission and
.fcgi extension but it fails because it can't find MediaWiki::API

I don't know if such scripts run as me and should have my path or how
to change the path, if they don't run as me does that mean I have to
get MediaWiki::API installed site-wide?

You can see the error output in this test script:
http://toolserver.org/~hippietrail/trycatch.fcgi

Andrew Dunbar (hippietrail)



--
James R.

[[User:JamesR]]
English Wikipedia Administrator