1830231 Members
1617 Online
109999 Solutions
New Discussion

Perl Graph

 
Arun Kesavan
Occasional Contributor

Perl Graph

Hi ,

Anyone tell me how to install Perl Graph Module in HP-UX 11.11 machine..Basic Perl Programming is already installed in the system.

Regards
Arun
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Perl Graph

Hi Arun:

Its not clear what particular module you want to install. However, the steps are standard for Perl modules:

http://www.cpan.org/modules/INSTALL.html

Be sure to read the README and INSTALL files that come with your module, too.

Regards!

...JRF...
H.Merijn Brand (procura
Honored Contributor

Re: Perl Graph

As JRF said. Read that link, but basically, the sequence is

# cd /tmp
# wget http://search.cpan.org/CPAN/authors/id/J/JH/JHI/Graph-0.80.tar.gz
# gzip -d # cd Graph-0.80
# perl Makefile.PL
# make test
# make install UNINST=1

GO!

Or, the easier way

# perl -MCPAN -e'install Graph'

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Arun Kesavan
Occasional Contributor

Re: Perl Graph

Hi ,

Thanks for the reply ... i am new to PERL , is there any difference between Perl GD and Perl GD Graph module .. i tried installing as you specified but its giving error while debugging a program.

# perl -d graph.pl

Loading DB routines from perl5db.pl version 1.23
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

Can't locate GD/Graph/bars.pm in @INC (@INC contains: /opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi /opt/perl/lib/5.8.3 /opt/perl/lib/site_perl/5.8.3/IA64.ARCHREV_0-thread-multi /opt/perl/lib/site_perl/5.8.3 /opt/perl/lib/site_perl .) at gr

also if possible could someone tell me how to install this Perl , Perl GD and Perl Graph Module from the scratch.. also the reqd library files..

Thanks for any information being provided..

Regards
Arun
Arun Kesavan
Occasional Contributor

Re: Perl Graph

Hi All ,

Iam Getting the following error while installing.

# perl Makefile.PL
NOTICE: This module requires libgd 2.0.28 or higher.

If you are using Math::Trig 1.01 or lower, it has a bug that
causes a "prerequisite not found" warning to be issued. You may
safely ignore this warning.

Type perl Makefile.PL -h for command-line option summary


Where is libgd installed? [/usr/lib] /tmp

Please choose the features that match how libgd was built:
Build JPEG support? [y] y
Build PNG support? [y] y
Build FreeType support? [y] y
Build GIF support? [y] y
Build support for animated GIFs? [y] y
Build XPM support? [y] y

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

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgd
Note (probably harmless): No library found for -lfreetype
Note (probably harmless): No library found for -ljpeg
Note (probably harmless): No library found for -lpng
Note (probably harmless): No library found for -lz
Note (probably harmless): No library found for -lXpm
Writing Makefile for GD


Could anyone help me in resolving the issue.

Regards
Arun
H.Merijn Brand (procura
Honored Contributor

Re: Perl Graph

Ah, ok. If you refer to GD as Graph, say so in the first place. It is something completely different, adn - as your last message shows - depends on a whole lot of other things that are to be installed before GD can be built.

http://search.cpan.org/~lds/GD-2.35/

You have to resolve each and every dependancy before moving on. Either build them from scratch or get the depots

-lgd
http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/gd-2.0.33/
http://www.boutell.com/gd/

-lfreetype
http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/freetype-2.2.1/
http://freetype.sourceforge.net/index2.html

-ljpeg
http://hpux.connect.org.uk/hppd/hpux/X11/Graphics/jpeg-6b/
ftp://ftp.uu.net/graphics/jpeg/

-lpng
http://hpux.connect.org.uk/hppd/hpux/X11/Graphics/libpng-1.2.12/
http://www.libpng.org/pub/png/libpng.html

-lxpm
http://hpux.connect.org.uk/hppd/hpux/X11/Graphics/xpm-3.4k/
http://www.inria.fr/koala/lehors/xpm.html

-lz
http://hpux.connect.org.uk/hppd/hpux/Misc/zlib-1.2.3/
http://www.zlib.net/

And of course, if you use above depots, you will also need the dreaded iconv and gettext

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn