Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

GD.pm install woes
I've been trying to install GD.pm for a few days now, but to no avail.

I am using Fedora Core 2 with a P4 system.

I have installed libgd 2.0.28, Free Type 2.1.9, libpng 1.2.7, and
jpeg-6b. All were installed from source. I gave each it's own
directory under /usr/local/. There were no errors during the install
of any of them. I can use the scripts that get put into the bin
directory by libgd (such as webpng) so I know libgd is working.

My problem arrises when installing GD.pm. I am attempting to install
GD.pm 2.16. I am using the following args with Makefile.PL, although I
have tried many other variations (such as without "/lib" at the end of
the paths):

perl Makefile.PL -lib_gd_path /usr/local/gd/lib -lib_png_path
/usr/local/libpng/lib -lib_jpeg_path /usr/local/jpeg/lib -lib_ft_path
/usr/local/freetype2/lib -options "GD_JPEG,GD_FREETYPE,GD_PNG,GD_GIF"

This gives me the following output:


--------------------------------------------------
Configuring for libgd version 2.0.28.
Included Features:          GD_JPEG,GD_FREETYPE,GD_PNG,GD_GIF
GD library used from:       /usr/local/gd/lib
FreeType library used from: /usr/local/freetype2/lib
PNG library used from:      /usr/local/libpng/lib
JPEG library used from:      /usr/local/jpeg/lib

If you experience compile problems, please check the @INC, @LIBPATH
and @LIBS
arrays defined in Makefile.PL and manually adjust, if necessary.

Writing Makefile for GD
--------------------------------------------------


Ok, so far so good! I then run make...


--------------------------------------------------
gcc -c  -I/usr/local/jpeg/lib/include -I/usr/local/libpng/lib/include
-I/usr/local/freetype2/lib/include -I/usr/local/include -D_REENTRANT
-D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686
-DVERSION=\"2.16\" -DXS_VERSION=\"2.16\" -fPIC
"-I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE"  -DHAVE_JPEG
-DHAVE_FT -DHAVE_GIF GD.c
Running Mkbootstrap for GD ()
chmod 644 GD.bs
rm -f blib/arch/auto/GD/GD.so
gcc  -shared -L/usr/local/lib GD.o  -o blib/arch/auto/GD/GD.so
-L/usr/local/freetype2/lib -L/usr/local/libpng/lib
-L/usr/local/jpeg/lib -L/usr/local/lib -ljpeg -lfreetype -lpng -lz -lm
-lgd
chmod 755 blib/arch/auto/GD/GD.so
cp GD.bs blib/arch/auto/GD/GD.bs
chmod 644 blib/arch/auto/GD/GD.bs
Manifying blib/man3/GD::Polyline.3pm
Manifying blib/man3/GD.3pm
--------------------------------------------------


Still no problems that I can see. However, make test blows up...


--------------------------------------------------
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/GD..........Can't load './blib/arch/auto/GD/GD.so' for module GD:
[libgd.so.2: cannot open shared object file: No such file or directory
at /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line
229.
] at t/GD.t line 13
Compilation failed in require at t/GD.t line 13.
BEGIN failed--compilation aborted at t/GD.t line 13.
t/GD..........dubious
Test returned status 255 (wstat 65280, 0xff00)
Scalar found where operator expected at (eval 152) line 1, near "'int'
$__val"
(Missing operator before   $__val?)
DIED. FAILED tests 1-10
Failed 10/10 tests, 0.00% okay
t/Polyline....Can't load
'/home/x3v0/gt/install/GD-2.16/blib/arch/auto/GD/GD.so' for module GD:
[libgd.so.2: cannot open shared object file: No such file or directory
at /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line
229.
] at /home/x3v0/gt/install/GD-2.16/blib/lib/GD/Polyline.pm line 49
Compilation failed in require at
/home/x3v0/gt/install/GD-2.16/blib/lib/GD/Polyline.pm line 49.
BEGIN failed--compilation aborted at
/home/x3v0/gt/install/GD-2.16/blib/lib/GD/Polyline.pm line 49.
Compilation failed in require at t/Polyline.t line 10.
BEGIN failed--compilation aborted at t/Polyline.t line 10.
t/Polyline....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test  Stat Wstat Total Fail  Failed  List of Failed
----------------------------------------------------------------------------
---
t/GD.t        255 65280    10   19 190.00%  1-10
t/Polyline.t  255 65280     1    2 200.00%  1
Failed 2/2 test scripts, 0.00% okay. 11/11 subtests failed, 0.00%
okay.
make: *** [test_dynamic] Error 255
--------------------------------------------------


I'm not sure exactly what is wrong, but it looks like it can't find
libgd.so.2. Any ideas on what is going on and how to fix this error?

Thanks,
Xevo

Report this thread to moderator Post Follow-up to this message
Old Post
Xevo
10-30-04 01:55 PM


Re: GD.pm install woes
Xevo wrote:

> I've been trying to install GD.pm for a few days now, but to no avail.
>
> I am using Fedora Core 2 with a P4 system.
>
> I have installed libgd 2.0.28, Free Type 2.1.9, libpng 1.2.7, and
> jpeg-6b. All were installed from source. I gave each it's own
> directory under /usr/local/. There were no errors during the install
> of any of them. I can use the scripts that get put into the bin
> directory by libgd (such as webpng) so I know libgd is working.
>

I've had problem before too. Try an earlier version. 1.18 has gif suport.

gtoomey

Report this thread to moderator Post Follow-up to this message
Old Post
Gregory Toomey
10-30-04 01:55 PM


Re: GD.pm install woes
Xevo <x3v0-usenet@yahoo.com> wrote in comp.lang.perl.misc:
> I've been trying to install GD.pm for a few days now, but to no avail.
>
> I am using Fedora Core 2 with a P4 system.

I did this recently with GD 2.16 on OS X.

> I have installed libgd 2.0.28, Free Type 2.1.9, libpng 1.2.7, and
> jpeg-6b. All were installed from source. I gave each it's own
> directory under /usr/local/. There were no errors during the install
> of any of them. I can use the scripts that get put into the bin
> directory by libgd (such as webpng) so I know libgd is working.

I had all the auxiliary libs (no Free Type here) installed into
standard locations (/usr/local/lib/).  GD installed smoothly.

[snip symptoms]

Anno

Report this thread to moderator Post Follow-up to this message
Old Post
Anno Siegel
10-30-04 08:56 PM


Re: GD.pm install woes
Quoth x3v0-usenet@yahoo.com (Xevo):
> I've been trying to install GD.pm for a few days now, but to no avail.
>
> I'm not sure exactly what is wrong, but it looks like it can't find
> libgd.so.2. Any ideas on what is going on and how to fix this error?

Try adding /usr/local/gd/lib to your LD_LIBRARY_PATH.

Ben

--
perl -e'print map {/.(.)/s} sort unpack "a2"x26, pack "N"x13,
qw/1632265075 1651865445 1685354798 1696626283 1752131169 1769237618
1801808488 1830841936 1886550130 1914728293 1936225377 1969451372
2047502190/'                                                 # ben@morrow.me
.uk

Report this thread to moderator Post Follow-up to this message
Old Post
Ben Morrow
10-30-04 08:56 PM


Re: GD.pm install woes
Ben Morrow <usenet@morrow.me.uk> wrote in message news:<7opc52-v86.ln1@osiris.mauzo.dyndns.
org>...
> Quoth x3v0-usenet@yahoo.com (Xevo): 
>
> Try adding /usr/local/gd/lib to your LD_LIBRARY_PATH.
>
> Ben

Thank you. Setting LD_LIBRARY_PATH helped a lot. I am now getting a
different, less verbose error when doing "make test TEST_VERBOSE=1".
It says it failed test 4. I don't know what test 4 is, so I'm not sure
where to go from here. As before, ./configure and make gave no errors.



PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
t/GD..........1..10
ok 1
ok 2
ok 3
not ok 4
ok 5
ok 6
ok 7
ok 8 # Skip, FreeType changes too frequently to be testable
ok 9 # Skip, no XPM support
not ok 10
FAILED tests 4, 10
Failed 2/10 tests, 80.00% okay (less 2 skipped tests: 6 okay,
60.00%)
t/Polyline....1..1
# Running under perl version 5.008003 for linux
# Current time local: Sun Oct 31 18:06:25 2004
# Current time GMT:   Sun Oct 31 23:06:25 2004
# Using Test.pm version 1.24
ok 1
ok
Failed Test Stat Wstat Total Fail  Failed  List of Failed
----------------------------------------------------------------------------
---
t/GD.t                    10    2  20.00%  4 10
2 subtests skipped.
Failed 1/2 test scripts, 50.00% okay. 2/11 subtests failed, 81.82%
okay.
make: *** [test_dynamic] Error 255

Report this thread to moderator Post Follow-up to this message
Old Post
Xevo
11-01-04 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Miscellaneous archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:18 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.