From 47d7b7fb153beb17e9b19b3e7824820ab0dcf900 Mon Sep 17 00:00:00 2001 From: Stefano Borzì Date: Wed, 18 Mar 2020 23:09:29 +0100 Subject: Add debian cmake installation (#179) * Add debian cmake instlalation * Update Requirements.md * Update Requirements.md --- docs/Requirements.md | 50 ++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/Requirements.md b/docs/Requirements.md index 3288310..1ef6451 100644 --- a/docs/Requirements.md +++ b/docs/Requirements.md @@ -1,22 +1,57 @@ # GNU/Linux -## Debian-based -### Debian +## Debian-based requirements -`sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang libmysqlclient-dev libssl1.0-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libace-6.* libace-dev` +### Ubuntu +`sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libace-6.* libace-dev` + +To configure MySQL in Ubuntu 18.04 and similar (set `root` password and other settings) read [this guide](https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04). + +--- + + +### Debian 8 + +`sudo apt-get update && sudo apt-get install git make gcc g++ clang libmysqlclient-dev libssl1.0-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libace-6.* libace-dev` + +### Install last cmake version on Debian 8 + +To install last version of cmake use: +``` +sudo apt install python3-pip +pip3 install --upgrade cmake +``` + +Than **reboot** to sync the bash and use cmake from the terminal, than type the followings commands to check the cmake version: +``` +cmake --version +``` +You should have a version **>= 3.8**. + +Continue below the guide to install the other installation requirements. + +**Troubleshooting (cmake install)**: if you get any errors like: `No module named 'skbuild'`, you can solve with this: + +``` +apt install python3-pip +pip3 install scikit-build +pip3 install --upgrade pip +pip3 install cmake +``` ### Debian 9 `sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang default-libmysqlclient-dev libssl1.0-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libace-6.* libace-dev` +You might need to add the stretch-backports repositories to APT in order to install clang-6.x+ and cmake v3.8+. +If you do not succeed installing cmake you can use the package manager of python3 (pip3) + ### Debian 10 `sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang default-libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mariadb-server libace-6.* libace-dev` -### Ubuntu -`sudo apt-get update && sudo apt-get install git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mysql-server libace-6.* libace-dev` +--- -To configure MySQL in Ubuntu 18.04 and similar (set `root` password and other settings) read [this guide](https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04). ### Check your clang version @@ -36,8 +71,7 @@ If you use another distro or version, search on google for how to install the ri Your `cmake` version **MUST** be `3.8` or higher. -If you are using an older version of Ubuntu like 16.04, you need to follow the instructions here in order to install the latest version: -https://apt.kitware.com/ +On an older version of Ubuntu (example: 16.04), you can follow the instructions here in order to install the latest cmake version. On debian you would need to use the backports sources or build Cmake manually. ### Ensure that the gcc-7 headers are installed -- cgit