Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

installing perl GD module

by boby (Initiate)
on Jun 15, 2007 at 17:56 UTC ( [id://621491]=perlquestion: print w/replies, xml ) Need Help??

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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: installing perl GD module
by runrig (Abbot) on Jun 15, 2007 at 17:59 UTC
    We answered this in the CB (and THEN you posted this?!?!). You didn't install the module(s), you copied pm files. That doesn't work for modules that need to be compiled.

    Here's something possibly helpful planetscape posted in the CB: Installing Modules.

Re: installing perl GD module
by planetscape (Chancellor) on Jun 16, 2007 at 12:33 UTC

    While I'm afraid I simply don't recall details such as the system on which you are trying to install GD::whatever (I stopped reading your CB sends once it became obvious you were not listening to the advice you were being given by bart, runrig, and others), I will nevertheless try to recap that advice, in the hopes that you are listening now.

    1. Install libgd. To install libgd, follow the instructions here.
    2. Install GD::whatever. Use Bundle::CPAN or whatever is appropriate for your system to actually install GD::whatever. As was pointed out in the CB and elsewhere, simply copying .pm modules to various and random "error locations" is insufficient to actually install modules that require compilation. Hint: GD::whatever requires compilation.
    3. If you are still having problems, please read the excellent and copious help found in our fabulous Tutorials section, specifically Installing Modules.

    HTH,

    planetscape
      Following your advice i always got the error message as following:

      Making install in src

      make1: Entering directory `/home/clad/zzx/software/libgd-2.1.1/src'

      make2: Entering directory `/home/clad/zzx/software/libgd-2.1.1/src'

      /usr/bin/mkdir -p '/usr/local/lib'

      /usr/bin/mkdir: cannot create directory ‘/usr/local/lib’: File exists

      make2: *** install-libLTLIBRARIES Error 1

      make2: Leaving directory `/home/clad/zzx/software/libgd-2.1.1/src'

      make1: *** install-am Error 2<

      make1: Leaving directory `/home/clad/zzx/software/libgd-2.1.1/src'

      make: *** install-recursive Error 1

      Then, i tried to used sources fetched from git and ran bootstrap.sh. The error message was "Can't find naturaldocs; not generating user manual."

      I was really confused about what to do now.

      I really appreciate it if you could spare some time and help me out.

      I was really confused about what to do now.

      I really appreciate it if you could spare some time and help me out.

      Recently,i was trying to install software circos, and stuck in the problem of installing GD modules. Actually, I have tried install the GD modules as following:
      $cpanm GD --> Working on GD Fetching http://www.cpan.org/authors/id/L/LD/LDS/GD-2.56.tar.gz ... OK Configuring GD-2.56 ... N/A ! Configure failed for GD-2.56. See /home/clad/.cpanm/work/1448933575. +20068/build.log for details.
      Then i checked the build.log and found that libgd 2.0.28 or higher was needed.
      cpanm (App::cpanminus) 1.6922 on perl 5.016003 built for x86_64-linux- +thread-multi Work directory is /home/clad/.cpanm/work/1448933575.20068 You have make /usr/bin/make You have LWP 6.05 You have /usr/bin/tar: tar (GNU tar) 1.26 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. You have /usr/bin/unzip Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (7.10) Checking if you have ExtUtils::Install 1.46 ... Yes (1.58) Searching GD on cpanmetadb ... --> Working on GD Fetching http://www.cpan.org/authors/id/L/LD/LDS/GD-2.56.tar.gz -> OK Unpacking GD-2.56.tar.gz Entering GD-2.56 Checking configure dependencies from META.json Checking if you have Module::Build 0.42 ... Yes (0.4214) Checking if you have Module::Build 0.36 ... Yes (0.4214) Configuring GD-2.56 Running Build.PL **UNRECOVERABLE ERROR** Could not find gdlib-config in the search path. Please install libgd 2 +.0.28 or higher. Running Makefile.PL Notice: Type perl Makefile.PL -h for command-line option summary. **UNRECOVERABLE ERROR** Could not find gdlib-config in the search path. Please install libgd 2 +.0.28 or higher. If you want to try to compile anyway, please rerun this script with th +e option --ignore_missing_gd. -> N/A -> FAIL Configure failed for GD-2.56. See /home/clad/.cpanm/work/14489 +33575.20068/build.log for details.
      Thus, i installed the libgd. Following the README.TXT:
      1. Type './configure' 2. Type 'make install'
      Once again, i got another problem.
      $make install Making install in src make[1]: Entering directory `/home/clad/zzx/software/libgd-2.1.1/src' make[2]: Entering directory `/home/clad/zzx/software/libgd-2.1.1/src' /usr/bin/mkdir -p '/usr/local/lib' /usr/bin/mkdir: cannot create directory ‘/usr/local/lib’: File exists make[2]: *** [install-libLTLIBRARIES] Error 1 make[2]: Leaving directory `/home/clad/zzx/software/libgd-2.1.1/src' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/clad/zzx/software/libgd-2.1.1/src' make: *** [install-recursive] Error 1

      Then, i tried to used sources fetched from git and ran bootstrap.sh. The error message was "Can't find naturaldocs; not generating user manual."

      I was really confused about what to do now.

      I really appreciate it if you could spare some time and help me out.

      Best regards.

Re: installing perl GD module
by syphilis (Archbishop) on Jun 16, 2007 at 13:35 UTC
    Ummmmmm ... your post now looks nothing like my recollection of it from a few hours ago. (Perhaps my memory is letting me down.)

    One of the nice things about being able to edit one's posts is that one can fix errors (eg typos, formatting) - but if you're going to move the goalposts by more than a kilometre or two, it's generally considered good etiquette to acknowledge that you have done so :-)

    I don't have an answer to your question as it now stands - but it at least looks sane.

    The following code produces the same error as you reported:
    use warnings; use strict; my $x = foo; print $x, "\n"; sub foo {return 42}
    But the following code runs fine:
    use warnings; use strict; my $x = foo(); print $x, "\n"; sub foo {return 42}
    On the surface, it looks like it may be a bug in GDGraph, but it seems that no such bug has been reported ... perhaps it's something else. Answers to the following questions may help:
    1) What version of perl do you have ?
    2) What version of GD (the perl module) do you have ?
    3) What version of the GDGraph module do you have ?
    4) What version of gd (the C library) do you have ?

    Cheers,
    Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-22 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found