欢迎您访问365答案网,请分享给你的朋友!
生活常识 学习资料

Mac编译OpenJDK8:configure:error:Xcode4isrequiredtobuildJDK8,theversionfoundwas10.1config

时间:2023-07-08

具体错误:

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

Copyright © 2016-2020 www.365daan.com All Rights Reserved. 365答案网 版权所有 备案号:

部分内容来自互联网,版权归原作者所有,如有冒犯请联系我们,我们将在三个工作时内妥善处理。