Return-Path: Delivered-To: apmail-hadoop-general-archive@minotaur.apache.org Received: (qmail 16095 invoked from network); 8 Mar 2010 18:07:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Mar 2010 18:07:28 -0000 Received: (qmail 46492 invoked by uid 500); 8 Mar 2010 18:07:03 -0000 Delivered-To: apmail-hadoop-general-archive@hadoop.apache.org Received: (qmail 46421 invoked by uid 500); 8 Mar 2010 18:07:03 -0000 Mailing-List: contact general-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@hadoop.apache.org Delivered-To: mailing list general@hadoop.apache.org Received: (qmail 46413 invoked by uid 99); 8 Mar 2010 18:07:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 18:07:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.191.91.169] (HELO web37907.mail.mud.yahoo.com) (209.191.91.169) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 08 Mar 2010 18:06:54 +0000 Received: (qmail 27526 invoked by uid 60001); 8 Mar 2010 18:06:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1268071592; bh=H/M/sKujn9gVoR2Oe6sgUmTp9o9pEW511tEFGzSj1uk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=izzwGJ0YdSGlWdJKmqW1fElNP4tIwL6iWeZpn69PeIAWtmrIHMnOPGo4U1JztmEO8TWGaFAl/68kZtxF1XARCBoRhe43uod0+qWxfhOsDyoS+4XEfpeskEAHLECaKrv1/gvRe+oiVaT7u3EF+5LviNLShUTlxyjaUcvFu3b51mE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Y5nBEWdnYvxfBhFgKSomsGoElMt3UpulLOe6sjoU6dkCA4u4GUBIuLM7D44Ak9/7CrZVQGxg2GZ42wohsjAMZ3nVCOaCZbvoQJVh6PimShp8+aQaaGzdsvdOCiqxdiXBidK/V7cpDz3UEHO2O5yPWWFDaPLBWTtpz80rDeDtSt8=; Message-ID: <673653.27493.qm@web37907.mail.mud.yahoo.com> X-YMail-OSG: f6UDwPkVM1lyZRKY8pbbH0BsYjDUWAItEZw6O2CTA.zYTKw XQS_n_66NuBR6EiitgqbN6sjLtcXmGm.HCSIy3XhphB2byLPxrKC5H5TLMiL GlDAPe0KzKOURz6asqh97V4rAz8hCeaR3G27vzwKBnZIlsxkKg.9fRzGea_N .yexbjliRqTxS4BnBAe92ehqBGz5TVLC9eoUZ8V_pdCRn7ZglmryJt0T8XU6 SAYvk2jmsuo3M3xkCsP0uc4xFyFc9mU_h1TyqYLkxZEvworPdnqmfIHt5FIK x.ym4ZDz_gtSI8u0DvEDmwBx7sJx9ZerIli2_n2uNCmUf8FUYJmAZ9qaA_Zx JbcD2ryULtXCOaipKKqnYsm2AdRALEg-- Received: from [63.147.59.14] by web37907.mail.mud.yahoo.com via HTTP; Mon, 08 Mar 2010 10:06:32 PST X-Mailer: YahooMailClassic/9.2.12 YahooMailWebService/0.8.100.260964 Date: Mon, 8 Mar 2010 10:06:32 -0800 (PST) From: Gary Yang Subject: Re: Compilation failed when compile hadoop common release-0.20.2 To: general@hadoop.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org Hi Owen, Thanks for the reply. From the link you provided, I found the build instruction. I do not understand the option, "-Djava5.home=/usr/local/jdk1.5". Does it mean I have to use JDK 1.5? I read somewhere it suggested to use JDK 1.6. Also, the very first line is "export JAVA_HOME=/path/to/32bit/jdk ". Does it mean the JAVA_HOME jdk has to be 1.5? Please let me know. export JAVA_HOME=/path/to/32bit/jdk export CFLAGS=-m32 export CXXFLAGS=-m32 ant -Dversion=X.Y.Z -Dcompile.native=true -Dcompile.c++=true -Dlibhdfs=1 -Dlibrecordio=true -Dxercescroot=/usr/local/xerces-c -Declipse.home=/usr/lib/eclipse -Dforrest.home=/usr/local/forrest -Djava5.home=/usr/local/jdk1.5 clean api-report tar test test-c++-libhdfs export JAVA_HOME=/path/to/64bit/jdk export CFLAGS=-m64 export CXXFLAGS=-m64 ant -Dversion=X.Y.Z -Dcompile.native=true -Dcompile.c++=true compile-core-native compile-c++ tar Thanks, Gary --- On Fri, 3/5/10, Owen O'Malley wrote: > From: Owen O'Malley > Subject: Re: Compilation failed when compile hadoop common release-0.20.2 > To: general@hadoop.apache.org > Date: Friday, March 5, 2010, 4:32 PM > > On Mar 5, 2010, at 3:47 PM, Gary Yang wrote: > > > Hi, > > > > I try to compile hadoop common of the release 0.20.2. > Below are the error messages and java and ant versions I am > using. Please tell me what I missed. > > Forrest, which we use to generate the documentation, > requires java 5. Therefore, run: > > ant -Djava5.home=/some/path/to/java5 tar > > There are several more you need. For a more complete list, > I'd look at the how to release page: > > http://wiki.apache.org/hadoop/HowToRelease > > -- Owen >