I'm haveing a problem with a script that is not working, the error is the dreaded "Internal Server Error". The app in question is SpellChecker, a plug-in for HTMLarea, a WYSIWYG text box for web pages. It's a lot of JavaScript with some perl cgi backend.

So, I did this:

[root@localhost SpellChecker]# perl -wc spell-check-logic.cgi
Can't locate Text/Aspell.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at spell-check-logic.cgi line 16.
BEGIN failed--compilation aborted at spell-check-logic.cgi line 16.
I don't know what any of this means. But, I do seem to have aspell:

[root@localhost /]# find ./ -name aspell
./usr/share/aspell
./usr/bin/aspell
./usr/include/aspell
./usr/lib/aspell
Now, it has been suggested to me that Text::Aspell or XML:OM may not be installed. I suspect because I use an application on the same server that uses Aspell, that it is installed. And from the SpellChecker readme:

The following Perl modules are required:

* Text::Aspell
* XML:OM
* CGI

Of these, only Text::Aspell might need to be installed manually. The others are likely to be available by default in most Perl distributions.
But this may not be the case, so: How can I test to see if Text::Aspell and XML:: DOM are present?