build   hadoop 23 真的是千辛万苦,错误贴出来

[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAPSHOT:protoc (compile-protoc) on project hadoop-c[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.0.0-SNAP
plugin.MojoExecutionException: protoc failureat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: org.apache.maven.plugin.MojoExecutionException: protoc failureat org.apache.hadoop.maven.plugin.protoc.ProtocMojo.execute(ProtocMojo.java:81)at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)... 19 more
**Caused by: org.apache.maven.plugin.MojoExecutionException: protoc failure**at org.apache.hadoop.maven.plugin.protoc.ProtocMojo.execute(ProtocMojo.java:78)... 21 more
[ERROR]
[ERROR]
wget http://protobuf.googlecode.com/files/protobuf-2.5.1.tar.gz
tar xzf protobuf-2.4.1.tar.gz
cd protobuf-2.4.1
./configure
make
sudo make install
sudo ldconfig
sudo ldconfig

亮点是我没有执行,sudo  ldconfig 这个命令,错误一致在,删除了respository 里面的google目录还是不行。

百度了一下,ldconfig的命令,

ldconfig命令的作用是:
ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/lib and /usr/lib). The cache is used by the run-time linker, ld.so or ld-linux.so. ldconfig checks the header and filenames of the libraries it encounters when determining which versions should have their links updated.

ldconfig几个需要注意的地方!

1. 往/lib和/usr/lib里面加东西,是不用修改/etc/ld.so.conf的,但是完了之后要调一下ldconfig,不然这个library会找不到

2. 想往上面两个目录以外加东西的时候,一定要修改/etc/ld.so.conf,然后再调用ldconfig,不然也会找不到

比 如安装了一个mysql到/usr/local/mysql,mysql有一大堆library在/usr/local/mysql/lib下面,这时就 需要在/etc/ld.so.conf下面加一行/usr/local/mysql/lib,保存过后ldconfig一下,新的library才能在程 序运行时被找到。

3. 如果想在这两个目录以外放lib,但是又不想在/etc/ld.so.conf中加东西(或者是没有权限加东西)。那也可以,就是export一个全局变 量LD_LIBRARY_PATH,然后运行程序的时候就会去这个目录中找library。一般来讲这只是一种临时的解决方案,在没有权限或临时需要的时 候使用。

4. ldconfig做的这些东西都与运行程序时有关,跟编译时一点关系都没有。编译的时候还是该加-L就得加,不要混淆了。

5. 总之,就是不管做了什么关于library的变动后,最好都ldconfig一下,不然会出现一些意想不到的结果。不会花太多的时间,但是会省很多的事

org.apache.maven.plugin.MojoExecutionException: protoc failure相关推荐

  1. org.apache.maven.plugin.MojoExecutionException: protoc version is libprotoc 3.6.1, expected versio

    在编译tez的时候碰到这个问题: ubuntu19.10的系统,apt 默认安装3.6.10的protoc wget https://github.com/google/protobuf/releas ...

  2. Error injecting: org.apache.maven.plugin.surefire.SurefirePlugin

    新拉取下来的项目打包,报 Error injecting: org.apache.maven.plugin.surefire.SurefirePlugin java.lang.TypeNotPrese ...

  3. Eclipse2020版本:pom.xml第一行报错:Could not initialize class org.apache.maven.plugin.war.

    eclipse2020或以上版本和2018版本不一样.需要添加或修改pom.xml中插件的版本号 亲测如下:在pom.xml的<build>....</build>中增加下面代 ...

  4. 关于 Apache Maven 您不知道的 5 件事

    2019独角兽企业重金招聘Python工程师标准>>> 转自:http://www.ibm.com/developerworks/cn/java/j-5things13/ Maven ...

  5. 提示Could not calculate build plan Plugin org.apache.maven.pluginsmaven-resources

    Eclipse创建maven项目时,出现Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources错 ...

  6. maven安装jar包到本地仓库报的一个错误:Could not find goal '' in plugin org.apache.maven.plugins

    今天在将jar包加入本地仓库的时候,由于拼写没有注意,报了一个错误:  Could not find goal '' in plugin org.apache.maven.plugins.下面贴出 ...

  7. 解决:Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2问题

    出现Cannot resolve plugin org.apache.maven.plugins这类的问题原因基本都是一样的,都是导入本地仓库时出错,出错的原因可能是版本原因,也有其他原因. 解决办法 ...

  8. IDEA报错:Cannot resolve plugin org.apache.maven.plugins:*

    导入项目时可能因为网络等因素造成maven的一些问题. 使用maven-deploy插件多年来遇到了这个问题,即使我没有在我的POM中直接包含插件,也出现了错误. 作为一个解决方案我不得不强制将插件包 ...

  9. pom.xml报错:Failure to find org.apache.maven.doxia:doxia-logging-api:jar:1.1 in http://repo.

    在maven本地库中找到对应的地址:org.apache.maven.doxia找到对应的文件:doxia-logging-api发现文件中包含有lastUpdated字样,表示该文件并未下载完成,然 ...

最新文章

  1. Python学习入门基础教程(learning Python)--6.3 Python的list切片高级
  2. 超全超实用的Javascript类库和jQuery插件大全之一:图片,地图和图形
  3. pandas中dataframe的索引使用和转换为array
  4. 手机python软件怎么创建项目_pycharm怎么创建项目
  5. CF722D. Generating Sets[贪心 STL]
  6. android onitemclicklistener 按钮代码,在listview Android的setOnItemClickListener上设置项目单击事件...
  7. matlab跟maxwell联合优化,sim-sim-maxwell联合仿真遇到问题及解决方法
  8. 持久化存储-对象序列化(摘自网络)
  9. Linux内核为什么会发生soft lockup?
  10. Java初级程序员面试总结(五)--Redis篇
  11. iphone UIImageWriteToSavedPhotosAlbum 保存图片
  12. Hbase深入学习(五) 命令及查看状态
  13. 使用网页操作助手制作自己的火车票抢票工具
  14. VMware VAAI
  15. 使用kdevelop出现问题及解决
  16. ORA-00821: Specified value of sga_target 980M is too small, needs to be at least 1164M
  17. Flask源码分析(一)
  18. 邦纳LTF12KC2LDQ激光传感器
  19. 使用MUlTISIM实现60进制计数器
  20. 20144306《网络对抗》CAL_MSF基础运用

热门文章

  1. Android 开发小作:Minofo(2)
  2. Intervention/image处理ios图片是发生旋转的处理
  3. 全概率公式、贝叶斯公式推导过程
  4. java mixin_理解Dart的Mixin继承机制
  5. 极客时间·3小时Python 数据分析和可视化 学习笔记
  6. Sublime Text 2 介紹
  7. 假如时间还可以重来那你还愿意做过去一年的事吗?——年终总结
  8. infa 组件学习总结----sorter
  9. 2022安全员-C证特种作业证考试题库模拟考试平台操作
  10. [noip2017] 前三周总结