From ccddbd2ba594aae30e916f3ef10a0ab88bc9a42b Mon Sep 17 00:00:00 2001 From: tyler-yankee Date: Fri, 31 Jan 2025 10:45:26 -0500 Subject: [PATCH] overhaul 'alternative versions' in README --- drake_cmake_installed/README.md | 35 ++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/drake_cmake_installed/README.md b/drake_cmake_installed/README.md index 91f156a9..cbfcfa20 100644 --- a/drake_cmake_installed/README.md +++ b/drake_cmake_installed/README.md @@ -44,34 +44,45 @@ downloads Drake to the `$HOME` directory. 1. A specific version (date-stamped) +Replace `jammy` (for Ubuntu 22.04) with `noble` or `mac-arm64` +to download the version needed for your operating system. + ```bash -curl -O https://drake-packages.csail.mit.edu/drake/nightly/drake-20240214-jammy.tar.gz -tar -xvzf drake-20240214-jammy.tar.gz -C $HOME +curl -O https://drake-packages.csail.mit.edu/drake/nightly/drake-0.0.20250131-jammy.tar.gz +tar -xvzf drake-0.0.20250131-jammy.tar.gz -C $HOME +$HOME/drake/share/drake/setup/install_prereqs # install prereqs ``` +See [Installation via Direct Download](https://drake.mit.edu/from_binary.html) +for more information. + 2. Manual installation +If on Mac, adjust the call to install prereqs to replace `ubuntu` with `mac` +and remove the use of `sudo`. + ```bash git clone https://github.com/RobotLocomotion/drake.git -(cd drake && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=$HOME/drake .. && make) +cd drake +sudo setup/ubuntu/source_distribution/install_prereqs.sh # install prereqs +(mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=$HOME/drake .. && make) ``` 3. Manual installation w/ licensed Gurobi Install & setup gurobi (http://drake.mit.edu/bazel.html?highlight=gurobi#install-on-ubuntu) +If on Mac, adjust the call to install prereqs to replace `ubuntu` with `mac` +and remove the use of `sudo`. + ```bash git clone https://github.com/RobotLocomotion/drake.git -(cd drake && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=$HOME/drake -DWITH_GUROBI=ON .. && make) +cd drake +sudo setup/ubuntu/source_distribution/install_prereqs.sh # install prereqs +(mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=$HOME/drake -DWITH_GUROBI=ON .. && make) ``` -Then ensure you have Python installed; specifically, -install `python3-all-dev` if on Ubuntu, and use Homebrew Python -(not Apple's system Python) if on macOS. Finally, run *Drake's* -`install_prereqs` script to install the remaining system packages: - -```bash -$HOME/drake/share/drake/setup/install_prereqs -``` +Finally, for the code in this example, ensure you have `python3-all-dev` +installed if on Ubuntu. # Examples