Skip to content

Commit

Permalink
Build from source: clarify dependency install step (#398)
Browse files Browse the repository at this point in the history
Clarify that the current working directory must be the
workspace containing the Gazebo source code when
running the dependency install step.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Oct 3, 2023
1 parent 0e276c1 commit d1cc55e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion citadel/install_ubuntu_src.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt-get update
```

The command below will install all dependencies in Ubuntu:
The command below must be run from a workspace with the Gazebo source code and will install all dependencies in Ubuntu:

```bash
cd ~/workspace/src
sudo apt -y install \
$(sort -u $(find . -iname 'packages-'`lsb_release -cs`'.apt' -o -iname 'packages.apt' | grep -v '/\.git/') | sed '/ignition\|sdf/d' | tr '\n' ' ')
```
Expand Down
3 changes: 2 additions & 1 deletion fortress/install_ubuntu_src.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-
sudo apt-get update
```

The command below will install all dependencies in Ubuntu Bionic, Focal or Jammy:
The command below must be run from a workspace with the Gazebo source code and will install all dependencies in Ubuntu:

```bash
cd ~/workspace/src
sudo apt -y install \
$(sort -u $(find . -iname 'packages-'`lsb_release -cs`'.apt' -o -iname 'packages.apt' | grep -v '/\.git/') | sed '/ignition\|sdf/d' | tr '\n' ' ')
```
Expand Down
3 changes: 2 additions & 1 deletion garden/install_ubuntu_src.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-
sudo apt-get update
```

The command below will install all dependencies in Ubuntu:
The command below must be run from a workspace with the Gazebo source code and will install all dependencies in Ubuntu:

```bash
cd ~/workspace/src
sudo apt -y install \
$(sort -u $(find . -iname 'packages-'`lsb_release -cs`'.apt' -o -iname 'packages.apt' | grep -v '/\.git/') | sed '/gz\|sdf/d' | tr '\n' ' ')
```
Expand Down
3 changes: 2 additions & 1 deletion harmonic/install_ubuntu_src.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-
sudo apt-get update
```

The command below will install all dependencies in Ubuntu:
The command below must be run from a workspace with the Gazebo source code and will install all dependencies in Ubuntu:

```bash
cd ~/workspace/src
sudo apt -y install \
$(sort -u $(find . -iname 'packages-'`lsb_release -cs`'.apt' -o -iname 'packages.apt' | grep -v '/\.git/') | sed '/gz\|sdf/d' | tr '\n' ' ')
```
Expand Down

0 comments on commit d1cc55e

Please sign in to comment.