sudo port install subversion-javahlbindings +no_bdb +universal失败

sudo port install subversion-javahlbindings +no_bdb +universal

最后关头出错

Error: Failed to configure subversion-javahlbindings, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_subversion-javahlbindings/subversion-javahlbindings/work/subversion-1.8.5/config.log

Error: org.macports.configure for port subversion-javahlbindings returned: configure failure: command execution failed

通过google搜到一遍贴子:http://trac.macports.org/ticket/41378

确认是JAVA_HOME环境环境变量丢失的问题,需要修改文件

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_subversion-javahlbindings/subversion-javahlbindings/work/subversion-1.8.4/configure

在里面加上这行:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/

然后重新sudo port install subversion-javahlbindings +no_bdb +universal就好了

Comments