How can I install specialized environments for different Perl applications?

后端 未结 8 1112
轻奢々
轻奢々 2021-01-31 19:00

Is there anything equivalent or close in terms of functionality to Python\'s virtualenv, but for Perl?

I\'ve done some development in Python and a possibility of having

相关标签:
8条回答
  • I am not sure whether this is the same as that virtualenv thing you are talking about, but have a look for the @INC special variable in the perlvar manpage.

    0 讨论(0)
  • 2021-01-31 19:55

    I've used schroot for this purpose. It is a bit heavier than virtualenv but you can be sure that nothing will leak in that shouldn't.

    Schroot manages a chroot environment for you, but mounts your home directory in the chroot so it appears like a normal shell session, just using the binaries and libraries in the chroot.

    I think it may be debian/ubuntu only though.

    After setting up the schroot, your script above would look like

    schroot -c my_perl_dev
    wget ...
    

    See http://www.debian-administration.org/articles/566 for an interesting article about it

    0 讨论(0)
提交回复
热议问题