Skip to content

Commit

Permalink
Update source install instructions (#1311)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Jan 25, 2022
1 parent 7a931c9 commit 912e2ce
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions tutorials/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,33 +59,36 @@ feature which hasn't been released yet.

### Ubuntu 18.04 or above

1. Enable the Ignition software repositories:
1. Install tools
```
sudo apt install -y build-essential cmake g++-8 git gnupg lsb-release wget
```

2. Enable the Ignition software repositories:
```
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt-get update
```

2. Install package dependencies:
3. Clone repository
```
git clone https://github.com/ignitionrobotics/ign-gazebo -b ign-gazebo<#>
export SYSTEM_VERSION=bionic
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' ' ')
```

3. (Ubuntu 18.04 only) Configure gcc8
4. Install package dependencies (including other Ignition libraries):
```
sudo apt-get install g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8
sudo apt -y install \
$(sort -u $(find . -iname 'packages-'`lsb_release -cs`'.apt' -o -iname 'packages.apt' | tr '\n' ' '))
```

4. Clone the repository if you haven't already.
5. (Ubuntu 18.04 only) Configure gcc8
```
git clone https://github.com/ignitionrobotics/ign-gazebo -b ign-gazebo<#>
sudo apt-get install g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8
```

5. Configure and build.
6. Configure and build.
```
cd ign-gazebo
mkdir build
Expand Down

0 comments on commit 912e2ce

Please sign in to comment.