Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-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 87B9079DD for ; Wed, 21 Dec 2011 11:00:04 +0000 (UTC) Received: (qmail 13404 invoked by uid 500); 21 Dec 2011 11:00:04 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 13375 invoked by uid 500); 21 Dec 2011 11:00:04 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 13367 invoked by uid 99); 21 Dec 2011 11:00:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 11:00:04 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of afathalla@gmail.com designates 74.125.83.47 as permitted sender) Received: from [74.125.83.47] (HELO mail-ee0-f47.google.com) (74.125.83.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 10:59:59 +0000 Received: by eeit10 with SMTP id t10so3369359eei.6 for ; Wed, 21 Dec 2011 02:59:38 -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=eENMru+NyEr88PiYkKM9JjZjai2yzxdbQOeDfOm0G3A=; b=UZYnNZwZLniJ2YDDCXuzTiXv4Iew3C9DVgWkqTXsJ1CU3k7uTtt+M3i+EMvd5ReNY+ J8de8bIq2VuzT6PEcaoPOhwEAfCjNoZg7/NFO1AvE5SuptQbfWNpfQ9c9Esmrst4oQcW bEgmuuVliVwNKmrbu5WXG7CHhKwQmjpDuaSbo= MIME-Version: 1.0 Received: by 10.213.29.130 with SMTP id q2mr1299572ebc.85.1324465178052; Wed, 21 Dec 2011 02:59:38 -0800 (PST) Received: by 10.14.95.195 with HTTP; Wed, 21 Dec 2011 02:59:37 -0800 (PST) In-Reply-To: References: Date: Wed, 21 Dec 2011 12:59:37 +0200 Message-ID: Subject: Re: Build Error while running build script From: Ahmed Fathalla To: ambari-dev@incubator.apache.org, rohithsharmaks@huawei.com Content-Type: multipart/alternative; boundary=0015174c1840748be404b498147e --0015174c1840748be404b498147e Content-Type: text/plain; charset=ISO-8859-1 This happened to me when I tried to build the rpm on Ubuntu, are you using a Debian based system? On Wed, Dec 21, 2011 at 12:45 PM, RohithSharma wrote: > Hi Everyone, > > > > I am trying to build Ambari from svn following instructions given in > read me, as there is no Ambari distribution available in the Apache. > > > > Following are the steps performed > > > > Installed Python2.6 and its dependencies. > > > > Executed the command "mvn clean package -P rpm -DskipTests -X" in the > Ambari_Home folder. > > > > While RPM task execution , it failed. Appreciate if you can tell me what > I'm doing wrong > > > > [rpm] -rwxr-xr-x root/root 295 2011-12-21 14:23 > ./usr/local/bin/ambari-agent > [rpm] -rwxr-xr-x root/root 317 2011-12-21 14:23 > ./usr/local/bin/ambari-torrent-callback > [rpm] ++ /usr/bin/id -u > [rpm] + '[' 0 = 0 ']' > [rpm] + /bin/chgrp -Rhf root . > [rpm] + /bin/chmod -Rf a+rX,u+w,g-w,o-w . > [rpm] + exit 0 > [rpm] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.94888 > [rpm] + umask 022 > [rpm] + cd > /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD > [rpm] + /bin/rm -rf > /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD > [rpm] ++ dirname > /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD > [rpm] + /bin/mkdir -p > /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari > [rpm] + /bin/mkdir > /home/isap/.hudson/jobs/Ambari/workspace/agent/target/rpm/ambari/BUILD > [rpm] > [rpm] > [rpm] RPM build errors: > [rpm] + cd usr > [rpm] /var/tmp/rpm-tmp.94888: line 26: cd: usr: No such file or > directory > [rpm] error: Bad exit status from /var/tmp/rpm-tmp.94888 (%build) > [rpm] Bad exit status from /var/tmp/rpm-tmp.94888 (%build) > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] agent ............................................. FAILURE > [19.360s] > > [INFO] ambari ............................................ SKIPPED > [INFO] client ............................................ SKIPPED > [INFO] controller ........................................ SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 20.854s > [INFO] Finished at: Wed Dec 21 14:23:14 IST 2011 > [INFO] Final Memory: 5M/15M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-antrun-plugin:1.6:run (build-rpm) on project > ambari-agent: An Ant BuildException has occured: The following error > occurred while executing this line: > [ERROR] > /home/isap/.hudson/jobs/Ambari/workspace/agent/src/packages/build.xml:94: > '/usr/bin/rpmbuild' failed with exit code 1 > [ERROR] -> [Help 1] > [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/MojoExecutionException > > > > > > > > Thanks & Regards > > Rohith Sharma K S > > -- Ahmed Fathalla --0015174c1840748be404b498147e--