You may need to add the 'install' target the first time you build (and every time you build clean thereafter).
Your 'java -version' and 'mvn -version' report different versions of Java. Check your JAVA_HOME. On Thu, Jun 12, 2014 at 9:49 AM, Ted Yu <[email protected]> wrote: > Can you run the following command first ? > > mvn clean package -DskipTests > > Here is the version of maven I use: > > mvn -version > Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 > 15:22:22+0000) > > Cheers > > > On Thu, Jun 12, 2014 at 9:37 AM, Lukas Drbal <[email protected] > > wrote: > >> Hi all, >> >> i have a problem with build hadoop from source code. I take git from >> https://github.com/apache/hadoop-common and branch-2.2.1 and try >> mvn package -Pdist,native -DskipTests -Dtar but it return a lot errors. >> >> Here is log from mvn >> https://gist.github.com/anonymous/052b6d45f64be01dab43 >> >> >> My enviroment: >> >> lestr@drbal:~/data/git/hadoop-common [ branch-2.2.1 ] ∑ java -version >> java version "1.7.0_60" >> Java(TM) SE Runtime Environment (build 1.7.0_60-b19) >> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode) >> lestr@drbal:~/data/git/hadoop-common [ branch-2.2.1 ] ∑ mvn -version >> Apache Maven 3.0.5 >> Maven home: /usr/share/maven >> Java version: 1.6.0_45, vendor: Sun Microsystems Inc. >> Java home: /usr/lib/jvm/java-6-oracle/jre >> Default locale: en_US, platform encoding: UTF-8 >> OS name: "linux", version: "3.14-1-amd64", arch: "amd64", family: "unix" >> lestr@drbal:~/data/git/hadoop-common [ branch-2.2.1 ] ∑ >> >> >> I need build native libs for 64bit. Can somebody help me please? >> >> Thanks. >> -- >> >> >> * Lukáš Drbal* >> Software architect >> >> *Socialbakers* >> Facebook applications and other sweet stuff >> >> Facebook Preferred Marketing Developer >> >> >> *+420 739 815 424 **[email protected] >> <[email protected]>* >> *www.socialbakers.com <http://www.socialbakers.com/>* >> > > -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
