Using perlbrew with CitrusPerl

43 views
Skip to first unread message

Johan Vromans

unread,
Apr 15, 2013, 5:18:10 AM4/15/13
to cava-p...@googlegroups.com
Hi,

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.

See https://github.com/gugod/App-perlbrew/issues/311

-- Johan

Johan Vromans

unread,
Apr 22, 2013, 11:31:31 AM4/22/13
to cava-p...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages