Installation via pip
If pip installed in your system, you can install kvlite via
`pip install kvlite`
For mysql support mysql-python package is required
`pip install mysql-python`
Note! If during mysql-python installation will be raised errors:
EnvironmentError: mysql_config not found http://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found, it seems mysql_config is missing on your system or the installer could not find it. Be sure mysql_config is really installed. For example on debian you must install the package: libmysqlclient-dev. Maybe the mysql_config is not in your path, it will be the case when you compile by yourself the mysql suite.
sudo apt-get install libmysqlclient-dev
fatal error: Python.h: No such file or directory http://www.cyberciti.biz/faq/debian-ubuntu-linux-python-h-file-not-found-error-solution/. Please check that python-dev is installed
sudo apt-get install python-dev
kvlite library support as backend MySQL database. Please check that mysql server is installed and configured.
For Ubuntu OS you need:
$ sudo apt-get install mysql-server
make test-all and
make test-all-with-coverage you need create test database
/* create database */ CREATE DATABASE IF NOT EXISTS kvlite_test; /* create user for kvlite_test */ CREATE USER 'kvlite_test'@'localhost' IDENTIFIED BY 'eixaaghiequ6ZeiBahn0'; /* add 'kvlite_test' user rights for 'kvlite_test' database */ GRANT ALL ON kvlite_test.* TO 'kvlite_test'@'localhost';