I ran into errors of the form No available formula with the name "autoconf" when attempting to install autoconf. git -C $(brew -repository homebrew/core) checkout master Fixing the homebrew/core git repo Autoconf Installation Failures No available formula with the name “autoconf” I had to look up the -C flag in the git docs (it executes the command in the context of the specified directory). Thankfully, already addressed how to fix this. I thought I could keep chugging along merrily but other steps will fail if this is not addressed. Here is the relevant error, which I was able to copy/paste (with some typos) from the PNG!!! error: Not a valid ref: refs/remotes/origin/master "_-' to separate paths from revisions, like this: 'refs/remotes/origin/master': unknown revision or path not in the working tree. HEAD is now at be908f679 Merge pull request #12502 from carlocab/bug-templateĮrror: Not a valid ref: refs/remotes/origin/master > origin/dependabot/bundler/Librarv/Homebrew/sorbet-ħ78de69b0.be908f679 master -> origin/master Installing homebrew appeared to be successful (last message output below) but there was a git error in the output! => Downloading and installing Homebrew. OpenJDK 64-Bit Server VM (build 18-internal+, mixed bin % Troubleshooting Homebrew Installation Failure OpenJDK Runtime Environment (build 18-internal+) To try out your new build, switch to the bin folder and check the Java version: cd ~/repos/jdk/build/macosx-aarch64-server-release/jdk/bin To browse through the contents of the build folder in finder: open ~/repos/jdk/build/ Any errors from bash configure will need to be resolved before running make images. Running bash configure in the JDK folder should display any missing dependencies. The instructions on how to install the Microsoft Build of OpenJDK on macOS comprise a single homebrew command:īrew install -cask microsoft-openjdk Installing the Microsoft OpenJDK on macOS Building the OpenJDK Install autoconf: brew install autoconf. Selecting the Command Line Tools in Xcode Select Xcode 13.1 in the Command Line Tools dropdown as shown below. Select the Xcode command line tools: launch Xcode then go to Preferences > Locations.Download and install the Xcode command line tools.Xcode 13.1 is the most recent as of this post. Install homebrew by running the recommended command (and see the troubleshooting section if there are any git errors):.Should any of the commands below fail, see the troubleshooting section at the end for possible workarounds. You might need to restart your terminal for this change to take effect. Set your Mac’s name (it bothers me when the terminal has some random host name).These are the steps I used to set it up for building the OpenJDK codebase. Last week I bought a new MacBook Pro with the Apple M1 Chip and 16GB of RAM. Categories: DevOps, Java Set up macOS for OpenJDK Development
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |