Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Problem installing GD

by dannoura (Pilgrim)
on Jun 23, 2003 at 09:20 UTC ( [id://268087]=perlquestion: print w/replies, xml ) Need Help??

dannoura has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I downloaded GDGraph 1.42, GD 2.06 and GDTextUtil 0.86 . The problem is that the sample scripts provided with GDGraph aren't working.

The error is:
Can't locate GD/Graph/bars.pm in @INC (@INC contains: c:\perl\lib c:\perl\site\lib).

When I move the Graph directory to a new directory lib/GD I get:
Can't locate GD.pm in @INC (@INC contains: c:\perl\lib c:\perl\site\lib).

When I ran the Makefile.pl it gave warnings about GD and GD::Text not being found.
Does anyone have any idea how to solve this?

Thanks,
Jon.

Replies are listed 'Best First'.
Re: Problem installing GD
by strat (Canon) on Jun 23, 2003 at 09:51 UTC
    You didn't write which perl version you use. Under Windows, I wouldn't install GD per hand because it requires a lot of libs (you have already found out which are required because you read the README from the CPAN package?). But for Activestateperl (or PPM in common), some very nice people share precompiled versions of several modules...

    If you use perl 5.0 or 5.6 or 5.61, have a look at Re: Modules in the Windows environment.

    If you use perl 5.8, try

    c:\> ppm ppm > repository add http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?ur +n:/PPMServer58 ppm> install GD ppm> exit
    (thanks to Wangjianshuo's blog which I found after a lot of googling...)

    Best regards,
    perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

Re: Problem installing GD
by PodMaster (Abbot) on Jun 23, 2003 at 10:20 UTC
    PPM - Programmer's Package Manager version 3.0.1. Copyright (c) 2001 ActiveState SRL. All Rights Reserved. Entering interactive shell. Using Term::ReadLine::Stub as readline lib +rary. Profile tracking is not enabled. If you save and restore profiles manu +ally, your profile may be out of sync with your computer. See 'help profile' + for more information. Type 'help' to get started. ppm> search GD Searching in Active Repositories 1. GD [2.07] Interface to Gd Graphics Library 2. GD-Barcode [1.14] Create barcode image with GD 3. GD-Convert [2.05] additional output formats for GD 4. GD-Dashboard [0.04] Perl module to create JPEG graphics of meters + and dials 5. GD-Graph3d [0.63] Creates 3D charts with GD::Graph and GD. 6. GDGraph [1.42] Produces charts with GD 7. GDGraph-Map [1.05] generate HTML map text for GD::Graph diagramm +s. 8. GDTextUtil [0.86] text utilities for GD ppm> describe 1 ==================== Package 1: Name: GD Version: 2.07 Author: Lincoln Stein (lstein@cshl.org) Title: GD Abstract: Interface to Gd Graphics Library Location: theory Available Platforms: 1. MSWin32-x86-multi-thread-5.8 ==================== ppm> describe --dump 1 ==================== Package 1: <SOFTPKG NAME="GD" VERSION="2,07,0,0"> <TITLE>GD</TITLE> <ABSTRACT>Interface to Gd Graphics Library</ABSTRACT> <AUTHOR>Lincoln Stein (lstein@cshl.org)</AUTHOR> <IMPLEMENTATION> <OS NAME="MSWin32" /> <ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" /> <CODEBASE HREF="http://theoryx5.uwinnipeg.ca/ppms/x86/ +GD.tar.gz" /> </IMPLEMENTATION> </SOFTPKG> ====================
    update: More links for you found at http://crazyinsomniac.perlmonk.org/perl/ppm/README.html#If-you-wanna-install-perl-modules/binary-packages. You may also wanna read the How to RTFM tutorial, if you aren't aware of perldoc and such.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Problem installing GD
by gellyfish (Monsignor) on Jun 23, 2003 at 09:30 UTC

    I guess by the path in your @INC that you are Activestate Perl - in which case you need to install the modules using PPM - i.e. at a command prompt you need to type:

    ppm install GD ppm install GDGraph
    I don't think there is a package for GDTextUtil available

    /J\
    
      Thanks for the suggestion but when I tried it I got:

      Error: PPD for 'GD.ppd' could not be found

      Btw, I don't know if this is useful but, installation of LWP worked fine.

        Can you post the output of perl -v and ppm set please. You probably have PPM pointing at some wierd repository.

        /J\
        
Re: problems installing GD module
by strat (Canon) on Jun 24, 2003 at 09:02 UTC
    This question was already posed yesterday. See Problem installing GD

    Best regards,
    perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

    <update>This Node was reparented (thanks to tye) and so doesn't make any more sense</update>

      Yes, I was the one who asked it. For some reason I wasn't able to make any of the fixes (which admittedly looked very promising at first) work.
        Then you need to give us some more help. Without error messages or the like, nobody will be able to help you.

        What error messages come up if you type in your command-prompt:

        ppm install http://theoryx5.uwinnipeg.ca/ppms/GD.ppd

        Best regards,
        perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://268087]
Approved by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2025-04-29 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.