tokuhirom / Perl-Build

Other
79 stars 38 forks source link

Plenv or plenv-install to build to any directory, not just $(plenv root)/versions #87

Closed mikkoi closed 6 years ago

mikkoi commented 6 years ago

Sometimes I need to create a totally isolated Perl environment, not just isolated module space (That I can do easily with local::lib). I often need to place the Perl into a special directory and mounted disk which is also mounted in other servers, whereas my home directory is not.

Currently it is only possible to compile and install new Perls under plenv root directory. Could we change the plenv-install plugin to make the above possible, maybe add a command line flag, e.g. --install-dir, or create another plugin for this, e.g. plenv-isolated, or plenv-virtualenv (in the style of Python virtualenv and pyenv-virtualenv plugin)? EDIT: pyenv-virtualenv only installs under pyenv, not the way we would like it. So, not a good example.

The installed Perl can be for install-and-forget type, or plenv can keep a list of the installed ones. Keeping the list and/or showing it together with plenv-versions requires a bit more work, so I'd beginning with install-and-forget would be quicker.

skaji commented 6 years ago

You can execute perl-build script directly.

mikkoi commented 6 years ago

Yes, but adding this functionality to plenv would benefit plenv and user because (at least I) went first to plenv to look for. Others might, too.

skaji commented 6 years ago

I think plenv should concentrate on perl installations in plenv root.

On the other hand, plenv allows users to create their own plugins. So you can create your plugins as much as you want.