-
Notifications
You must be signed in to change notification settings - Fork 156
Building macchina.io on Ubuntu 20.04
Günter Obiltschnig edited this page Jun 7, 2020
·
2 revisions
Ubuntu 20.04 switches the default Python version to 3.0. This means, the python
command will launch the Python 3 interpreter, unlike previous versions, where it would launch Python 2.7.
Unfortunately, at this time, the V8 version bundled with macchina.io still needs Python 2.7 to compile.
Therefore, you have to install Python 2.7 and make it the default Python version.
To do this, execute the following commands.
$ sudo apt install python2
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2
$ sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/python3 2 auto mode
1 /usr/bin/python2 1 manual mode
2 /usr/bin/python3 2 manual mode
Press to keep the current choice[*], or type selection number: 1
After that, you should be able to build macchina.io on Ubuntu 20.04 (after also installing the other dependencies):
$ apt-get install g++ make git libssl-dev