2016-07-07 185 views
1

我正在爲Postgres 9.5安裝PL/Java。對於Postgres 9.5上的PL/Java,mvn clean install失敗

我的設置是9.5的Postgres在CentOS 6.5與Oracle的Java JDK 1.8.0_92

我安裝的Postgres從這些百勝包做:

postgresql95 
postgresql95-devel 
postgresql95-libs 
postgresql95-server 

我在下面列舉的總結我到此爲止:

su - postgres 
git clone https://github.com/tada/pljava 
git checkout V1_5_0 
mvn clean install 

這似乎工作,直到我看到了這一點:

[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] PostgreSQL PL/Java ................................. SUCCESS [ 16.707 s] 
[INFO] PL/Java API ........................................ SUCCESS [ 8.771 s] 
[INFO] PL/Java backend Java code .......................... SUCCESS [ 4.000 s] 
[INFO] PL/Java backend native code ........................ FAILURE [ 13.560 s] 
[INFO] PL/Java Deploy ..................................... SKIPPED 
[INFO] PL/Java Ant tasks .................................. SKIPPED 
[INFO] PL/Java examples ................................... SKIPPED 
[INFO] PL/Java packaging .................................. SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 52.707 s 
[INFO] Finished at: 2016-07-06T18:09:40-07:00 
[INFO] Final Memory: 38M/222M 
[INFO] ------------------------------------------------------------------------ 

[ERROR] Failed to execute goal 
com.github.maven-nar:nar-maven-plugin:3.2.3:nar-compile 
(default-nar-compile) on project pljava-so: NAR: Compile failed: gcc 
failed with return code 1 -> [Help 1] 

[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command 
[ERROR] mvn <goals> -rf :pljava-so 

我會歡迎任何有關如何最好地調試此線索和/或意見,這樣mvn乾淨安裝將運行無錯誤。

+0

pljava-so未能建立。如果您嘗試手動編譯GCC,可能會爲您提供更多信息。 – BevynQ

回答

0

我跑從根外殼命令進行修復:

yum install openssl-devel 

即固定它。好極了!

相關問題