CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



bam_usic
Novice

Apr 16, 2010, 4:17 PM

Post #1 of 3 (2391 views)
PGPLOT on windowsXP fails with following Error Message Can't Post

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

Post #2 of 3 (2384 views)
Re: [bam_usic] PGPLOT on windowsXP fails with following Error Message [In reply to] Can't Post

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

Post #3 of 3 (2374 views)
Re: [roolic] PGPLOT on windowsXP fails with following Error Message [In reply to] Can't Post

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,

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives