Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I upgrade strawberry perl without wiping \perl\site\lib\ and \perl\site\bin\?

I downloaded the 5.12.3 installer to upgrade my 5.12.1 installation. After installing 5.12.3, my previously installed cpan modules are gone. Is this expected behavior? Should I be backing up my library before upgrading to prevent this?

like image 395
Oesor Avatar asked May 23 '11 19:05

Oesor


2 Answers

I would claim that this should not be expected behavior.

The site directories are not part of the standard distribution and should not be touched by the distribution. Heck, it's even why the site directories even exist. Otherwise, why not simply download all of the modules to the same directory? Why make a distinction between the standard Perl modules and the modules you download from CPAN?

I too found this out the hard way when my personal modules -- modules that are not part of CPAN -- were blown away by my upgrade of Strawberry Perl. ActivePerl does it right -- not only not touching the site directory, but also adds in the Perl version to the standard module directory and the site directory.

like image 192
David W. Avatar answered Oct 04 '22 02:10

David W.


It is expected behavior. Next time you can use "autobundle" feature of CPAN client, it will create list/bundle of modules to reinstall using CPAN client in new version.

like image 26
Alexandr Ciornii Avatar answered Oct 04 '22 01:10

Alexandr Ciornii