Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issue with GD

Status
Not open for further replies.

youradds

Programmer
Jun 27, 2001
817
GB
Hi,

I'm not sure if the right place to post - but I'm hoping it is.

I'm trying to install GD, and according to another post on google groups, the solution was to download from , then running ./configure, and finally copying ./config/gdlib-config
to /usr/bin). However, I still get an error:

**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd
2.0.28 or higher.
If you want to try to compile anyway, please rerun this script with
the option --ignore_missing_gd.
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
[root@SmartBusiness config]#

..using :

perl -MCPAN -e 'install GD'

Any ideas?

TIA

Andy
 
Usually there are four steps after downloading and unpacking the tarball:

1. Move to the newly created directory.

2. ./configure

3. make

4. make install


Rather then make install, some packages just have you copy the newly created executable to a directory in your path. It looks like you skipped step 3.

 
Hi,

Thanks - that got me much further than last time :) Still seem to be having issues when isntalling the GD perl module though:

Manifying blib/man3/GD::polygon.3pm
/usr/bin/make -- OK
Running make test
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: ./blib/arch/auto/GD/GD.so: undefined symbol: gdFontGetGiant at /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line 229.
at t/GD.t line 14
Compilation failed in require at t/GD.t line 14.
BEGIN failed--compilation aborted at t/GD.t line 14.
t/GD..........dubious
Test returned status 255 (wstat 65280, 0xff00)
Scalar found where operator expected at (eval 155) line 1, near "'int' $__val"
(Missing operator before $__val?)
DIED. FAILED tests 1-12
Failed 12/12 tests, 0.00% okay
t/Polyline....Can't load '/root/.cpan/build/GD-2.41/blib/arch/auto/GD/GD.so' for module GD: /root/.cpan/build/GD-2.41/blib/arch/auto/GD/GD.so: undefined symbol: gdFontGetGiant at /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line 229.
at /root/.cpan/build/GD-2.41/blib/lib/GD/Polyline.pm line 45
Compilation failed in require at /root/.cpan/build/GD-2.41/blib/lib/GD/Polyline.pm line 45.
BEGIN failed--compilation aborted at /root/.cpan/build/GD-2.41/blib/lib/GD/Polyline.pm line 45.
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 12 23 191.67% 1-12
t/Polyline.t 255 65280 1 2 200.00% 1
Failed 2/2 test scripts, 0.00% okay. 13/13 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
[root@SmartBusiness gd-2.0.28]#


Any ideas?

TIA

Andy
 
This thread may be better suited for the linux server forum.

Some packages are a little rough to compile from scratch because you don't always have all the libraries they require. If you have an rpm based linux distro then I'd suggest using yum to install this package. All you would have to do is type "yum install gd2" or whatever the name of the package is that you want to install and yum will not only download the package for you but look for any dependencies and download those as well. Sometimes the compiler has trouble finding the shared object libraries. These are the .so files. You can use the ldconfig command to link them so the can be found at runtime. Simply type" ldconfig -v". Sorry For not going into more detail but this is an apache forum and I don't want to incense the purists amongst us. ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top