Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / March 2008



Tip: Looking for answers? Try searching our database.

How do you make a bundle from CPAN?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Barto - 19 Mar 2008 23:44 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.