Tags:
create new tag
view all tags

Question

I have installed the TWiki:ChartPlugin but it is missing the Perl module GD, the error is shown on the ChartPlugin page itself, where the examples is where it shows how it looks if it is installed. The error is: "ChartPlugin error: Required Perl module 'GD' not found"

I got hold of a copy of a file "GD.pm" and placed it in the /lib and /lib/TWiki and /lib/Twiki/Plugins and it is still not found??

Is it because it is not found by perl standard paths or what?

How to I add it to Perls path, I do not have root priviligies on the host.

  • TWiki version: 01 Dec 2001
  • Perl version:5.005_03 built for sun4-solaris
  • Web server & version:Apache 2.0.39
  • Server OS: Solaris 8
  • Web browser & version: Netscape 7, 4.76, 4.78
  • Client OS: Solaris 8

-- FredrikLarsson - 29 Jan 2003

Answer

You need a custom compilation and proper installation of Lincoln Stein's GD.pm, a perl interface to Thomas Boutell's gd graphics library.

  • Download GD.pm.tar.gz from http://stein.cshl.org/WWW/software/GD/.
  • Unpack the archive in temp directory (tar -xzf <path>/GD.pm.tar.gz).
  • cd GD-2.06
  • Follow the instructions in README:
    • perl Makefile.PL (make appropriate choices); without root access, append LIB=/<targetdir>
    • make
    • make test
    • make install
For my installation (on SuSE 8.2), I first had to install libpng-devel from SuSE installation DVD and I had to exclude Freetype.

Since I originally had the same problem, I think the dependency section in TWiki:ChartPlugin should be updated.

-- NilsBluemer - 10 Sep 2003

If you are having trouble making GD, you might check your libgd version for compatibility. At the shell type:

  • gdlib-config
  • gdlib-config --all

First command explains GD library version options, second shows the information. Problem that I ran into was version incompatibility between GD.PM and GD library. Recent versions of GD.PM require libgd 2.0.28 or higher. When trying to install GD.PM 2.35 with an older libgd, I got obscure compile errors. Had to go back to an older version of GD.PM (2.06) to get compatibility. Check the GD.PM README file for version requirements, the general module description lies.

-- ChuckEhrlich - 07 Sep 2006

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-09-07 - ChuckEhrlich
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.