twiggy command not found

In this troubleshooting guide we learn how to fix twiggy command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

twiggy: command not found

or when using sudo you get the following error message

sudo: twiggy: command not found

Solutions to twiggy: command not found

How To Fix twiggy: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu twiggy is provided by twiggy package.

twiggy is:

Twiggy is a lightweight and fast HTTP server with unique features:

  • Can run any PSGI applications. Fully supports psgi.nonblocking and psgi.streaming interfaces.
  • This server uses AnyEvent and runs in a non-blocking event loop, so it’s best to run event-driven web applications that runs I/O bound jobs or delayed responses such as long-poll, WebSocket or streaming content (server push).
  • Uses XS/C based HTTP header parser for the best performance. (optional)
  • The memory required to run twiggy is 6MB and it can serve more than 4500 req/s with a single process on Perl 5.10 with MacBook Pro 13" late 2009.
  • Supports Server::Starter for hot deploy and graceful restarts.

To fix this problem, we can install more using the command below.

sudo apt-get -y install twiggy

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install twiggy.

sudo apt -y install twiggy

Or if you have aptitude installed you can use the following command.

sudo aptitude install twiggy

Summary

In this tutorial we learn how to fix twiggy command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.