[
https://issues.apache.org/jira/browse/MESOS-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15269861#comment-15269861
]
Samuel Cozannet commented on MESOS-4312:
----------------------------------------
Hi Abhishek,
Assuming you run on a Ubuntu Xenial machine, the below steps create deb
packages for Mesos and Marathon from bleeding edge (I lost my first VM in
between, so let me know if that doesn't work and I'll rework it as necessary).
For Marathon, you also get rpms from this. It's probably easy enough to adapt
the packaging command in build_mesos, but I am really not familiar with
centos/rhel...
```
sudo apt-get update -qq
sudo apt-get install -y --force-yes \
tar \
wget \
tree \
autoconf \
automake \
git \
make \
gcc \
libcurl4-nss-dev \
libsasl2-dev \
libsasl2-modules \
libssl-dev \
libapr1-dev \
libsvn-dev \
libffi-dev \
openjdk-8-jdk \
maven \
autoconf libtool \
build-essential \
python-setuptools \
python-dev \
python-boto \
ruby \
ruby-dev \
rubygems-integration \
rake-compiler \
bsdtar
# This is to build Marathon
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a
/etc/apt/sources.list.d/sbt.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
sudo apt-get update -yqq
sudo apt-get install -yqq --force-yes sbt
# Some gem dependencies
sudo gem install \
yard \
rspec \
rubygems-tasks \
bundler \
tasks \
task \
custom_require
# We need to install FPM manually as it doesn't run on Xenial on Power
cd ~
git clone https://github.com/jordansissel/fpm.git
cd ~/fpm
bundle install
make
sudo make install
# This is hacky as the default nvidia script doesn't check for arch
# On x86_64, you'd just install fpm via gem
wget
http://developer.download.nvidia.com/compute/cuda/7.5/Prod/gdk/gdk_linux_ppc64le_352_79_release.run
chmod +x gdk_linux_ppc64le_352_79_release.run
sudo ./gdk_linux_ppc64le_352_79_release.run --installdir=/opt/nvidia-gdk
--silent
echo "/opt/nvidia-gdk/usr/src/gdk/nvml/lib" | sudo tee
/etc/ld.so.conf.d/nvidia-gdk.conf
sudo ldconfig
# Using trunk
cd ~
git clone https://git-wip-us.apache.org/repos/asf/mesos.git
# Using my personal branch of this. Will PR later
# This version:
# - adds the "--enable-gpu" option
# - adds systemd for Xenial, keeps upstart for lower versions
git clone https://github.com/samnco/mesos-deb-packaging.git
cd mesos-deb-packaging
./build-mesos --src-dir=${HOME}/mesos --enable-gpu
# If you want to package marathon as well:
cd ~
git clone https://github.com/mesosphere/marathon.git marathon
cd marathon
sbt assembly
cd ~
clone https://github.com/mesosphere/marathon-pkg.git
cd marathon-pkg/
git submodule update --init
gem install
make all
```
If you run on Trusty (14.04), the changes should be:
# Not the same version for JDK
sudo apt-get install openjdk-7-jdk
# FPM much easier to install:
sudo gem install fpm
Important: keep using my branch of mesos-dev-packaging as it takes care of the
gpu enablement.
The rest is similar.
If you run on x86, you can essentially use the same script, but you can use
~/mesos/support/install-nvidia.sh, which only takes care of amd64 drivers for
now. I'll PR something at some point, but not had time yet.
Hope this help, don't hesitate to get back to me.
> Porting Mesos on Power (ppc64le)
> --------------------------------
>
> Key: MESOS-4312
> URL: https://issues.apache.org/jira/browse/MESOS-4312
> Project: Mesos
> Issue Type: Epic
> Reporter: Qian Zhang
> Assignee: Chen Zhiwei
>
> The goal of this ticket is to make IBM Power (ppc64le) as a supported
> hardware platform of Mesos. Currently the latest Mesos code can not be
> successfully built on ppc64le, we will resolve the build errors in this
> ticket, and also make sure Mesos test suite ("make check") can be ran
> successfully on ppc64le.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)