Skip to content
This repository

Support perlbrew on win32 (strawberry) #31

Open
azawawi opened this Issue November 18, 2010 · 8 comments

6 participants

Ahmad M. Zawawi Kang-min Liu Breno G. de Oliveira Reini Urban Nikolay Mishin garfieldnate
Ahmad M. Zawawi

Strawberry Perl has gcc built-in. I noticed that perlbrew fails to even 'perlbrew init'. It would be cool that i can have perlbrew on win32?

P.S. you need to use $ENV{USERPROFILE} instead of $ENV{HOME} and maybe use File::HomeDir?

Use of uninitialized value $ENV{"HOME"} in concatenation (.) or string at C:/str
awberry/perl/site/lib/App/perlbrew.pm line 11.
Use of uninitialized value $ENV{"HOME"} in concatenation (.) or string at C:/str
awberry/perl/site/lib/App/perlbrew.pm line 124.
Use of uninitialized value $ENV{"SHELL"} in pattern match (m//) at C:/strawberry
/perl/site/lib/App/perlbrew.pm line 195.
Use of uninitialized value in concatenation (.) or string at C:/strawberry/perl/
site/lib/App/perlbrew.pm line 204.
Use of uninitialized value $ENV{"HOME"} in concatenation (.) or string at C:/str
awberry/perl/site/lib/App/perlbrew.pm line 11.
Use of uninitialized value $ENV{"SHELL"} in pattern match (m//) at C:/strawberry
/perl/site/lib/App/perlbrew.pm line 566.
Perlbrew environment initiated, required directories are created under

Kang-min Liu
Owner

currently perlbrew assumes bash/zsh/tcsh to be the shell and part of it is written in bash. Not sure how that can be port to Strawberry perl.

However, it seems ok running on cgywin.

In one hand I wish to re-write perlbrew as pure bash, OTOH, I consider the current state (mostly perl, some bash) to be very perfect. It does require certain level of integration with shell, and it's hard to write it in pure-perl.

Ahmad M. Zawawi

How can I help then to port the little bash part it to strawberry? :)

P.S. I have not used cygwin in ages. Strawberry is downloaded like 50k a month... most windows users want a single easy-to-install msi installer.

Kang-min Liu
Owner
gugod commented May 10, 2011

Since 0.20, perlbrew is much better supporting non-bash. Though it still depends on several PERLBREW_* environment variables to function properly, it is also more feasible to be working on windows.

I also consider Strawberry Perl a better perl on windows because of all those tools it ships with. I personally have minimal time programming perl on Windows. It will be appreciated if there's any volunteers to work on this :)

Also I'm considering to build the standalone perlbrew with App::FatPacker, that means required CPAN modules like File::HomeDir can be introduced to make things easier.

Breno G. de Oliveira
garu commented August 31, 2011

@azawawi - I believe Strawberry is intended to fix a different problem, offering an easy GUI to install Perl, as expected in a Windows environment. In order to figure out how can perlbrew be ported to Windows, we need to understand how the Strawberry Perl binary is compiled in the first place. Are there any docs/blog posts about this? How can one use the tools provided by Strawberry to download and compile another perl? Once these particular bits are answered, I'm pretty confident we can try porting the bash bits to batch files :)

@gugod - Strawberry not only ships with several tools, but also includes a lot of modules not present in core, File::HomeDir being one of them :)

Kang-min Liu
Owner

I think the project to build only perl on win32 is named VanillaPerl.

Reini Urban

The similar App::perlall supports win32. building win32 is a but tricky though, and there is still some work to be done to set sane config defaults.

Nikolay Mishin
mishin commented July 29, 2013

2azawawi I also want to adopt perblrew to Strawberry perl,
do you have some ideas?
ps.cygwin is good choice, like it, but very longer to install
i dream about pure perl perlbrew

garfieldnate

There is info on how to build Strawberry: http://strawberryperl.com/documentation/building.html
Also, this Perlmonks node may come in handy sometime: http://www.perlmonks.org/?node_id=998116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.