I want to try playing around with Apache Mesos and the getting started guide includes stuff for CentOS. I’m okay with CentOS, but I prefer openSuSE.
However, my default install didn’t have everything I needed so for the most part taking care of pre-reqs isn’t too bad so:
zypper in python-devel python-virtualenv subversion-devel java-1_7_0-openjdk-devel zlib-devel libcurl-devel openssl-devel cyrus-sasl-devel cyrus-sasl-md5 libapr1-devel libapr-util1-devel
Cool, but we’re missing one big thing: Apache Maven
This isn’t in the normal default OpenSuSE repos. So that leaves us with two options:
- Install from source
- Find a repo
Installing from source is easy enough, but I don’t wanna do that. I’m too lazy, so let’s go hunting for a repo!
The first link that comes up when searching is garbage, so don’t waste your time.
A little later on, we have a very promising link and this is what we want!
Now, you can do the “One Click Install”, but I find it too slow with using a GUI. If you’re a beginner, then go for it. Otherwise, as root, do the following:
zypper addrepo -r http://download.opensuse.org/repositories/devel:tools:building/openSUSE_Leap_42.2/devel:tools:building.repo
zypper install maven
Now, I’ve added the -r flag because by default, adding a repo doesn’t automatically enable it to be refreshed. This could cause problems later on. So this way we’re good and if there’s an update, we’ll pick it up.
Once all of that is done, then just follow Mesos documentation for POSIX. As a rule of thumb, I use
make -j 2 * num_cpu when compiling.
EDIT: 2017/04/27 used a wrong closing tag.