信息
cpu:armv7处理器版本1(v7l)x 4
内存:2gb
ubuntu:16.04lts(xenial xerus)32位
问题
我尝试在ubuntu16.04lts中构建apachemesos 1.5.0。建造步骤如下:
# 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-8-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 python-six python-virtualenv libcurl4-nss-dev libsasl2-dev libsasl2-modules maven libapr1-dev libsvn-dev zlib1g-dev
$ wget http://www.apache.org/dist/mesos/1.5.0/mesos-1.5.0.tar.gz
$ tar -zxf mesos-1.5.0.tar.gz
# Change working directory.
$ cd mesos
# Bootstrap (Only required if building from git repository).
$ ./bootstrap
# Configure and build.
$ mkdir build
$ cd build
$ ../configure
$ make
但是,它在make步骤中遇到了一个问题:
Building mesos-1.5.0.jar ...
[INFO] Scanning for projects...
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/apache/11/apache-11.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.apache.mesos:mesos:1.5.0: Could not transfer artifact org.apache:apache:pom:11 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Temporary failure in name resolution and 'parent.relativePath' points at wrong local POM @ line 18, column 11
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.mesos:mesos:1.5.0 (/home/lemaker/project/mesos-1.5.0/build/src/java/mesos.pom) has 1 error
[ERROR] Non-resolvable parent POM for org.apache.mesos:mesos:1.5.0: Could not transfer artifact org.apache:apache:pom:11 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Temporary failure in name resolution and 'parent.relativePath' points at wrong local POM @ line 18, column 11: Unknown host repo.maven.apache.org: Temporary failure in name resolution -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Makefile:14487: recipe for target 'java/target/mesos-1.5.0.jar' failed
make[1]:***[java/target/mesos-1.5.0.jar] Error 1
make[1]: Leaving directory '/home/lemaker/project/mesos-1.5.0/build/src'
Makefile:773: recipe for target 'all-recursive' failed
make:***[all-recursive] Error 1
如何解决这个问题?
相关主题:
生成mesos时出错
https://mail-archives.apache.org/mod_mbox/mesos-issues/201511.mbox/%3cjira.12905609.1445020212000.94850.1447780930977@atlassian.jira%3e
1条答案
按热度按时间rhfm7lfc1#
mesos在linux(64位)和mac os x(64位)上运行。要从源代码构建mesos,需要gcc4.8.1+或clang3.5+。
如果arm不需要java绑定,那么可以不用它来构建mesos。只需配置它并显式禁用java。它将减少构建时间。
记住arm不是官方支持的,也不是所有的测试都通过了(见mesos-8635),也不是所有的依赖都在arm上工作(见glog-256)
本机绑定已被弃用,取而代之的是api。