-
Notifications
You must be signed in to change notification settings - Fork 2
Installation notes
(Notes from Mike Hucka.) These are the steps I took to install Moccasin on different platforms. These are more or less minimal installations. In all cases, to create virtual machines (VMs), I used Parallels Desktop version 13 running on a macOS 10.13 system.
Ubuntu does not preinstall the libraries needed by wxPython, which leads to failures when running pip3 install
for Moccasin. The following is a reproducible way to create an Ubuntu environment that can be used to build Moccasin.
- Install a basic Ubuntu 16.04 or 18.04 distribution in a fresh virtual machine
- Configure your VM to have sufficient RAM and other resources. (I used 4 GB RAM, 2 cores.)
- Reboot
- Log in
- Do post-installation updates using Ubuntu's software updater
- Reboot & log in again
- Start a terminal shell
- Install git, Python 3 and pip:
sudo apt-get install git python3-pip
- Install certain system packages needed by wxPython 4 that are not installed automatically:
sudo apt-get install -y build-essential libwebkit2gtk-4.0-dev freeglut3-dev sudo apt-get install -y libgstreamer-plugins-base1.0-dev libsdl2-dev libtiff5-dev
- Reboot & log in again
- Do the Moccasin installation:
git clone https://github.com/sbmlteam/moccasin.git cd moccasin sudo pip install .
CentOS 7.4 and 7.5 do not preinstall the libraries needed by wxPython, which leads to failures when running pip3 install
for Moccasin.
- Install a basic CentOS distribution in a fresh virtual machine
- Configure your VM to have sufficient RAM and other resources. (I used 4 GB RAM, 2 cores.)
- Reboot
- Log in
- Do post-installation updates:
sudo yum update -y
- Reboot & log in again
- Start a terminal shell
- Install git, Python 3 and pip:
sudo apt-get install git python35-pip
- Install a C++ compiler and libraries needed to build wxPython:
sudo yum groupinstall 'Development Tools' sudo yum install python35-devel mesa-libGLU-devel gtk3-devel freeglut-dev sudo yum install gstreamer1-devel gstreamer1-plugins-base-devel sudo yum install webkitgtk3-devel
The python
provided with macOS up to 10.13 (High Sierra) is Python 2, therefore you will need to install Python 3 and pip
. There are many possible approaches. For example, if you already use MacPorts as your package manager, you could use the following sequence of commands:
sudo port install python34 py34-pip
sudo port select --set python3 python34
On macOS, it is also necessary to install the Xcode command-line tools:
sudo xcode-select --install