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: Beginner:
new problem: building PGPLOT?

 



Ai52487963
Novice

Jun 21, 2009, 1:47 PM

Post #1 of 6 (6946 views)
new problem: building PGPLOT? Can't Post

Running windows XP (win32), Active Perl 1005, Perl 5.10 and PDL 2.4.4

So now I'm trying to do some plotting in PDL, but I I get an error message:


Code
 
perldl> use PDL::Graphics::PGPLOT
Can't locate PGPLOT.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) a
t C:/Perl/site/lib/PDL/Graphics/PGPLOT/Window.pm line 2272.
BEGIN failed--compilation aborted at C:/Perl/site/lib/PDL/Graphics/PGPLOT/Window
.pm line 2272.
Compilation failed in require at C:/Perl/site/lib/PDL/Graphics/PGPLOT.pm line 14
8.
BEGIN failed--compilation aborted at C:/Perl/site/lib/PDL/Graphics/PGPLOT.pm lin
e 148.
Compilation failed in require at (eval 46) line 5.
BEGIN failed--compilation aborted


I have the PGPLOT.pm and Window.pm files in all the right places, so I don't understand why I keep getting this error.

The documentation from CPAN says I need to build PGPLOT myself, but my level of coding experience is far too low for that.

Do I have to build PGPLOT myself or is there another, simpler way to install it via a ppm command?


KevinR
Veteran


Jun 21, 2009, 3:37 PM

Post #2 of 6 (6943 views)
Re: [Ai52487963] new problem: building PGPLOT? [In reply to] Can't Post

Generally with ActivePerl you use the PPM application to install modules. See the PPM help files for details.
-------------------------------------------------


FishMonger
Veteran / Moderator

Jun 21, 2009, 8:37 PM

Post #3 of 6 (6936 views)
Re: [Ai52487963] new problem: building PGPLOT? [In reply to] Can't Post


In Reply To
Running windows XP (win32), Active Perl 1005, Perl 5.10 and PDL 2.4.4

So now I'm trying to do some plotting in PDL, but I I get an error message:


Code
 
perldl> use PDL::Graphics::PGPLOT
Can't locate PGPLOT.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) a
t C:/Perl/site/lib/PDL/Graphics/PGPLOT/Window.pm line 2272.
BEGIN failed--compilation aborted at C:/Perl/site/lib/PDL/Graphics/PGPLOT/Window
.pm line 2272.
Compilation failed in require at C:/Perl/site/lib/PDL/Graphics/PGPLOT.pm line 14
8.
BEGIN failed--compilation aborted at C:/Perl/site/lib/PDL/Graphics/PGPLOT.pm lin
e 148.
Compilation failed in require at (eval 46) line 5.
BEGIN failed--compilation aborted


I have the PGPLOT.pm and Window.pm files in all the right places, so I don't understand why I keep getting this error.

The documentation from CPAN says I need to build PGPLOT myself, but my level of coding experience is far too low for that.

Do I have to build PGPLOT myself or is there another, simpler way to install it via a ppm command?


My answer is the same as the one I gave in a very similar question that you deleted http://perlguru.com/gforum.cgi?post=39184;sb=post_latest_reply;so=ASC;forum_view=forum_view_collapsed;;page=unread#unread (the only difference being the name of the module).

C:\>ppm install PGPLOT


Ai52487963
Novice

Jun 21, 2009, 8:40 PM

Post #4 of 6 (6934 views)
Re: [KevinR] new problem: building PGPLOT? [In reply to] Can't Post

edit:

Ok, I tried the

Code
 ppm install PGPLOT

command to no avail. Result:

Code
ppm install failed: Can't find any package that provides PGPLOT



(This post was edited by Ai52487963 on Jun 21, 2009, 8:42 PM)


FishMonger
Veteran / Moderator

Jun 21, 2009, 8:58 PM

Post #5 of 6 (6930 views)
Re: [Ai52487963] new problem: building PGPLOT? [In reply to] Can't Post

You need to add additional repositories. Make sure you add each of the repos for the version of Perl that you have installed.

http://ppm4.activestate.com/


Ai52487963
Novice

Jun 21, 2009, 9:50 PM

Post #6 of 6 (6928 views)
Re: [FishMonger] new problem: building PGPLOT? [In reply to] Can't Post


In Reply To
You need to add additional repositories. Make sure you add each of the repos for the version of Perl that you have installed.

http://ppm4.activestate.com/


Ok, cool. I've got PGPLOT installed and working, but now when I try to plot anything or bring up a graphics window, I keep getting an error saying everything is an invalid device type:


Code
perldl> imag (sin(rvals(200,200)+1)) 
%PGPLOT, Unable to read font file: grfont.dat
%PGPLOT, Use environment variable PGPLOT_FONT to specify the location of the PG
PLOT grfont.dat file.
Graphics device/type (? to see list, default /NULL): ?
PGPLOT v5.2.2 Copyright 1997 California Institute of Technology
Interactive devices:
/GW (grwnd.exe on Win32)
/CGW (grwnd.exe on Win32; colors compatible with /CPS)
Non-interactive file formats:
/GIF (Graphics Interchange Format file, landscape orientation)
/VGIF (Graphics Interchange Format file, portrait orientation)
/NULL (Null device, no output)
/PNG (Portable Network Graphics file)
/TPNG (Portable Network Graphics file - transparent background)
/PS (PostScript file, landscape orientation)
/VPS (PostScript file, portrait orientation)
/CPS (Colour PostScript file, landscape orientation)
/VCPS (Colour PostScript file, portrait orientation)
Graphics device/type (? to see list, default /NULL): /GIF
%PGPLOT, Unrecognized device type
%PGPLOT, Invalid device specification: /GIF
Graphics device/type (? to see list, default /NULL): /PNG
%PGPLOT, Unrecognized device type
%PGPLOT, Invalid device specification: /PNG
Graphics device/type (? to see list, default /NULL): PNG
%PGPLOT, Device type omitted
%PGPLOT, Invalid device specification: PNG
Graphics device/type (? to see list, default /NULL): \PNG
%PGPLOT, Device type omitted
%PGPLOT, Invalid device specification: \PNG
Graphics device/type (? to see list, default /NULL): /GW
%PGPLOT, Unrecognized device type
%PGPLOT, Invalid device specification: /GW
Graphics device/type (? to see list, default /NULL): /GGW
%PGPLOT, Unrecognized device type
%PGPLOT, Invalid device specification: /GGW
Graphics device/type (? to see list, default /NULL): /UGIF
%PGPLOT, Unrecognized device type
%PGPLOT, Invalid device specification: /UGIF
Graphics device/type (? to see list, default /NULL): /NULL
%PGPLOT, Unrecognized device type
%PGPLOT, Invalid device specification: /NULL
Graphics device/type (? to see list, default /NULL): /PS
%PGPLOT, Unrecognized device type
%PGPLOT, Invalid device specification: /PS
Graphics device/type (? to see list, default /NULL): /CPS
%PGPLOT, Unrecognized device type
%PGPLOT, Invalid device specification: /CPS
Graphics device/type (? to see list, default /NULL):


I take it I have to do something with the font .dat file?

 
 


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

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