- Hands-On Server-Side Web Development with Swift
- Angus Yeung
- 179字
- 2021-06-10 19:00:14
Installing required Linux system packages
# Step 3a: Install required packages for Kitura $ sudo apt-get update $ sudo apt-get install clang libicu-dev libcurl4-openssl-dev libssl1.0-dev
These are the prerequisites for your Kitura installation. Kitura requires OpenSSL v1.0.x so it won't work with a newer version such as OpenSSL v1.1.x in some of the latest Linux system.
In order to install the Kitura CLI itself, you need to install Node.js and its package manager, npm, first. Node Package Manager (npm) is a CLI for managing modules in a Node.js project.
Install Node.js and npm using the apt package manager on Ubuntu:
# Step 3b: Install the NPM package
$ sudo apt install nodejs npm
With the npm package manager properly installed on your machine, proceed to install the Kitura CLI via npm:
# Step 3c: Install the Kitura package
$ npm install -g kitura-cli
The previous command will do a global installation of the Kitura CLI.
Run the following command to test the Kitura CLI tool you've just installed:
# Step 3d: Test the installed Kitura
$ kitura --help