➜ ~ clang --version Apple clang version 14.0.3 (clang-1403.0.22.14.1) Target: x86_64-apple-darwin22.3.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
2.2、clang++
1 2 3 4 5
➜ ~ clang++ --version Apple clang version 14.0.3 (clang-1403.0.22.14.1) Target: x86_64-apple-darwin22.3.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
2.3、make版本
1 2 3 4 5 6 7 8
➜ ~ make --version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Copyright(C)2002-2007 Andrew Tridgell Copyright(C)2009-2023 Joel Rosdahl and other contributors
See <https://ccache.dev/credits.html> for a complete list of contributors.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
2.6、JDK
1 2 3 4
➜ ~ java -version java version "11.0.19"2023-04-18 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.19+9-LTS-224) Java HotSpot(TM)64-Bit Server VM 18.9 (build 11.0.19+9-LTS-224, mixed mode)
2.7、autoconf
1 2 3 4 5 6 7 8 9
➜ ~ autoconf --version autoconf(GNU Autoconf)2.71 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>, <https://gnu.org/licenses/exceptions.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
configure: error: No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK
出现以上错误,说明xcode下载完未安装,如果已经安装还是不行;则执行以下命令
//1、执行cd命令到编译后的jdk目录下的/bin文件夹 ➜ ~ cd /Users/csm/JDK_Compilt/csm_openjdk11/build/macosx-x86_64-normal-serverANDclient-slowdebug/jdk/bin ➜ bin //或 ➜ ~ cd /Users/csm/JDK_Compilt/csm_openjdk11/build/macosx-x86_64-normal-serverANDclient-slowdebug/images/jdk/bin ➜ bin //2、执行./java -version验证 ➜ bin ./java -version openjdk version "11.0.0.1-internal"2023-05-09 OpenJDK Runtime Environment(slowdebug build 11.0.0.1-internal+0-adhoc.csm.csmopenjdk11) OpenJDK 64-Bit Server VM(slowdebug build 11.0.0.1-internal+0-adhoc.csm.csmopenjdk11, mixed mode) ➜ bin //出现上面的结果;至此,编译完成