You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Yu Wei <yu...@hotmail.com> on 2016/08/06 16:30:35 UTC

Configure error when try to build mesos from source on ubuntu

Hi guys,


I tried to build mesos 1.0.0 from source on Ubuntu.

I met following problem when tried to configure.

checking for curl_global_init in -lcurl... yes
configure: error: failed to determine linker flags for using Java (bad JAVA_HOME or missing support for your architecture?)


My JAVA_HOME is actually set to  "/usr/lib/jvm/java-8-oracle/jre".


Any hints about this issue?


Thx,


Jared, (??)
Software developer
Interested in open source software, big data, Linux

Re: Configure error when try to build mesos from source on ubuntu

Posted by Marco Massenzio <m....@gmail.com>.
As a follow up,  for those who may not need Java or Python support in their
build, you can use --disable-java and --disable-python flags; this is how I
usually run it:

mkdir build && cd build
../configure --prefix /my/path/to/local --disable-java --disable-python
make -j 10 V=0

(I use the --prefix so that the generated libraries during the make install
step won't "pollute" my system's /usr/local/bin).

You'll miss the build of the Java/Python protobuf, and probably other
stuff, but it's usually good enough to experiment with C++ frameworks,
features, etc.

YMMV


-- 
*Marco Massenzio*
http://codetrips.com

On Sat, Aug 6, 2016 at 9:54 AM, Yu Wei <yu...@hotmail.com> wrote:

> Yes, you're right. My java_home is not correct.
>
> Now the problem is fixed.
>
>
> Thanks very much.
>
>
> Jared, (韦煜)
> Software developer
> Interested in open source software, big data, Linux
>
> ________________________________
> From: haosdent <ha...@gmail.com>
> Sent: Sunday, August 7, 2016 12:39:09 AM
> To: dev
> Subject: Re: Configure error when try to build mesos from source on ubuntu
>
> Hi, @Yu Yei Mesos requires JDK not only JRE. Please follow
> https://github.com/apache/mesos/blob/master/docs/
> getting-started.md#ubuntu-1404
> to getting start
>
> ```
> # Install the latest OpenJDK.
> $ sudo apt-get install -y openjdk-7-jdk
> ```
>
> On Sun, Aug 7, 2016 at 12:30 AM, Yu Wei <yu...@hotmail.com> wrote:
>
> > Hi guys,
> >
> >
> > I tried to build mesos 1.0.0 from source on Ubuntu.
> >
> > I met following problem when tried to configure.
> >
> > checking for curl_global_init in -lcurl... yes
> > configure: error: failed to determine linker flags for using Java (bad
> > JAVA_HOME or missing support for your architecture?)
> >
> >
> > My JAVA_HOME is actually set to  "/usr/lib/jvm/java-8-oracle/jre".
> >
> >
> > Any hints about this issue?
> >
> >
> > Thx,
> >
> >
> > Jared, (??)
> > Software developer
> > Interested in open source software, big data, Linux
> >
>
>
>
> --
> Best Regards,
> Haosdent Huang
>

Re: Configure error when try to build mesos from source on ubuntu

Posted by Yu Wei <yu...@hotmail.com>.
Yes, you're right. My java_home is not correct.

Now the problem is fixed.


Thanks very much.


Jared, (韦煜)
Software developer
Interested in open source software, big data, Linux

________________________________
From: haosdent <ha...@gmail.com>
Sent: Sunday, August 7, 2016 12:39:09 AM
To: dev
Subject: Re: Configure error when try to build mesos from source on ubuntu

Hi, @Yu Yei Mesos requires JDK not only JRE. Please follow
https://github.com/apache/mesos/blob/master/docs/getting-started.md#ubuntu-1404
to getting start

```
# Install the latest OpenJDK.
$ sudo apt-get install -y openjdk-7-jdk
```

On Sun, Aug 7, 2016 at 12:30 AM, Yu Wei <yu...@hotmail.com> wrote:

> Hi guys,
>
>
> I tried to build mesos 1.0.0 from source on Ubuntu.
>
> I met following problem when tried to configure.
>
> checking for curl_global_init in -lcurl... yes
> configure: error: failed to determine linker flags for using Java (bad
> JAVA_HOME or missing support for your architecture?)
>
>
> My JAVA_HOME is actually set to  "/usr/lib/jvm/java-8-oracle/jre".
>
>
> Any hints about this issue?
>
>
> Thx,
>
>
> Jared, (??)
> Software developer
> Interested in open source software, big data, Linux
>



--
Best Regards,
Haosdent Huang

Re: Configure error when try to build mesos from source on ubuntu

Posted by haosdent <ha...@gmail.com>.
Hi, @Yu Yei Mesos requires JDK not only JRE. Please follow
https://github.com/apache/mesos/blob/master/docs/getting-started.md#ubuntu-1404
to getting start

```
# Install the latest OpenJDK.
$ sudo apt-get install -y openjdk-7-jdk
```

On Sun, Aug 7, 2016 at 12:30 AM, Yu Wei <yu...@hotmail.com> wrote:

> Hi guys,
>
>
> I tried to build mesos 1.0.0 from source on Ubuntu.
>
> I met following problem when tried to configure.
>
> checking for curl_global_init in -lcurl... yes
> configure: error: failed to determine linker flags for using Java (bad
> JAVA_HOME or missing support for your architecture?)
>
>
> My JAVA_HOME is actually set to  "/usr/lib/jvm/java-8-oracle/jre".
>
>
> Any hints about this issue?
>
>
> Thx,
>
>
> Jared, (??)
> Software developer
> Interested in open source software, big data, Linux
>



-- 
Best Regards,
Haosdent Huang