From f242e0ca2d136224e8719e08b7cf207dd706feb2 Mon Sep 17 00:00:00 2001 From: Hauke D Date: Thu, 8 Nov 2018 15:29:08 +0100 Subject: [PATCH] Document cpanfiles 7dd3d9fbe147a484eeb89b36625a989406165153 and f7b5822176ce65f67d906c9d1801e614c7abacce --- building.md | 12 ++++++------ index.md | 7 ++++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/building.md b/building.md index 62aaf92..01e440a 100644 --- a/building.md +++ b/building.md @@ -26,12 +26,12 @@ Prerequisites - [Emscripten](http://emscripten.org) SDK, 1.38.10 and up, please see the prerequisites and installation instructions at -- The build script has several CPAN dependencies. One way to install them - is using [lazy](https://metacpan.org/pod/lazy): first, - install "lazy", then run e.g. `perl -Mlazy build.pl --help`. - Otherwise, the modules used by `build.pl` can be seen in - [its source](https://github.com/haukex/webperl/blob/master/build/build.pl) - grouped near the top of the file. +- The build script has several CPAN dependencies. You can install these + via [`cpanm`](https://metacpan.org/pod/App::cpanminus) and the provided + `cpanfile`: `cd` to the `build` directory, then run `cpanm --installdeps .` + (Otherwise, see the `cpanfile` or the source of `build.pl` and install these + modules with the installer of your choice. Another possibility is to use + [`lazy`](https://metacpan.org/pod/lazy), e.g. `perl -Mlazy build.pl --help`) - A working Internet connection is needed for installation and the first build. diff --git a/index.md b/index.md index 64367d0..87f6573 100644 --- a/index.md +++ b/index.md @@ -46,15 +46,16 @@ Quick Start ----------- - Prerequisites: `perl` (a recent version is recommended, e.g. v5.26 and up), - [`plackup` from Plack](https://metacpan.org/pod/distribution/Plack/script/plackup), - [Plack::Middleware::CrossOrigin](https://metacpan.org/pod/Plack::Middleware::CrossOrigin), - and [Cpanel::JSON::XS](https://metacpan.org/pod/Cpanel::JSON::XS). + and [`cpanm`](https://metacpan.org/pod/App::cpanminus) to easily install + dependencies (otherwise, see the file `cpanfile` for the dependencies and + use the module installer of your choce). - In a shell: $ wget https://github.com/haukex/webperl/releases/download/v0.09-beta/webperl_prebuilt_v0.09-beta.zip $ unzip webperl_prebuilt_v0.09-beta.zip $ cd webperl_prebuilt_v0.09-beta + $ cpanm --installdeps . $ plackup webperl.psgi HTTP::Server::PSGI: Accepting connections at http://0:5000/