Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE4D7964A for ; Mon, 31 Oct 2011 19:46:01 +0000 (UTC) Received: (qmail 64145 invoked by uid 500); 31 Oct 2011 19:46:00 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 64076 invoked by uid 500); 31 Oct 2011 19:46:00 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 64068 invoked by uid 99); 31 Oct 2011 19:46:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2011 19:46:00 +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 tucu@cloudera.com designates 209.85.212.48 as permitted sender) Received: from [209.85.212.48] (HELO mail-vw0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2011 19:45:52 +0000 Received: by vws7 with SMTP id 7so876689vws.35 for ; Mon, 31 Oct 2011 12:45:31 -0700 (PDT) Received: by 10.220.107.82 with SMTP id a18mr2530818vcp.79.1320090331266; Mon, 31 Oct 2011 12:45:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.68.207 with HTTP; Mon, 31 Oct 2011 12:45:00 -0700 (PDT) In-Reply-To: <1320085483.38174.YahooMailNeo@web83006.mail.mud.yahoo.com> References: <1083030537.25311.1319733752643.JavaMail.tomcat@hel.zones.apache.org> <1319871149.35904.YahooMailNeo@web83007.mail.mud.yahoo.com> <1320085483.38174.YahooMailNeo@web83006.mail.mud.yahoo.com> From: Alejandro Abdelnur Date: Mon, 31 Oct 2011 12:45:00 -0700 Message-ID: Subject: Re: Example mvn cmd line to build snappy native lib? To: common-dev@hadoop.apache.org, Tim Broberg Content-Type: multipart/alternative; boundary=f46d04389117443f5204b09d7b34 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04389117443f5204b09d7b34 Content-Type: text/plain; charset=ISO-8859-1 Tim, You have to download it snappy from source tarball, run './configure' and then 'make install' Thanks. Alejandro On Mon, Oct 31, 2011 at 11:24 AM, Tim Broberg wrote: > bump > > Does anybody know how to build the snappy native library? > > - Tim. > > > ________________________________ > From: Tim Broberg > To: "common-dev@hadoop.apache.org" > Sent: Friday, October 28, 2011 11:52 PM > Subject: Example mvn cmd line to build snappy native lib? > > I'm trying to build the trunk from hadoop SVN including all the native > libraries. > > The BUILDING.txt file has the following documentation on building the > native libraries: > > " > Build options: > > * Use -Pnative to compile/bundle native code > * Use -Dsnappy.prefix=(/usr/local) & -Dbundle.snappy=(false) to compile > Snappy JNI bindings and to bundle Snappy SO files > " > > I tried the following, but never seem to get a libsnappy.so anywhere: > > mvn compile -Pnative > mvn compile -Pnative -Dsnappy.prefix=/usr/local > > mvn compile -Pnative -Dsnappy.prefix=/usr/local -Dbundle.snappy=true > > mvn compile -Pnative -Dsnappy.prefix=/usr/local -Dbundle.snappy=false > > mvn compile -Pnative -Dsnappy.prefix=~tbroberg -Dbundle.snappy=true > > > If I stick a #error statement in SnappyCompressor.c, I do see the first of > these fail, so it's doing *something* with snappy. > > Can anyone provide an example command line to build this? > > Thanks, > - Tim. --f46d04389117443f5204b09d7b34--