Skip to content

Linux Optional Dependencies

David Mansolino edited this page Oct 22, 2019 · 42 revisions

Java

To build the JAVA API you will need to install the Java Development Kit:

→ Ubuntu 18.04:

sudo apt install openjdk-11-jdk

→ Ubuntu 16.04:

sudo apt install openjdk-8-jdk

Node.js

Node.js npm is needed to build webots.min.js:

sudo apt-get install npm

Python 3.6/3.7/3.8 on Ubuntu 16.04/18.04

To install Python 3.6, 3.7 and 3.8 on Ubuntu 16.04 (and Python 3.8 on Ubuntu 18.04), you will need to add a new PPA:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.6-dev python3.7-dev python3.8-dev

Webots web service

This is needed only to run Webots as a web service (simulation_server.py in the cloud).

Install the following modules for Python 2.7:

sudo pip install --upgrade pip
sudo pip install websocket-client tornado nvidia-ml-py psutil requests

Or for Python 3:

sudo apt install python3-pip
sudo -H pip3 install --upgrade pip
sudo -H pip3 install websocket-client tornado nvidia-ml-py3 psutil requests

Install firejail 0.9.56.2.LTS from sources (default APT version 0.9.52 is buggy!):

wget https://github.com/netblue30/firejail/archive/0.9.56.2-LTS.tar.gz
tar xzf 0.9.56.2-LTS.tar.gz
cd firejail-0.9.56.2-LTS/
./configure && make && sudo make install-strip
cd ..
rm -r 0.9.56.2-LTS.tar.gz firejail-0.9.56.2-LTS

Automobile tools

This is needed only if you want to use the automobile tools (including the OpenStreetMap importer)

Follow the instructions here: https://www.cyberbotics.com/doc/automobile/openstreetmap-importer

Clone this wiki locally