Return-Path: X-Original-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D571E71BC for ; Fri, 9 Dec 2011 20:49:25 +0000 (UTC) Received: (qmail 2701 invoked by uid 500); 9 Dec 2011 20:49:25 -0000 Delivered-To: apmail-incubator-bigtop-dev-archive@incubator.apache.org Received: (qmail 2669 invoked by uid 500); 9 Dec 2011 20:49:25 -0000 Mailing-List: contact bigtop-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@incubator.apache.org Delivered-To: mailing list bigtop-dev@incubator.apache.org Received: (qmail 2661 invoked by uid 99); 9 Dec 2011 20:49:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2011 20:49:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of analog.sony@gmail.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-yx0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2011 20:49:17 +0000 Received: by yenm12 with SMTP id m12so2702803yen.6 for ; Fri, 09 Dec 2011 12:48:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/Cf6qk3qf6bK4CIeY8bjZoiumUShSXZl87Q51J/b9rc=; b=Kt0eNA4qPPJCeiVvIw1Brwh1BdmHczWcaXTygPXN92md59AWNq20MCcPMRl69BFqyo tXyquXP9dmRUpgn9K0jjdkKHnzx6/7hgkhyl65dpR+vYfLHeaMUwpJGFNvH66jpqpFPb WzTCaWzRbOfg+GKZGirxLJM5qDDYeqqVJkthg= MIME-Version: 1.0 Received: by 10.236.136.38 with SMTP id v26mr14762344yhi.69.1323463737021; Fri, 09 Dec 2011 12:48:57 -0800 (PST) Received: by 10.236.103.233 with HTTP; Fri, 9 Dec 2011 12:48:56 -0800 (PST) In-Reply-To: References: Date: Fri, 9 Dec 2011 12:48:56 -0800 Message-ID: Subject: Re: Native java headers not found for hadoop -error while building From: Anand L Ranganathan To: bigtop-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=20cf303bfe28eb15c304b3aee988 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303bfe28eb15c304b3aee988 Content-Type: text/plain; charset=ISO-8859-1 Not quite right. I could run hadoop example. This is problem with compiling hadoop native header file. There is an already a ticket opened on this issue. https://issues.apache.org/jira/browse/BIGTOP-280 -Anand On Fri, Dec 9, 2011 at 11:36 AM, Sridhar Iyer wrote: > It doesn't look like you have java-6-sun on your machine. Try setting your > JAVA_HOME to /usr/lib/jvm/java-6-openjdk > > - Sridhar > > On Fri, Dec 9, 2011 at 11:25 AM, Anand L Ranganathan > wrote: > > > I am getting following error when I build "sudo make hadoop-apt" . > > I set the JAVA_HOME path correctly and couldn't figureout why it is > > throwing this exception. > > > > [exec] checking for JNI_GetCreatedJavaVMs in -ljvm... no > > [exec] checking for ANSI C header files... (cached) yes > > [exec] checking stdio.h usability... yes > > [exec] checking stdio.h presence... yes > > [exec] checking for stdio.h... yes > > [exec] checking stddef.h usability... yes > > [exec] checking stddef.h presence... yes > > [exec] checking for stddef.h... yes > > [exec] > > > > > /home/analog/bigtop_src/bigtop/trunk/output/hadoop/hadoop-0.20.205.0/src/native/configure: > > line 20185: test: !=: unary operator expected > > [exec] checking jni.h usability... no > > [exec] checking jni.h presence... no > > [exec] checking for jni.h... no > > [exec] configure: error: Native java headers not found. Is $JAVA_HOME > > set correctly? > > > > > > My JAVA_HOME is set to /usr/lib/jvm/java-6-sun > > > > > > I tried to find the correct java installation on my machine using > > "*apt-file > > search jni.h*" . It resulted other java paths than sun java . > > > > apt-file search jni.h > > classpath-common: /usr/include/classpath/jni.h > > gcc-snapshot: > > /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.5.0/include/jni.h > > gcc-snapshot: /usr/lib/jvm/java-1.5.0-gcj-4.5-snap/include/jni.h > > gcj-4.4-jdk: /usr/lib/gcc/x86_64-linux-gnu/4.4/include/jni.h > > gcj-4.4-jdk: /usr/lib/jvm/java-1.5.0-gcj-4.4/include/jni.h > > kompozer-dev: /usr/include/kompozer/java/jni.h > > kompozer-dev: /usr/include/kompozer/jni.h > > libgcj9-dev: /usr/lib/gcc/x86_64-linux-gnu/4.3/include/jni.h > > openjdk-6-jdk: /usr/lib/jvm/java-6-openjdk/include/jni.h > > thunderbird-dev: /usr/include/thunderbird-3.0.4/stable/jni.h > > thunderbird-dev: /usr/include/thunderbird-3.0.4/unstable/jni.h > > > > Thanks > > Anand > > > --20cf303bfe28eb15c304b3aee988--