Johan Vromans <
jvro...@squirrel.nl> writes:
> Is anyone managing CitrusPerl distributions with perlbrew?
>
> I tried to symlink the CitrusPerl install directory into the perlbrew
> perls directory, which basically works, but it screws up PATH settings
> when *deactivating* it.
Since I got no response, I dug into the code to find the source of the
problem. In short: perlbrew requires perl dists to reside under
$PERLBREW_ROOT/perls, and to report their paths (@INC, and so on) under
the install directory. When manipulating PATH settings, it strips the
$PERLBREW_ROOT paths.
To install a perlbrew-managed CitrusPerl, proceed as follows:
For modern CitrusPerls:
- unpack the CitrusPerl kit in the $PERLBREW_ROOT/perls directory
(it will unpack as 'perl')
- rename 'perl' to something more descriptive, e.g.,
'citrus-5.16.3-wx-2.8'
- run citrus-5.16.3-wx-2.8/bin/citrusutils
- update the repository and install updates, if necessary
For older CitrusPerls:
- unpack the CitrusPerl kit somewhere
(it will unpack as 'CitrusPerl')
- run CitrusPerl/bin/citrusutils
- update the repository and install updates, if applicable
- create a new distribution with the desired name, e.g.,
'citrus-5_14_2-wx-2_9'. Note that citrusutils always appends
'Perl' to this name, and you may not use periods (use underscores
instead)
- unpack CitrusPerl/distribution/citrus-5_14_2-wx-2_9*tar.gz into
$PERLBREW_ROOT/perls
- run $PERLBREW_ROOT/perls/citrus-5_14_2-wx-2_9Perl/bin/citrusutils
- remove CitrusPerl
HTH,
-- Johan