Installing Mojolicious on Windows

546 views
Skip to first unread message

Bryan

unread,
Oct 17, 2017, 11:03:14 PM10/17/17
to Mojolicious
I am curious to know if anyone has been successful installing with ActiveState Perl on Windows.  I messed around for quite a few hours today trying to get it working.  I installed MinGW and still no success.  MinGW is not a straightforward setup and "perl -MCPAN -e shell" never could find gcc even though it was in my PATH.

Interestingly, I installed Strawberry Perl and ran "cpan Mojo::DOM" and it installed in seconds.  Since Strawberry ships with gcc and make I am not sure I'll ever need to go back to ActiveState Perl.  But, I am interested to know if installation is possible in the event I need to install it in the future.

Cheers!

Joel Berger

unread,
Oct 18, 2017, 12:52:46 AM10/18/17
to Mojolicious
While I don't use Windows myself (hopefully someone else can give personal experience), I am curious about the problems that you see on ActiveState? Are you using CPAN.pm or are you using PPM (http://code.activestate.com/ppm/Mojolicious/)? Can you post some output? I don't know how well CPAN.pm works on AS though I thought it had improved since Strawberry raised the bar.

I don't think very many people (any?) use MinGW directly for their Perl, though maybe I could be wrong.

When I do have to use Windows I use Strawberry, though probably the next time around I will be looking at WSL, assuming it have windows 10. WSL is going to become near mandatory for me to personally consider Windows jobs soon.

Paolo Saudin

unread,
Oct 18, 2017, 1:24:21 AM10/18/17
to mojol...@googlegroups.com
I now use Strawberry on Windows 10, but I still have some old pc with ActiveState on them. In those case I install packages via PPM, and always worked for me. I never used MinGW.

-- windows
ppm install Mojolicious
ppm install Mojolicious-Plugin-Authentication
ppm install -f Mojolicious-Plugin-Authorization
ppm install DBI
ppm install DBIx-Connector

Paolo

--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscribe@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Bryan

unread,
Oct 18, 2017, 9:52:54 AM10/18/17
to Mojolicious
Thank you Paolo.  That is helpful.  I should have tried ppm and not sure why I didn't since I normally use it.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious...@googlegroups.com.

Bryan

unread,
Oct 18, 2017, 1:09:04 PM10/18/17
to Mojolicious
Apologies for not being more clear in the ticket yesterday.  I was putting out fires at work and a little unfocused.  I am not a Windows user either which may be part of my problem ;-)  I have deleted ActiveState from my system so I cannot post output.  I was using CPAN.pm.  Here is what I was using:

perl -MCPAN -e shell
install Mojo

About 2/3s into the install the shell would begin throwing errors about gcc not being found. I could execute gcc from the command line without fully qualifying the location since it was in my user path. Once I installed Strawberry Perl the install completed flawlessly (and very quickly).
Not to knock ActiveState but Strawberry is open source and it includes gcc and make. I recommend adding a short blurb to the FAQ that the Strawberry distro works well and all that is required for install is this command:

$ cpan Mojolicious

or if installing a subset

$ cpan Mojo::DOM

I have not tried subprocesses on Windows nor do I intend to do so. That is clearly in the realm of Linux.




Reply all
Reply to author
Forward
0 new messages