sql-split command not found

In this troubleshooting guide we learn how to fix sql-split command not found error message

Introduction

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

sql-split: command not found

or when using sudo you get the following error message

sudo: sql-split: command not found

Solutions to sql-split: command not found

How To Fix sql-split: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu sql-split is provided by libsql-splitstatement-perl package.

libsql-splitstatement-perl is:

This is a simple module which tries to split any SQL code, even including non-standard extensions into the atomic statements it is composed of.

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

sudo apt-get -y install libsql-splitstatement-perl

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

You can also use apt command to install libsql-splitstatement-perl.

sudo apt -y install libsql-splitstatement-perl

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

sudo aptitude install libsql-splitstatement-perl

Summary

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