Skip to content

Commit

Permalink
Fix code snippet rendering (#112)
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey authored Sep 30, 2020
1 parent a7a7633 commit 8dc3818
Showing 1 changed file with 23 additions and 29 deletions.
52 changes: 23 additions & 29 deletions tutorials/02_installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,45 +39,39 @@ Be sure to replace `<#>` with a number value, such as `1` or `2`, depending on w
**Build from source**

1. Run the following to install dependencies

```{.sh}
sudo apt-add-repository -s "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -c -s) main"
sudo apt-get build-dep -y ignition-physics<#>-dev
```
Be sure to replace `<#>` with a number value, such as `1` or `2`, depending on which version you need.
```{.sh}
sudo apt-add-repository -s "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -c -s) main"
sudo apt-get build-dep -y ignition-physics<#>-dev
```
Be sure to replace `<#>` with a number value, such as `1` or `2`, depending on which version you need.


2. Use gcc-8:
```
sudo apt update
sudo apt-get -y 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 update
sudo apt-get -y 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
```

3. Clone the repository
```
git clone https://github.com/ignitionrobotics/ign-physics -b ign-physics<#>
```
Be sure to replace `<#>` with a number value, such as `1` or `2`, depending on which version you need.
```
git clone https://github.com/ignitionrobotics/ign-physics -b ign-physics<#>
```
Be sure to replace `<#>` with a number value, such as `1` or `2`, depending on which version you need.


4. Configure and build
```
cd ign-physics; mkdir build; cd build; cmake ..; make
```
```
cd ign-physics; mkdir build; cd build; cmake ..; make
```

5. Optionally, install Ignition Physics
```
sudo make install
```
```
sudo make install
```

## macOS

Expand Down

0 comments on commit 8dc3818

Please sign in to comment.