Problem for calling gnuplot via PHP using xampp server

Irgendwelche Probleme mit XAMPP für Linux? Dann ist hier genau der richtige Ort um nachzufragen.

Problem for calling gnuplot via PHP using xampp server

Postby catq » 28. June 2011 02:00

Hello,
I am trying to create a data plot with gnuplot and view the image via website.
so I created a simple test.php file
<?php
$file= `perl createpng.pl 2>&1`;
echo "$file<br>";
echo "<img src=$file alt=test /><br>\n";
?>
it calls a local perl file 'createpng.pl' which create a png file.

This perl script works well when I run it in the shell terimal.

However, when I load the test.php file, the following error message prompt.

/usr/bin/gnuplot: /opt/lampp/lib/libjpeg.so.62: no version information available (required by /usr/lib/libwx_gtk2u_core-2.8.so.0)
/usr/bin/gnuplot: /opt/lampp/lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/i386-linux-gnu/libstdc++.so.6)
/usr/bin/gnuplot: /opt/lampp/lib/libz.so.1: no version information available (required by /usr/lib/i386-linux-gnu/libgio-2.0.so.0)
/usr/bin/gnuplot: /opt/lampp/lib/libjpeg.so.62: no version information available (required by /usr/lib/i386-linux-gnu/libtiff.so.4) exit value = 1 signal number = 0 dumped core = 0 at /usr/local/share/perl/5.10.1/Chart/Graph/Gnuplot.pm line 766 test.png

I checked every libs, it seems ok. there's no missing libs: Anyone can help me. Thank you.

==========================================================
bio3@bio3-G41MT-S2:/opt/lampp/htdocs/test$ locate libjpeg
/opt/lampp/lib/libjpeg.so
/opt/lampp/lib/libjpeg.so.62
/opt/lampp/lib/libjpeg.so.62.0.0
/usr/lib/i386-linux-gnu/libjpeg.so.62
/usr/lib/i386-linux-gnu/libjpeg.so.62.0.0
/usr/share/doc/libjpeg62
/usr/share/doc/libjpeg62/README.gz
/usr/share/doc/libjpeg62/changelog.Debian.gz
/usr/share/doc/libjpeg62/copyright
/var/lib/dpkg/info/libjpeg62:i386.list
/var/lib/dpkg/info/libjpeg62:i386.md5sums
/var/lib/dpkg/info/libjpeg62:i386.postinst
/var/lib/dpkg/info/libjpeg62:i386.shlibs
==============================================================
catq
 
Posts: 1
Joined: 27. June 2011 10:05

Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 2 guests