mvn和make软件包错误 [英] mvn and the make package error

查看:132
本文介绍了mvn和make软件包错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好.这是问题所在,这让我发疯了!!! 我按照在线说明进行操作,安装了hadoop,并在运行文本时说无法加载快速的本地库. 据说我必须先安装snappy,然后再安装hadoop-snappy. 我从谷歌代码下载snappy-1.0.4并执行以下操作: cd ../snappy-1.0.4 ./配置 制作 sudo make install

OK. Here's the problem and it's driving me crazy!!! I followed the instruction online, installed hadoop and when running the text it said snappy local library can't be loaded. It's said I have to install snappy first and then install hadoop-snappy. I download snappy-1.0.4 from google code and do the following: cd ../snappy-1.0.4 ./configure make sudo make install

然后是以下情况的问题: mvn软件包-Dsnappy.prefix =/usr/local

Then it's the problem when: mvn package -Dsnappy.prefix=/usr/local

在线帖子说默​​认情况下,snappy应该安装在/usr/local中. 但是我遇到了以下错误,无论我更改路径如何,仍然会出错:

The post online said by default the snappy should be installed in the /usr/local. But I got the following error and no matter what I change the path, still get erro:

您指定的目标需要一个项目才能执行,但目录中没有POM.请验证您是否从正确的目录中调用了Maven.

The goal you specified required a project to execute but there's no POM in the directory. Please verify you invoked the maven from the correct directory.

这是mvn的错误目录?还是不当的活泼?它说缺少pom应该是一个在任何地方都找不到的.xml.

It's the wrong directory of mvn? Or improper of snappy? And it said lack of pom that should be a .xml that in no where I can find..

请帮助!

推荐答案

好的,所以在查看该页面时,您位于错误的目录中.

Alright, so looking at that page, you are in the wrong directory.

您应该在该步骤中找到的目录是"hadoop-snappy",您可以看到该目录具有pom.xml,可以通过查看github

The directory you should be in for that step is "hadoop-snappy" which you can see has a pom.xml, you can verify by looking at the github, https://github.com/electrum/hadoop-snappy.

因此,按照指南中的这些步骤操作后,您便看到了我.

So after you follow these steps from the guide you showed me.

Download it(hadoop-snappy) from GitHub
Install libtool, make sure ‘libtoolize’ works
Install Maven 3 if necessary

将目录更改为hadoop-snappy并运行您之前尝试过的命令.

Change your directory to hadoop-snappy and run the command you were trying before.

这篇关于mvn和make软件包错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆