Home: Perl Programming Help: Advanced:
PGPLOT on windowsXP fails with following Error Message



bam_usic
Novice

Apr 16, 2010, 4:17 PM


Views: 3770
PGPLOT on windowsXP fails with following Error Message

I am trying to run a programme which is using PGPLOT.When I call it from browser I get following error message.
--------
%PGPLOT, Unable to read font file: grfont.dat %PGPLOT, Use environment variable PGPLOT_FONT to specify the location of the PGPLOT grfont.dat file. %PGPLOT, PGENV: no graphics device has been selected %PGPLOT, PGBBUF: no graphics device has been selected %PGPLOT, PGMTXT: no graphics device has been selected %PGPLOT, PGMTXT: no graphics device has been selected %PGPLOT, PGMTXT: no graphics device has been selected %PGPLOT, PGEBUF: no graphics device has been selected
----------
grfont.dat file is on on my system under c:\XAMPP\perl\lib and I have set it as enviorment variable PGPLOT_FONT.
Any help will be much appreciated.
Thanks,


roolic
User

Apr 16, 2010, 10:18 PM


Views: 3763
Re: [bam_usic] PGPLOT on windowsXP fails with following Error Message

probably the perl interpreter can not handle the system variable or this variable is not defined for windows user executing the script.

check the environment variables list via perl

Code
use Data::Dumper; 
print Dumper(\%ENV);

or set the required variable directly in the script (if it's can not be retrieved from the system)

Code
$ENV{PGPLOT_FONT} ||= 'c:\XAMPP\perl\lib\grfont.dat';



(This post was edited by roolic on Apr 16, 2010, 10:21 PM)


bam_usic
Novice

Apr 18, 2010, 5:07 AM


Views: 3753
Re: [roolic] PGPLOT on windowsXP fails with following Error Message

thanks for your response.
I added
$ENV{PGPLOT_FONT} ||= 'c:\XAMPP\perl\lib\grfont.dat';
But I still get same response.

%PGPLOT, Unable to read font file: grfont.dat %PGPLOT, Use environment variable PGPLOT_FONT to specify the location of the PGPLOT grfont.dat file. %PGPLOT, PGENV: no graphics device has been selected %PGPLOT, PGBBUF: no graphics device has been selected %PGPLOT, PGMTXT: no graphics device has been selected %PGPLOT, PGMTXT: no graphics device has been selected %PGPLOT, PGMTXT: no graphics device has been selected %PGPLOT, PGEBUF: no graphics device has been selected
thanks,