1. Introduction to Web System Development Perl & Mojolicious
  2. & # 8250;
  3. here

Building a web development environment on Linux

Explains how to build a web development environment on Linux servers such as Ubuntu, CentOS, and Debian.

It is assumed that you can connect to the Linux server using SSH.

Prerequisites for building a Web system development environment with Perl

I will write about the prerequisites for installing Perl on each Linux. Package installation commands such as yum and apt-get are different for Linux distributions, so write down what you need.

make

If make is not installed, please install it.

#CentOS example
sudo yum -y install make make

make is used as a tool to perform the steps when installing a Perl module.

gcc

If gcc is not installed, install it.

#CentOS example
sudo yum -y install gcc

gcc is needed to compile the C extension if it's used in a Perl module.

patch

If patch is not installed, install it.

#CentOS example
sudo yum -y install patch patch

patch is required if you want to use a Perl installation tool called perlbrew.

openssl

If openssl is not installed, please install it. In addition to the openssl commands, it also installs the openssl library (openssl-devel, named differently for Linux distributions).

#CentOS example
sudo yum -y install openssl
sudo yum -y install openssl-devel

openssl is not directly related to Perl, but it should be installed in advance as the recent web requires HTTPS to connect.

git

If you don't have git installed, install it.

#CentOS example
sudo yum -y git

Although git is not directly related to Perl, it is used for source code control in Web system development, so let's install it.

System Perl

For Web system development, I use Perl that is installed in the user environment, but it would be convenient if I also installed the system Perl.

#CentOS example
sudo yum -y install perl perl-core

Installing Perl in the user environment

Next, let's install Perl. Install Perl in your environment. The part of the following article, "Installing Perl in the User Environment".

When developing a Web system, use the one installed in the above procedure instead of the core Perl. The biggest reason is that it's easy and convenient to have Perl installed in your environment to install modules from a site called CPAN.

You can also upgrade Perl-only without relying on the system Perl.

Install Mojolicious

Finally, install Mojolicious using a tool called cpanm that you installed when you installed Perl on Linux.

cpanm Mojolicious

Thank you for building the Web system development environment.

(Those who can describe the part corresponding to yum in CentOS in Ubuntu and Debian, we are looking for help)

Associated Information