Mac编译OpenJDK8:configure: error: Xcode 4 is required to build JDK 8, the version found was 10.1config

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mac编译OpenJDK8:configure: error: Xcode 4 is required to build JDK 8, the version found was 10.1config相关的知识,希望对你有一定的参考价值。

  • 具体错误:
configure: error: Xcode 4 is required to build JDK 8, the version found was 10.1. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select.
configure exiting with result code 1
  • 解决办法:

common/autoconf/generated-configure.sh

搜索Xcode 4 is require,把as_fn_error改为echo即可.

    # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later
    XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'`
    XC_VERSION_PARTS=( $XCODE_VERSION//./  )
    if test ! "$XC_VERSION_PARTS[0]" = "4"; then
      echo $? "Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select." "$LINENO" 5
    fi

以上是关于Mac编译OpenJDK8:configure: error: Xcode 4 is required to build JDK 8, the version found was 10.1config的主要内容,如果未能解决你的问题,请参考以下文章

ffmpeg在Mac上的编译

MAC OSX LION:mac 上的 gcc 未编译 wget

mac 编译不了自己写的java文件,有人知道是怎么回事吗?

MAC编译jogl/gluegen很顺利

Mac 下 TensorFlow C++ API 的编译与测试

Mac安装Protobuf编译Java