Hi guys,

Has anyone gotten the gnuplot php script to work on openbsd/mediawiki?
Here are the install instructions on the wikimedia website:

($WIKI is the wiki home directory)

    * Prerequisite: Gnuplot 4.0 download
    * OR: install your Distribution-Package with support for gd ggi
plotutils gnuplot
    * Store the script below in the file Gnuplot.php to the directory
$WIKI/extensions

cd $WIKI/extensions
svn co http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Gnuplot

    * Append the following line to the file $WIKI/LocalSettings.php:

include("extensions/Gnuplot/Gnuplot.php");
$wgGnuplotCommand = '<yourGnuplotPath>';

    Windows example path:

$wgGnuplotCommand = "C:\\Program files\\xampp\\gnuplot\\bin\\pgnuplot.exe";

    * Make sure that your directory for file uploads is writable
(usually: $WIKI/images), which it usually will be.
    * If you want to allow data to be plotted from a file, then file
uploading must be enabled: the type of file for the gnuplot input data
(the file extension, e.g. 'dat') must be included by adding the
following command to $WIKI/LocalSettings.php (Add all extensions you
want to allow for file upload, e.g. 'jpg', 'ogg', ...):

$wgFileExtensions = array('dat', 'png', '...');

The gnuplot binary is at /usr/local/bin/gnuplot and I put that in, but
I get no output when using gnuplot inline. Is this because apache is
chrooted? Also, it says it requires gd, ggi, and plotutils. Are all
this packages available on openbsd?

Thanks,
Vivek

Reply via email to