Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Plot from a script

Status
Not open for further replies.

dod123

Programmer
Dec 13, 2004
20
IL
Hello al;

I want to creat 2d,3d,pie... plots from my scripts.
I read about GD, GD:pie.... modules, But I have many dificulties installing them.
What modules I need to install before installing the GD?

Thanks.
 
If you try to install it from ppm it will not work(not yet, somewhere in time maybe it will).

so after you download the GD from cpan, before you try to install it, these are the things you have to have


a. Perl 5.6.0 or higher:

b. The gd graphics library:

c. The PNG graphics library:

d. The zlib compression library:

(OPTIONAL)
e. The FreeType font rendering library for TrueType fonts:

f. The JPEG library, version 6b or later:
ftp://ftp.uu.net/graphics/jpeg/

g. The XPM library, a standard part of modern X Windows
distributions. If you don't have a modern
version of X, don't try to get XPM working.

I hope it will work.
 
"If you try to install it from ppm it will not work"

Sorry, but I have to disagree. GD via PPM from ActiveState is working for both 5.6 and 5.8. ActiveState compile the GD libraries with the distribution, which the CPAN version doesn't.

I have been using it very successfully with some image manipulation code for a couple of years. I have yet to investigate the pie chart abilities, but once GD is installed successfully then it should be a matter of using the appropriate modules.

Barbie
Leader of Birmingham Perl Mongers
 
This is what i get for GD with ppm


C:\>ppm
PPM - Programmer's Package Manager version 3.1.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a devision of Sophos.

Entering interactive shell. Using Term::ReadLine::Stub as readline library.

Type 'help' to get started.

ppm> search GD
Searching in Active Repositories
1. Finance-Bank-ES-INGDirect [0.01] Check your INGDirect bank accounts from Perl
2. Finance-Bank-ES-INGDirect [0.01] Check your INGDirect bank accounts from Perl
3. GD [2.19] Interface to Gd Graphics Library
4. GD-Barcode [1.15] Create barcode image with GD
5. GD-Barcode [1.13] Create barcode image with GD
6. GD-Barcode [1.14] Create barcode image with GD
7. GD-Barcode [1.15] Create barcode image with GD
8. GD-Convert [2.05] additional output formats for GD
9. GD-Dashboard [0.04] Perl module to create JPEG graphics of meters and dials
10. GD-Dashboard [0.04] Perl module to create JPEG graphics of meters and dials
11. GD-Graph3d [0.63] Creates 3D charts with GD::Graph and GD.
12. GDBM_File [0.98.12.21] The GDBM_File for Win32 X86
13. GDBUI [0.821] A fully-featured shell-like command line environment
14. GDBUI [0.61] A Bash/GDB-like command-line environment with autocompletion.
15. GDBUI [0.821] A fully-featured shell-like command line environment
16. GDGraph [1.43] Produces charts with GD
17. GDGraph-Map [1.05] generate HTML map text for GD::Graph diagramms.
18. GDTextUtil [0.86] text utilities for GD
19. SVG-GD [0.07]
20. SVG-GD [0.07] (none)
ppm> install GD
Error: no suitable installation target found for package GD.
 
Thanks a lot for help;
When I tried to install the GD pacage with PPM i got:

C:\Perl\GD>ppm install GD.ppd
Installing package 'GD.ppd'...
Error installing package 'GD.ppd': Read a PPD for 'GD.ppd', but it is not intended for this build of Perl (MSWin32-x86-multi-thread)

Actualy I am still not sure how to install.
 
This is taken directly from ActiveState:

The GD module currently isn't available in the ActiveState PPM repository. This is because it is very difficult to build and is not suitable for ActiveState's automated build system, as it requires quite a external libraries. PPMs for the GD module can be found in other repositories and installed as follows:

ppm install
This will install the GD PPM from the University of Winnipeg's version 5.8 PPM repository. For the 5.6 PPM repository, use:

ppm install


Michael Libeson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top