You cloned with git, and your Git configuration is set to use Windows line endings. Ruby: bad interpreter: /usr/bin/ruby^M: no such file or directory You need to have the Xcode Command Line Utilities installed (and updated): run xcode-select -install in the terminal. Running brew brew complains about absence of “Command Line Tools” Installation fails with “unknown revision or path not in the working tree”.Python: easy-install.pth cannot be linked.launchctl refuses to load launchd plist files.brew update complains about untracked working tree files.Ruby: bad interpreter: /usr/bin/ruby^M: no such file or directory.brew complains about absence of “Command Line Tools”.In the Preferences and select Check for Updates manually if you prefer).This is a list of commonly encountered problems, known issues, and their solutions. The Docker application automatically checks for updates (you can disable this If you need to update Bazel in particular, run: brew upgrade bazelbuild/tap/bazel To verify that Docker works, run docker run -rm -it alpine:latest echo "Hello, world." Updating Dependenciesįor all the packages managed by Homebrew, you can update by running: brew upgrade # upgrade all installed packages Will probably see warnings from the C++ compiler, but there should not be any If everything is set up correctly, all the tests should build and pass. You can verify that everything works by running: cd $KYTHE_DIR Once you have finished setting up your macOS installation (including Note that you will have to create a “Docker ID” and log in to get access to theĭownload, but you won’t to log in to the store to use Docker once it has been MacOS already has suitable versions pre-installed.ĭocker: Download and install Docker for Mac from the docker store. Note that some of the external packages listed are not mentioned here, because # DO NOT use brew install docker (or if you did: brew uninstall docker). # export JAVA_HOME =/usr/local/opt/openjdk # Without this, running `java -version` reports an error: # No Java runtime present, requesting install. We need to set JAVA_HOME so the command-line # tools will find the right version. By default macOS does not have a JDK installed, so we use the # openjdk package from Homebrew. export BISON =/usr/local/opt/bison/bin/bisonĮxport FLEX =/usr/local/opt/flex/bin/flex The stock versions are too old, but these tools are keg-only # and Bazel uses a restricted PATH, so we need to tell Bazel where to find # them (see #3514, #4455). To install most of the external dependencies, run for pkg in asciidoc bison brotli flex go graphviz leveldb node openjdk parallel source-highlight wget doīrew install $pkg done # Bison and Flex. Rest of these instructions assume you have it. There are other ways to install packages, but the Homebrew: You will also need to install Homebrew (follow Then the following command should fix it: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer If you get an error like this: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance You should get something like this (though the numbers will vary): Xcode 12.3 Verify your installation by running the command: $ xcodebuild -version Or by launching the App Store application and browsing to Develop → Xcode. You can do thisįrom the terminal by running: softwareupdate -install Xcode Xcode: To build on macOS, you will need Xcode installed. You will still need toįollow all the other Getting Started instructions to get a working Kythe build. Installation of external dependencies on a macOS system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |