Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > GD.pm install woes

Reply
Thread Tools

GD.pm install woes

 
 
Xevo
Guest
Posts: n/a
 
      10-30-2004
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:olyline.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
 
Reply With Quote
 
 
 
 
Gregory Toomey
Guest
Posts: n/a
 
      10-30-2004
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
 
Reply With Quote
 
 
 
 
Anno Siegel
Guest
Posts: n/a
 
      10-30-2004
Xevo <(E-Mail Removed)> 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
 
Reply With Quote
 
Ben Morrow
Guest
Posts: n/a
 
      10-30-2004

Quoth http://www.velocityreviews.com/forums/(E-Mail Removed) (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/' # (E-Mail Removed)
 
Reply With Quote
 
Xevo
Guest
Posts: n/a
 
      10-31-2004
Ben Morrow <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Quoth (E-Mail Removed) (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


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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RMagick Install Woes ;_; Pierre Pepe Ruby 5 03-10-2011 01:50 PM
cpan module install woes - UTF-8 problem? Troy Piggins Perl Misc 2 10-31-2007 07:01 AM
ruby-mysql install woes Greg Willits Ruby 3 10-28-2007 09:52 AM
Can't seem to boot from XP install CD (after botched Linux install) Cloud Burst Computer Support 3 05-22-2004 02:52 PM
How to determine JDK install directory and/or do silent install of J2SE? RJGraham Java 8 02-14-2004 02:19 PM



Advertisments