I have developed a Perl module in MacOSX using Arhive::Zip. This library
seems to be installed
in the Perl version on the Mac (Perl v5.8.8). In porting this program to a
Linux machine running Perl v5.8.5, Archive::Zip is missing. I do not
want to
install in this current Perl library by using CPAN. What I would like to
do is define my own library
and use "#!/usr/bin/perl -I <my library>" name.
I have download all the modules from CPAN I need:
Archive-Zip
Compress-Raw-Zlib
Compress-Zlib
IO-Compress-Base
IO-Compress-Zlib
Is there some easy way to make a library module using CPAN and not have
it get installed
in the existing Perl library but go somewhere else. Some option in CPAN
or something.

Signature
------------------------------------------------------------------------
*Michael Barto*
Software Architect
LogiQwest Circle
LogiQwest Inc.
16458 Bolsa Chica Street, # 15
Huntington Beach, CA 92649
http://www.logiqwest.com/
mbarto@logiqwest.com <mailto:mbarto@logiqwest.com>
Tel: 714 377 3705
Fax: 714 840 3937
Cell: 714 883 1949
*'tis a gift to be simple*
------------------------------------------------------------------------
This e-mail may contain LogiQwest proprietary information and should be
treated as confidential.
Tom Wyant - 21 Mar 2008 00:24 GMT
> I have developed a Perl module in MacOSX using Arhive::Zip. This library
> seems to be installed
[quoted text clipped - 18 lines]
> or something.
> --
I don't know about doing this with a CPAN option, but a good starting
point for how to do it from hand-downloaded kits (or from CPAN>
look ... ) is the ExtUtils::MakeMaker FAQ, which you will find if you
go to http://search.cpan.org/ and search for ExtUtils::MakeMaker.
Tom Wyant
Michael Barto - 21 Mar 2008 05:54 GMT
Actually, I have found out that when you configure CPAN, you can define
a different "PREFIX" to a private library and it will not go into the
main Perl library you are running. The book "Object Oriented Perl" by
Damian Conway mentioned this trick. Thank you for taking the time to
even make a suggestion.
>
>> I have developed a Perl module in MacOSX using Arhive::Zip. This library
[quoted text clipped - 29 lines]
>
>

Signature
------------------------------------------------------------------------
*Michael Barto*
Software Architect
LogiQwest Circle
LogiQwest Inc.
16458 Bolsa Chica Street, # 15
Huntington Beach, CA 92649
http://www.logiqwest.com/
mbarto@logiqwest.com <mailto:mbarto@logiqwest.com>
Tel: 714 377 3705
Fax: 714 840 3937
Cell: 714 883 1949
*'tis a gift to be simple*
------------------------------------------------------------------------
This e-mail may contain LogiQwest proprietary information and should be
treated as confidential.
Packy Anderson - 21 Mar 2008 07:26 GMT
> Is there some easy way to make a library module using CPAN and not
> have it get installed
> in the existing Perl library but go somewhere else. Some option in
> CPAN or something.
Another thing you might want to try is PAR, the Perl Archive Toolkit.
http://search.cpan.org/~smueller/PAR-0.977/lib/PAR/Tutorial.pod
With it, you can create a self-contained package that can not only
contain all the modules you need, but the proper perl interpreter as
well!
--
Packy Anderson
packy@dardan.com
If I had a boat, I'd go out on the ocean;
And if I had a pony, I'd ride him on my boat.
We could both together go out on the ocean--
Me upon my pony on my boat.