Skip to content
Dan Book edited this page Aug 14, 2018 · 16 revisions

Installation of Mojolicious

Using cpanm

This is what helped me to get started with mojo, perhaps it helps you, too. ;-) First of all, you need to install Mojolicious (which also installs Mojo)

$ sudo -s 'curl -L cpanmin.us | perl - Mojolicious'

You can also install specified version of Mojolicious

$ sudo -s 'curl -L cpanmin.us | perl - Mojolicious@3.87'

CPAN client

If you want to install Mojolicious from the CPAN shell you can run the command

$ cpan Mojolicious

and the Mojolicious framework will be installed.

Repositories

RPM for RHEL/CentOS 6/7

If you are running Mojolicious on a Red Hat/CentOS based server you might want to look for RPM packages. It is available as perl-Mojolicious from EPEL on RHEL 7. Make sure to also install the RPM package perl-core so that you have a full set of core modules for your Perl installation. Please note - only RHEL 6 and 7 come with a decent enough Perl to install Mojolicious, RHEL 5 is too old. You may also consider installing a separate Perl using Perl::Build, perlbrew, or plenv.

PPM repositories for Windows

If you are using Windows as a development platform you can still use Mojolicious with ease. The steps to install Mojolicious on the Windows platfrom differ from the previous steps.

Cygwin

Cygwin is nearly complete emulation of Unix on Windows. You can pick one of the methods earlier to install Mojolicious.

ActiveState Perl

People with ActiveState Perl can open the Perl Package Manager application and can search for Mojolicious inside the search filed. ActiveState Perl always has a current version, sometimes they are a little behind. Just install it from the package manager.

You can also use the Windows cmd interpreter to install Mojolicious from the command line. Just run the following command to install Mojolicious.

c:\> ppm install Mojolicious

Strawberry Perl

If you are using Strawberry Perl you can either use the Perl Package Manager from the command line to install Mojolicious or you can use the CPAN method which is described earlier.

Clone this wiki locally