mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] greggomann closed pull request #105: MESOS-3139 Added first draft CMake build docs.
Date Mon, 27 Aug 2018 17:45:57 GMT
greggomann closed pull request #105: MESOS-3139 Added first draft CMake build docs.
URL: https://github.com/apache/mesos/pull/105
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/cmake.md b/docs/cmake.md
new file mode 100644
index 0000000000..eac94da76a
--- /dev/null
+++ b/docs/cmake.md
@@ -0,0 +1,59 @@
+---
+title: Apache Mesos - CMake
+layout: documentation
+---
+
+# CMake
+
+## Downloading Mesos
+
+There are different ways you can get Mesos:
+
+1\. Download the latest stable release from [Apache](http://mesos.apache.org/downloads/)
(***Recommended***)
+
+    $ wget http://www.apache.org/dist/mesos/0.28.1/mesos-0.28.1.tar.gz
+    $ tar -zxf mesos-0.28.1.tar.gz
+
+2\. Clone the Mesos git [repository](https://git-wip-us.apache.org/repos/asf/mesos.git) (***Advanced
Users Only***)
+
+    $ git clone https://git-wip-us.apache.org/repos/asf/mesos.git
+
+*NOTE: If you have problems running the above commands, you may need to first run through
the ***System Requirements*** section below to install the `wget`, `tar`, and `git` utilities
for your system.*
+
+## System Requirements
+
+Mesos runs on Linux (64 Bit) and Mac OS X (64 Bit). To build Mesos from source, GCC 4.8.1+
or Clang 3.5+ and CMake 3.5.1 is required.
+
+For full support of process isolation under Linux a recent kernel >=3.10 is required.
+
+Make sure your hostname is resolvable via DNS or via `/etc/hosts` to allow full support of
Docker's host-networking capabilities, needed for some of the Mesos tests. When in doubt,
please validate that `/etc/hosts` contains your hostname.
+
+### Ubuntu 16.04
+
+Following are the instructions for stock Ubuntu 16.04. If you are using a different OS, please
install the packages accordingly.
+
+    # Update the packages.
+    $ sudo apt-get update
+
+    # Install a few utility tools.
+    $ sudo apt-get install -y tar wget git
+
+    # Install the latest OpenJDK.
+    $ sudo apt-get install -y openjdk-7-jdk
+
+    # Install autotools (Only necessary if building from git repository).
+    $ sudo apt-get install -y autoconf libtool
+
+    # Install other Mesos dependencies.
+    $ sudo apt-get -y install build-essential python-dev libcurl4-nss-dev libsasl2-dev libsasl2-modules
maven libapr1-dev libsvn-dev
+
+## Building Mesos with CMake
+
+    # Change working directory.
+    $ cd mesos
+
+    # Configure and build.
+    $ mkdir build
+    $ cd build
+    $ cmake ..
+    $ make
diff --git a/docs/home.md b/docs/home.md
index 16a77da437..75d659a1e8 100644
--- a/docs/home.md
+++ b/docs/home.md
@@ -13,6 +13,7 @@ layout: documentation
 ## Running Mesos
 
 * [Getting Started](getting-started.md) for basic instructions on compiling and installing
Mesos.
+* [CMake](cmake.md) for building Mesos with CMake.
 * [Upgrades](upgrades.md) for upgrading a Mesos cluster.
 * [Configuration](configuration.md) for command-line arguments.
 * [HTTP Endpoints](endpoints/) for available HTTP endpoints.


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message