develooper Front page | perl.cpan.discuss | Postings from February 2018

Re: How to manage various CPAN modules as a package for distributionpurpose?

Thread Previous
From:
Xinhuan Zheng
Date:
February 1, 2018 13:43
Subject:
Re: How to manage various CPAN modules as a package for distributionpurpose?
Message ID:
D6988339.26D0A%xzheng@christianbook.com
Hello Gonzalo,

Good morning. Thanks for your reply. I just found perlbrew is a great tool: http://search.cpan.org/~gugod/App-perlbrew-0.82/bin/perlbrew. Does it have ability to create a package of local perl the interpreter and all its associated modules for easy distribution? I don’t see such command options.
Thanks,

- xinhuan

From: Gonzalo Barco <gbarcouy@gmail.com<mailto:gbarcouy@gmail.com>>
Date: Wednesday, January 31, 2018 at 3:46 PM
To: Xinhuan Zheng <xzheng@christianbook.com<mailto:xzheng@christianbook.com>>
Cc: "cpan-discuss@perl.org<mailto:cpan-discuss@perl.org>" <cpan-discuss@perl.org<mailto:cpan-discuss@perl.org>>
Subject: Re: How to manage various CPAN modules as a package for distribution purpose?

I suggest perlbrew.
I know a 3000000+ line project with 400+ servers to deploy using perlbrew.
Never "misses" the deploy path for libs.

Also check out local::lib and Carton for some specific scenarios you might want to support.

Regards,
gonzalo

On Jan 31, 2018 1:18 PM, "Xinhuan Zheng" <xzheng@christianbook.com<mailto:xzheng@christianbook.com>> wrote:
Dear CPAN,

We are using Perl CPAN modules a lot. From time to time we need to build various CPAN modules for various our projects. However, we want to have a way to bundle them in one package so that this package can be easily distributed into various environments. What is best way to manage CPAN modules as a package? Note we are not using Active Perl. We use Unix/Linux platform distributed Perl.

Another related question, for some reason, if a particular CPAN module we need requires a specific Perl version, we normally need to install local version of Perl, instead of using Perl from OS distribution. What is best way of managing two versions of Perl on same host because what would mean there might be two cpan paths and Perl modules to be installed could go to wrong Perl library path.

Thanks,

- xinhuan


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About