Im trying to install the module GD::Graph in the programming language Perl.
im trying to install it from CPAN (http://cpan.org) and im doing it in
order to be able to draw 2d graphs in Perl.
In dos command prompt i type: cpan
and in there i type: install GD::Graph
then the computer starts installing the GD::Graph module for me, but
it always asks me for the location of some libgd.
I dont know anything about any libgd and i dont think its on my hard drive.
How do i install GD::Graph on windows xp? |
Request for Question Clarification by
hummer-ga
on
31 Aug 2006 18:00 PDT
Hi hermannjens,
Here is one idea (to either try now or when all else fails). The newer
versions of GD require compiling many external libraries. The last GD
version that came as a complete package (no compiling required) was
version 1.19, so, you could consider trying that version.
"...just go to CPAN and get GD version 1.19. It only produces GIFs,
but it uses a self- contained version of libgd and requires no
external libraries at all."
http://www.cpan.org/modules/by-authors/Lincoln_D_Stein/GD-2.12.readme
"If you get frustrated with not being able to compile libgd, GD, or
one of the many external libraries needed by this module, just go to
CPAN and get GD version 1.19. It only produces GIFs, but it uses a
self-contained version of libgd and requires no external libraries at
all."
http://www.cpan.org/modules/by-authors/Lincoln_D_Stein/GD-2.12.readme
Version 1.19
http://cpan.uchicago.edu/pub/CPAN/authors/id/D/DR/DROBERTS/
Otherwise...you'll find what you need at the following website.
"Note on 11/17/04 : making perl modules require libgd... This means
you first have to build libgd (from http://www.boutell.com/gd/) which
itself might require libpng or libjpg or libz. Then you can install
perl module using perl -MCPAN -e 'install GD' and then perl -MCPAN -e
'install GD::Graph' This last one will ask for GD:Text dependency
which seems to be a replacement for GD::TextUtil."
http://wiki.bestpractical.com/index.cgi?RT3StatisticsPackage
GD Graphic Library
http://www.boutell.com/gd/
GD Graphic Library Manual
http://www.boutell.com/boutell/gdmanualtest.html
Good luck! If v.1.19 works for you, or if you don't need assistance in
compiling your library, please let me know and I'll post it as an
answer. Otherwise, I'm sure another researcher will be able to walk
you through it.
Regards,
hummer
|
Clarification of Question by
hermannjens-ga
on
04 Sep 2006 13:28 PDT
Okey so i download this gd module, unzip it and put it under
c:/perl/lib/modulename.
Then i can say in my program: use GD;
And after that i can start to use the GD module.
But that would only allow me to use the GD module, not the GD::Graph module, right?
Dont i then need to install the gd::graph module somehow?
Can you send me the excact link to download gd v.1.19?
|
Request for Question Clarification by
hummer-ga
on
04 Sep 2006 14:24 PDT
Hi hermannjens,
Here's another directory of modules:
GD-1.19.tar.gz
http://www.cpan.org/modules/by-module/GD/
First let me be clear that I am not an expert in this field and I only
posted the version 1.9 suggestion as a possible option. Ok, that
said, version 1.9 should be all set to go, ("no external libraries at
all" required).
"...just go to CPAN and get GD version 1.19. It only produces GIFs,
but it uses a self- contained version of libgd and requires no
external libraries at all."
http://www.cpan.org/modules/by-authors/Lincoln_D_Stein/GD-2.12.readme
If someone else can help you (did you see Kai's comment?), that is
fine with me and I'll be glad to hear that you found a solution.
Otherwise, 1.9 sounds like it may help you (but I have no personal
experience with it).
Good luck,
hummer
|
Clarification of Question by
hermannjens-ga
on
05 Sep 2006 14:44 PDT
i go to "http://www.cpan.org/modules/by-module/GD/"
and download "GD-1.19.tar.gz"
i then extract it and place that folder under "c:perl/lib/".
Then i should be able to use that module... right?
so i type use "GD;" in my perl program, but then it says:
"Cant locate GD.pm in @INC...".
Im stuck on that.
|
Request for Question Clarification by
hummer-ga
on
06 Sep 2006 05:28 PDT
Hi hermannjens,
Did you look at the Read-Me file (link found in the same directory -
change 1.18 to 1.19 in instructions)?
2. Unpack the tar file:
zcat GD-1.18.tar.gz | tar xvf -
This will create the directory GD-1.18. Do NOT install this directory
into the Perl source tree.
3. To compile GD.pm on a system that supports dynamic linking:
a. cd GD-1.18
b. perl Makefile.PL
c. make
d. make install
This will create GD.pm and copy it and its dynamically loadable module
GD.so into the Perl library tree..." etc...
http://www.cpan.org/modules/by-module/GD/GD-1.19.readme
Good luck,
hummer
|
Request for Question Clarification by
hummer-ga
on
06 Sep 2006 05:34 PDT
There are also instructions for later versions, for example:
version 2.35
http://www.cpan.org/modules/by-module/GD/GD-2.35.readme
in this directory:
http://www.cpan.org/modules/by-module/GD/
hummer
|
Clarification of Question by
hermannjens-ga
on
06 Sep 2006 11:27 PDT
When i type "make" under "c:/perl/lib/gd-1.19/"
the computer give back: "make is not recognized as an internal
command, operable program or batch file."
Maybe the problem is that my computer doesnt "support dynamic
linking", whatever that means.
where can i get this "make" stuff?
|
Clarification of Question by
hermannjens-ga
on
07 Sep 2006 12:07 PDT
i figured that out.
I type nmake instead of make.
But nonetheless, the computer returns "fatal error".
|
Request for Question Clarification by
hummer-ga
on
07 Sep 2006 13:41 PDT
Hi hermannjens,
You realize this is the blind leading the blind, right? I'm only
continuing with this because noone else has stepped forward to help
and if you and I actually get you going, it will be nothing short of a
miracle. I take it you've been to the following link?
Installing NMake
Run the downloaded file (exe) to extract it. Copy both the NMAKE.EXE
and the NMAKE.ERR file to your Perl bin directory, normally
C:\Perl\bin. Make sure that you copy the NMAKE.ERR file as well.
Example of an NMake session
Normally building Perl modules and installing them consist of the following steps:
1. perl Makefile.pl
2. make
3. make test
4. make install
http://johnbokma.com/perl/make-for-windows.html
If 1.19 doesn't work for you, you could try 1.18.
hummer
|
Clarification of Question by
hermannjens-ga
on
09 Sep 2006 12:48 PDT
i solved it!
you type the following in cmd:
ppm install http://theoryx5.uwinnipeg.ca/ppms/GD.ppd
ppm install http://theoryx5.uwinnipeg.ca/ppms/GDTextUtil.ppd
ppm install http://theoryx5.uwinnipeg.ca/ppms/GDGraph.ppd
ppm install http://theoryx5.uwinnipeg.ca/ppms/GD-Graph3d.ppd
And then you have GD::Graph installed. (:
Thanks for the help.
Hermann Jens,
Iceland
|
Request for Question Clarification by
hummer-ga
on
09 Sep 2006 13:22 PDT
Thanks for the great news, Hermann Jens, congratulations! I'm sorry
that I wasn't able to help you, although I tried :( I bet I know
what you will be doing for the rest of the weekend :) Take care,
hummer
|