[SUMMARY] Perl module error (others may ignore this mail)

From: Sharma, Vikas \(TEK System\) <vshar_at_allstate.com>
Date: Mon Oct 08 2007 - 10:28:21 EDT
Dear Perl gurus,

First of all thanks to Francisco, Ric, Barry and Bill for their accurate
solutions. And the solution was to have "freetype" package which is
available from SunFreeware.com site.

Upon installation of this package, I was further asked to install one
more supporting module "GDTextUtil-0.86" which is also necessary for
creating graphs.

In short, if anyone wants to create graphs using perl, he/she should
have at least following packages and perl modules in system before
anything else.

Name of packages (available from SunFreeware):
=========================================================
autoconf-2.60-sol10-sparc-local			SMCautoc
freetype-2.3.1-sol10-sparc-local			SMCftype
gd-2.0.33-sol10-sparc-local				SMCgd
libiconv-1.11-sol10-sparc-local			SMCliconv
libpng-1.2.21-sol10-sparc-local			SMClibpng
m4-1.4.7-sol10-sparc-local				SMCm4
perl-5.8.8-sol10-sparc-local				SMCperl
zlib-1.2.3-sol10-sparc-local				SMCzlib
=========================================================

Name of required perl modules (available from CPAN.org):
=========================================================
GD-2.35
GDTextUtil-0.86
=========================================================

Cheers,
Vikas





-----Original Message-----
From: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Sharma, Vikas
(TEK System)
Sent: Friday, October 05, 2007 4:44 PM
To: sunmanagers@sunmanagers.org
Subject: Perl module error (others may ignore this mail)

Dear Perl gurus,

The GD module looks like impossible for me to work with. First of all, I
had hard time to install (GD) this module. I had to install following
packages before this one:

#ls
autoconf-2.60-sol10-sparc-local
libiconv-1.11-sol10-sparc-local
m4-1.4.7-sol10-sparc-local
zlib-1.2.3-sol10-sparc-local
gd-2.0.33-sol10-sparc-local
libpng-1.2.21-sol10-sparc-local
perl-5.8.8-sol10-sparc-local

Then I installed the GD-2.35 and it looked to be installed successfully.
Now I tried to run a simple program and it ended up with some
compilation errors and some library files. The mentioned files are there
in system and I have no clue why I am getting these errors.

Please advise where to start the troubleshooting. I have done enough
google'ing on this error and clueless. :-)

Have a nice weekend!

Vikas



#
#cat graph1.pl
#!/usr/local/bin/perl -w
# Change above line to point to your perl binary

use CGI ':standard';
use GD::Graph::lines;
use strict;

# Both the arrays should same number of entries.
my @data = (['Fall 01', 'Spr 01', 'Fall 02', 'Spr 02' ],
            [80, 90, 85, 75],
            [76, 55, 75, 95],
            [66, 58, 92, 83]);

my $mygraph = GD::Graph::lines->new(600, 300);
$mygraph->set(
    x_label     => 'Semester',
    y_label     => 'Marks',
    title       => 'Grade report for a student',
    # Draw datasets in 'solid', 'dashed' and 'dotted-dashed' lines
    line_types  => [1, 2, 4],
    # Set the thickness of line
    line_width  => 2,
    # Set colors for datasets
    dclrs       => ['blue', 'green', 'cyan'],
) or warn $mygraph->error;

$mygraph->set_legend_font(GD::gdMediumBoldFont);
$mygraph->set_legend('Exam 1', 'Exam 2', 'Exam 3');
my $myimage = $mygraph->plot(\@data) or die $mygraph->error;

print "Content-type: image/png\n\n";
print $myimage->png;


#
#./graph1.pl
Can't load
'/usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris/auto/GD/GD.so' for
module GD: ld.so.1: perl: fatal: libfreetype.so.6: open failed: No such
file or directory at
/usr/local/lib/perl5/5.8.8/sun4-solaris/DynaLoader.pm line 230.
 at /usr/local/lib/perl5/site_perl/5.8.8/GD/Graph/lines.pm line 18
Compilation failed in require at
/usr/local/lib/perl5/site_perl/5.8.8/GD/Graph/lines.pm line 18.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.8.8/GD/Graph/lines.pm line 18.
Compilation failed in require at ./graph1.pl line 5.
BEGIN failed--compilation aborted at ./graph1.pl line 5.
#
#
#
#ls -l /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris/auto/GD/GD.so
-r-xr-xr-x   1 root     root      133824 Oct  5 16:14
/usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris/auto/GD/GD.so
#
#ls -l  /usr/local/lib/perl5/5.8.8/sun4-solaris/DynaLoader.pm
-r--r--r--   1 bin      bin        28125 May  8 03:03
/usr/local/lib/perl5/5.8.8/sun4-solaris/DynaLoader.pm
#
#ls -l /usr/local/lib/perl5/site_perl/5.8.8/GD/Graph/lines.pm
-r--r--r--   1 root     root        4446 Dec 13  2005
/usr/local/lib/perl5/site_perl/5.8.8/GD/Graph/lines.pm
#
#

#env
_=/usr/bin/env
MANPATH=/usr/openwin/man:/usr/share/man:/usr/local/man:/usr/contrib/man:
/opt/perf/man:/usr/local/man:/usr/share/man:/usr/man:/usr/openwin/man:/o
pt/SUNWsamfs/man:/usr/openv/man:/opt/SUNWexplo/man
SSH_TTY=/dev/pts/3
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/sbin:u
sr/local/bin:/usr/sfw/bin:/usr/openwin/bin:/usr/ucb:/usr/sfw/bin:/usr/lo
cal/bin:/usr/local/sbin:/usr/contrib/bin:/usr/openwin/bin:/usr/ucb:/usr/
openwin/bin:/usr/ucb:/usr/openv/netbackup/bin:/usr/openv/volmgr/bin:/usr
/openv/netbackup/bin/admincmd:/opt/SUNWsamfs/bin:/opt/SUNWsamfs/sbin
LOGNAME=root
MAIL=/var/mail//root
PS1=#
USER=root
DISPLAY=XXXXXXXXXXXXXXXXXXX
SHELL=/usr/bin/ksh
HOME=/root
SSH_CONNECTION=XXXXXXXXXXXXXXXX
SSH_CLIENT=XXXXXXXXXXXXXXXX
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib:/etc/lib:/usr/share/lib:/us
r/ccs/lib:/usr/openwin/lib:/usr/sadm/lib:/usr/xpg4/lib:/usr/X11/lib:/usr
/apache2/lib
TERM=xterm
PWD=/export/home/
TZ=US/Central
BROWSER=mozilla
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Oct 8 10:28:57 2007

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:07 EST