skywalking-java/docs/cn/FAQ/Protoc-Plugin-Fails-When-Bu...

12 lines
797 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 现象
maven编译加载protoc-plugins插件产生如下错误
```
[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile-custom (default) on project apm-network: Unable to copy the file to \incubator-skywalking\apm-network\target\protoc-plugins: \incubator-skywalking\apm-network\target\protoc-plugins\protoc-3.3.0-linux-x86_64.exe (另一个程序正在使用此文件,进程无法访问。) -> [Help 1]
```
### 原因
Protobuf编译器依赖于glibc环境部分linux操作系统未安装或未升级该函数库会产生该问题。
### 解决方法
检查并升级最新版本glibc库若使用容器镜像环境推荐含有最新版本glibc的alpine系统。请参考官方手册http://www.gnu.org/software/libc/documentation.html