Problems trying to install Perl GD

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

Problems trying to install Perl GD

Postby hsi88 » 12. October 2010 23:39

GD is there for PHP, but I'm not sure how to link it to Perl.

Ended up downloading GD and extracted it to a folder called: GD

I then did the CPAN command "install GD" and got these errors. I have tried putting the GD files in some of the PERL libraries but to no avail. I suspect that the files have to be in some specific Perl folder, but I can't find this info on the Internet anywhere. They assume I would know where to put the GD library.

This is what I get.

cpan[5]> install gd
Use of uninitialized value $_[0] in string eq at I:/xampp/perl/lib/File/Spec/Win
32.pm line 152, <FIN> line 5.
Warning: no success downloading '\xampp\perl\bin\.cpan\sources\authors\01mailrc.
txt.gz.tmp4984'. Giving up on it. at I:\xampp\perl\lib/CPAN/Index.pm line 225
Client not fully configured, please proceed with configuring.

You have not configured a urllist and do not allow connections to the
internet to get a list of mirrors. If you wish to get a list of CPAN
mirrors to pick from, use this command

o conf init connect_to_internet_ok urllist

If you do not wish to get a list of mirrors and would prefer to set
your urllist manually, use just this command instead

o conf init urllist


Some additional notes: I also tried putting the .tar.gz file in several Perl libraries, thinking that it would unzip the files. I also tried connecting to the internet for mirrors from the shell as was suggested in the message above, but could not connect to the internet via the XAMPP shell.
Last edited by hsi88 on 13. October 2010 01:03, edited 1 time in total.
hsi88
 
Posts: 8
Joined: 08. October 2010 22:44

Re: Problems trying to install Perl GD

Postby JonB » 13. October 2010 01:00

ummm - u will owe me a Heineken or Grolsch if I pull this out of the hat, LOL...

I 'also think I knw this one' - BUT there are a few caveats - including 'it may not work' due to version problems (much like PHP)

Where did you get 'your' GD from? -

:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Problems trying to install Perl GD

Postby hsi88 » 13. October 2010 01:07

You saved me once already!! Thanks!!

I got GD from CPAN. it is version 2.45

when doing the CPAN commands from within the shell, there were warnings about not having a urllist. I was unable to connect to the internet from the shell. It would not connect to the mirror site. Security perhaps? I'm not sure why it would try to load 01mailrc?
hsi88
 
Posts: 8
Joined: 08. October 2010 22:44

Re: Problems trying to install Perl GD

Postby JonB » 13. October 2010 01:39

Have you ever worked with repositories?

Usually with Perl, as long as you know the dependencies, you can (almost always) copy unzipped files into the 'right spot' (which takes soem detective work as you noted) and they just start working. This is based on my experiences with Bloxom, Discus, Movable Type and YaBB which are written in Perl and all needed module fixes as features were added or a new server was set up.

There are files in the Perl folder for this in XAMPP.

cpan.bat, and ppm.bat are installers - you should open them and read the comments. Then run them and get used to the syntax. (and how to use help)

I had a problem with the CPAN one (I probably needed to dl makefile.pl - first) BUT, with some persistence I mastered the PPM gizmo (I think)
Code: Select all
C:\xampp-new-folder\perl\bin>ppm install http://www.bribes.org/perl/ppm/GD.ppd
Installing package 'http://www.bribes.org/perl/ppm/GD.ppd'...
Bytes transferred: 463525
Files found in blib\arch: installing files in blib\lib into architecture depende
nt library tree
Installing C:\xampp-new-folder\perl\site\lib\auto\GD\GD.bs
Installing C:\xampp-new-folder\perl\site\lib\auto\GD\GD.dll
Installing C:\xampp-new-folder\perl\site\lib\auto\GD\GD.exp
Installing C:\xampp-new-folder\perl\site\lib\auto\GD\GD.lib
Installing C:\xampp-new-folder\perl\site\lib\GD.pm
Installing C:\xampp-new-folder\perl\site\lib\qd.pl
Installing C:\xampp-new-folder\perl\site\lib\auto\GD\autosplit.ix
Installing C:\xampp-new-folder\perl\site\lib\GD\Group.pm
Installing C:\xampp-new-folder\perl\site\lib\GD\Image.pm
Installing C:\xampp-new-folder\perl\site\lib\GD\Polygon.pm
Installing C:\xampp-new-folder\perl\site\lib\GD\Polyline.pm
Installing C:\xampp-new-folder\perl\site\lib\GD\Simple.pm
Installing C:\xampp-new-folder\perl\bin\bdf2gdfont.bat
Installing C:\xampp-new-folder\perl\bin\bdf2gdfont.pl

C:\xampp-new-folder\perl\bin>



I think it has done the trick... 8)

The command line is this part (in your \perl.bin folder)
Code: Select all
ppm install http://www.bribes.org/perl/ppm/GD.ppd


let me know if it works right...

Good Luck
:shock:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Problems trying to install Perl GD

Postby hsi88 » 13. October 2010 02:40

Let me give that a try. Hopefully I will get the hang of this. XAMPP is handy for developing and testing before loading scripts to the server. It works for most of what I do. GD I think is the only thing I still need. GD in PHP works fine, but I have a Perl uploader that compresses image files so I need GD under Perl. At the time, PHP did not have any way to intercept the upload function, so I could not do an upload with a progress bar. Perl was the only way to do this.
hsi88
 
Posts: 8
Joined: 08. October 2010 22:44


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 73 guests