This question about Using an extension: Needs followup in Tasks

File does not exist errors on pages with Latex?

I just installed this plugin, and when I enable it and try to go to the LatexModePlugin topic in the System web (or any similar topic containing the plugin macros), I get the following error:

Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

exec failed: No such file or directory

The webserver log shows the following:
[Thu Sep 09 06:51:40 2010] [error] [client 192.168.1.65] exec failed: No such file or directory at /var/www/foswiki/lib/Foswiki/Sandbox.pm line 471., referer: http://intranet-new/foswiki/bin/view/System/InstalledPlugins

Any idea what might be wrong?

-- LeilaPearson - 09 Sep 2010

Also, I tried re-installing the plugin to see if there was any dependency I missed. The ouput is here:

### LatexModePlugin Installer ###

This installer must be run from the root directory of your Foswiki
installation.
    * You can abort the script at any point and re-run it later
    * If you answer 'no' to any questions you can always re-run
      the script again later
##########################################################
Checking dependency on Image::Info....
Image::Info v1.28 loaded
##########################################################
Checking dependency on File::Basename....
File::Basename v2.77 loaded
##########################################################
Checking dependency on File::Copy....
File::Copy v2.<script type="text/javascript" src="http://foswiki.org/pub/System/TinyMCEPlugin/tinymce/jscripts/tiny_mce/themes/advanced/langs/en.js?v=%24Rev:%205860%20%282009-12-28%29%20%24"></script><script type="text/javascript" src="http://foswiki.org/pub/System/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/foswikibuttons/langs/en.js?v=%24Rev:%205860%20%282009-12-28%29%20%24"></script><script type="text/javascript" src="http://foswiki.org/pub/System/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/foswikiimage/langs/en.js?v=%24Rev:%205860%20%282009-12-28%29%20%24"></script>14 loaded
##########################################################
Checking dependency on File::Temp....
File::Temp v0.22 loaded
##########################################################
Checking dependency on File::Path....
File::Path v2.0703 loaded
##########################################################
Checking dependency on Digest::MD5....
Digest::MD5 v2.39 loaded
I will keep a backup of any files I overwrite.Archive has already been unpacked.
# the installer script found the following external programs needed by
# the LatexModePlugin.  Add the following lines to the LocalLib.cfg file,
# and modify as necessary.
$Foswiki::cfg{Plugins}{LatexModePlugin}{convert} = '/usr/bin/convert';</span>

### Installation finished ###
Installer ran without errors

Installation finished.
Note: Before you can use newly installed plugins, you must enable them in the "Plugins" section in the main page. 

Return to configuration 

The only thing I noticed there is near the end about the path to "convert". I added that line to LocalSite.cfg and it didn't seem to help this issue. It should be LocalSite.cfg - not LocalLib.cfg right? I tried both. Neither seemed to fix this issue.

-- LeilaPearson - 09 Sep 2010

I can now answer my own question. The problem seems to be that I was missing some items from LocalSite.cfg:

* $Foswiki::cfg{Plugins}{LatexModePlugin}{latex} = '/usr/bin/latex';
* $Foswiki::cfg{Plugins}{LatexModePlugin}{pdflatex} = '/usr/bin/pdflatex';
* $Foswiki::cfg{Plugins}{LatexModePlugin}{dvips} = '/usr/bin/dvips';
* $Foswiki::cfg{Plugins}{LatexModePlugin}{dvipng} = '/usr/bin/dvipng';
* $Foswiki::cfg{Plugins}{LatexModePlugin}{mimetex} = '/usr/bin/mimetex';

I didn't realize I needed to add them, since all my paths already matched what I thought to be the default paths as documented above and on the plugin topic. Once I added these lines though, the plugin started working.

I do think there should be some follow up in tasks for this - perhaps to write the default lines above to LocalSite.cfg as part of the plugin install?

-- LeilaPearson - 18 Sep 2010

QuestionForm edit

Subject Using an extension
Extension LatexModePlugin
Version Foswiki 1.0.9
Status Needs followup in Tasks
Topic revision: r3 - 18 Sep 2010, LeilaPearson
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy