- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Perl: How to add a new CPAN module
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2003 05:28 AM
тАО05-16-2003 05:28 AM
Perl: How to add a new CPAN module
I just downloaded Graph.pm as I would like to use : GD::GRAPH::lines in my perl script.
Now I read some docu, but I really can't figure out how to make it work. I copied over the file to my : /opt/perl/lib/5.8.0/PA-RISC2.0
directory.
Any help will be much apreciated !!
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2003 05:37 AM
тАО05-16-2003 05:37 AM
Re: Perl: How to add a new CPAN module
Unzip the file ( this will give you a tar file)
Untar the file, This will create a directory. Make that dir as your current directory.
MANIFEST,README and Todo files will be there It is better you read these files before you go further.
This will tell you what platform scripts has been tested and about the demo scripts.
then,
#perl Makefile.PL: verifies all the files destributed with the module this will create makefile to compile module
then ,
run make this will use makefile to compile the programs
make terst will verify for any problems.
and lastly run make install : this will move the executables to the directory required for the module.
man pages wil also be installed in proper directory update MANPATH accordingly
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2003 05:43 AM
тАО05-16-2003 05:43 AM
Re: Perl: How to add a new CPAN module
1) Uncompress/Untar the module to a temp directory.
2) Cd to that temp dir.
3) perl Makefile.PL
make
make test
make install
You are done. This procedure works for the vast majority of modules but there will always be a README or TODO in the temp dir for any other instructions. In General, the make's will even install the man pages for you.
http://www.perl.com/CPAN/modules/INSTALL.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2003 03:22 AM
тАО05-19-2003 03:22 AM
Re: Perl: How to add a new CPAN module
Thanks for your help, indeed I overlooked something that works now. GD has a beautifull README, not.
It tells you to install zlib (easy doing) and libpng (NOT easy doing). I get very anoying compiling errors when running a make test. I downloaded Merijn's precompiled gcc, and now it gives me a short but clear --> do it yourself <-- message.
I did modify the makefile for pointing to the correct gcc and the correct dir for zlib.
Any ideas ??
Regs David
/usr/local/libpng 1# make test
/usr/local/pa20_32/bin/gcc -I/usr/local/zlib/include -O -Ae +DA1.1 +DS2.0 -c pngtest.c
gcc: +DA1.1: No such file or directory
gcc: +DS2.0: No such file or directory
*** Error exit code 1
Stop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2003 03:54 AM
тАО05-19-2003 03:54 AM
Re: Perl: How to add a new CPAN module
You better use the same (type of) compiler for your modules that was used to build perl. You can check what perl was built with like
a5:/u/usr/merijn 102 > /opt/perl64/bin/perl -V:cc -V:ccversion -V:gccversion
cc='gcc64';
ccversion='';
gccversion='3.3 20030414 (prerelease)';
a5:/u/usr/merijn 103 > /opt/perl/bin/perl -V:cc -V:ccversion -V:gccversion
cc='gcc';
ccversion='';
gccversion='3.2 20020801 (prerelease)';
a5:/u/usr/merijn 104 > /pro/bin/perl -V:cc -V:ccversion -V:gccversion
cc='cc';
ccversion='B.11.11.25985.GP';
gccversion='';
a5:/u/usr/merijn 105 >
The version of gcc/cc is less important than the type, though mixing gcc-2.x with gcc-3.x is not a good idea.
If Makefile.PL is consistent in adding +D like options to gcc, run each command manually (yeah that's a nuisance) and change +DA2.0 to -mpa-risc-2-0 and +DA1.1 to -mpa-risc-1-1, and just drop -Ae and other +D options. You can also change the generated Makefile.
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2003 04:22 AM
тАО05-19-2003 04:22 AM
Re: Perl: How to add a new CPAN module
Thanks for the help.
The anoying thing is that I downloaded my perl and gcc from some sort of Merijns ITRC page :)
So I think you better tell me what version of gcc perl is compiled with, no just kidding.
I'll try to find out, using your explanation. Hope this will ever start working.
Normaly these kind of problems die slowly as I drown in the new errors and ways off make things work. I'll keep asking you if you don't mind.
Groetjes David