Installing GD module for Perl

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Installing GD module for Perl

Postby flamey » 28. December 2016 23:34

Hey guys!
Trying to install GD module for XAMPP's Perl.

Code: Select all
cd /opt/lampp/bin
sudo ./cpan
cpan[1]> install GD

I get following output:

Code: Select all
Fetching with LWP:
Reading '/home/flamey/.cpan/sources/modules/'
Writing /home/flamey/.cpan/Metadata
Running install for module 'GD'
Running make for L/LD/LDS/GD-2.56.tar.gz
Checksum for /home/flamey/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok
Scanning cache /home/flamey/.cpan/build for sizes
DEL(1/11): /home/flamey/.cpan/build/local-lib-2.000019-1grfHu
DEL(2/11): /home/flamey/.cpan/build/Test-NoWarnings-1.04-ZY4STC
DEL(3/11): /home/flamey/.cpan/build/Crypt-RC4-2.02-LqVLg7
DEL(4/11): /home/flamey/.cpan/build/Digest-Perl-MD5-1.9-QQU82Z
DEL(5/11): /home/flamey/.cpan/build/OLE-Storage_Lite-0.19-pfjmox
DEL(6/11): /home/flamey/.cpan/build/Spreadsheet-ParseExcel-0.65-jGBqe7
DEL(7/11): /home/flamey/.cpan/build/Spreadsheet-XLSX-0.15-HJkxdL
DEL(8/11): /home/flamey/.cpan/build/CPAN-Reporter-1.2018-4NqNSh
DEL(9/11): /home/flamey/.cpan/build/File-pushd-1.009-WrFbLT
DEL(10/11): /home/flamey/.cpan/build/Probe-Perl-0.03-G_A1N7
DEL(11/11): /home/flamey/.cpan/build/Config-Tiny-2.23-DWp_b8 Building L/LD/LDS/GD-2.56.tar.gz

Configuring for libgd version 2.1.1@.
Checking for stray libgd header files...none found.

Unknown option: installdirs
Usage: perl Build.PL [options]

Configure GD module.

     -options       "JPEG,FT,PNG,GIF,XPM,ANIMGIF"   feature options, separated by commas
     -lib_gd_path   path            path to libgd
     -lib_ft_path   path            path to Freetype library
     -lib_png_path  path            path to libpng
     -lib_jpeg_path path            path to libjpeg
     -lib_xpm_path  path            path to libxpm
     -lib_zlib_path path            path to libpng
     -ignore_missing_gd             Ignore missing or old libgd installations and try to compile anyway

If no options are passed on the command line.  The program will
attempt to autoconfigure itself with the gdlib-config program (present
in GD versions 2.0.27 or later).  Otherwise it will prompt for these
values interactively.
Warning: No success on command[/opt/lampp/bin/perl Build.PL --installdirs site]
  /opt/lampp/bin/perl Build.PL --installdirs site -- NOT OK
Running Build test
  Make had some problems, won't test
Running Build install
  Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Failed during this command:
 LDS/GD-2.56.tar.gz                           : writemakefile NO '/opt/lampp/bin/perl Build.PL --installdirs site' returned status 512

GD is installed and working for system's Perl. But how can I get it installed for XAMPP's Perl?
Posts: 2
Joined: 28. December 2016 23:27
XAMPP version: 5.6.28-1
Operating System: Ubuntu 16

Re: Installing GD module for Perl

Postby Nobbie » 29. December 2016 12:16

Unfortunately i currently does not have my linux laptop available, therefore i can only guess, But as far as I remember, there is (or was) a shell Xampp environment which is loaded by executing "" or similar from /opt/lampp or /opt/lampp/bin. Try to find that script if it is still availabe.

You might see a special Xampp prompt after successfully starting that shell, after then you should start the cpan installation procedure. The idea of the Xampp shell is to setup the current environment, so that Perl etc. is located under /opt/lampp and not in /usr/lib or so. That finally leads to an installation into your Xampp environment instead of the system environment, exactly what you are looking for.
Posts: 11714
Joined: 09. March 2008 13:04

Re: Installing GD module for Perl

Postby flamey » 29. December 2016 22:35

thanks for the reply. i couldn't find anything that would look like xampp shell. looked in all /opt/lampp subdirectories.
Posts: 2
Joined: 28. December 2016 23:27
XAMPP version: 5.6.28-1
Operating System: Ubuntu 16

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests