This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch 4.11
in repository https://gitbox.apache.org/repos/asf/cloudstack-documentation.git
The following commit(s) were added to refs/heads/4.11 by this push:
new 6307766 Update requirements for Ubuntu 18.04 (#22)
6307766 is described below
commit 6307766484878f571a91234885fc2cf1afeb5e21
Author: Andrija Panic <[email protected]>
AuthorDate: Fri Jan 25 17:55:59 2019 +0100
Update requirements for Ubuntu 18.04 (#22)
Updated guide to support Ubuntu 18.04, since python3 is default, and also
default java version is 10
---
source/installguide/building_from_source.rst | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/source/installguide/building_from_source.rst
b/source/installguide/building_from_source.rst
index 508899d..74967ec 100644
--- a/source/installguide/building_from_source.rst
+++ b/source/installguide/building_from_source.rst
@@ -180,9 +180,14 @@ Install Python MySQL connector using the official MySQL
packages repository.
MySQL connector APT repository
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.. note::
+
+ Procedure below should work for Ubuntu 14.04 and 16.04.
+ For Ubuntu 18.04, please read later below.
+
Install the following package provided by MySQL to enable official
repositories:
-.. note:
+.. note::
If the download fails check the current version number. The version
available may
have been updated.
@@ -199,6 +204,16 @@ Make sure to activate the repository for MySQL connectors.
sudo apt-get update
sudo apt-get install mysql-connector-python
+.. note::
+ Below is given a bit different procedure if you are compiling on Ubuntu
18.04
+
+Due to default python version changes (and some others) in Ubuntu 18.04
version, we will need to install python 2.7, python-mysql.connector from
Universe repo (instead from official MySQL repo) and later make sure we are
using Java 8, since Java 10 comes as default
+
+.. parsed-literal::
+
+ apt-add-repository universe
+ apt-get install python-mysql.connector python-setuptools dh-systemd
+ (installs python 2.7 with needed dependencies)
MySQL connector RPM repository
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -239,6 +254,11 @@ several other dependencies. Note that we recommend using
Maven 3.
$ sudo apt-get install python-software-properties
$ sudo apt-get update
$ sudo apt-get install debhelper openjdk-8-jdk libws-commons-util-java
genisoimage libcommons-codec-java libcommons-httpclient-java liblog4j1.2-java
maven
+
+.. note::
+
+If on Ubuntu 18.04, in above command, please replace
"python-software-properties" with "software-properties-common"
+If on Ubuntu 18.04, above command will install both Java 10 and Java 8, so
make sure to switch to Java8 with "update-alternatives --config java" -
otherwise you will get errors during dependency check and code compiling.
While we have defined, and you have presumably already installed the
bootstrap prerequisites, there are a number of build time prerequisites