Offline Installation on Windows¶
In order to carry out an offline installation you will need to download the OpenREM package and dependencies. The instructions below should work for downloading on any operating system, as long as you have Python 2.7 (version 2.7.9 or later) and a reasonably up to date version of pip installed.
If you have trouble when installing the Python packages due to incorrect architecture, you may need to either download on a Windows system similar to the server (matching 32-bit/64-bit), or to download the files from http://www.lfd.uci.edu/~gohlke/pythonlibs/ instead.
On a computer with internet access¶
Download independent binaries¶
Python from https://www.python.org/downloads/windows/
- Follow the link to the ‘Latest Python 2 release’
- Download either the
Windows x86 MSI installer
for 32-bit Windows or - Download
Windows x86-64 MSI installer
for 64-bit Windows
Erlang from https://www.erlang.org/downloads
- Download the latest version of Erlang/OTP. Again, choose between
Windows 32-bit Binary File
orWindows 64-bit Binary File
RabbitMQ from http://www.rabbitmq.com/install-windows.html
- Download
rabbitmq-server-x.x.x.exe
from either option
PostgreSQL from http://www.enterprisedb.com/products-services-training/pgdownload#windows
Note: Other databases such as MySQL are also suitable, though the median function for charts will not be available. For testing purposes only, you could skip this step and use SQLite3 which comes with OpenREM
- Download by clicking on the icon for
Win x86-32
orWin x86-64
A webserver although this can be left till later - you can get started with the built-in web server
Download python packages from PyPI¶
In a console, navigate to a suitable place and create an empty directory to collect all the packages in, then use pip to download them all:
mkdir openremfiles
pip download -d openremfiles setuptools
Download specific version of Celery:
Linux server:
pip download -d openremfiles celery==4.2.2
Windows server:
pip download -d openremfiles celery==3.1.25
Download OpenREM and all other dependencies:
pip download -d django-crispy-forms==1.8.1
pip download -d openremfiles openrem
pip download -d openremfiles psycopg2-binary
pip download --no-deps -d openremfiles https://bitbucket.org/edmcdonagh/pynetdicom/get/default.tar.gz#egg=pynetdicom-0.8.2b2
pynetdicom version
This of pynetdicom
is modified in comparison to the version in PyPI, and will malfunction if you use
the official version
Copy everything to the Windows machine¶
- Copy this directory plus all the binaries to the Windows server that you are using
On the Windows server without internet access¶
Installation of the python packages¶
In a console, navigate to the directory that your openremfiles
directory is in, and
Ensure setuptools is up to date:
pip install --no-index --find-links=openremfiles setuptools -U
Install specific version of Celery:
Linux server:
pip install celery==4.2.2
Windows server:
pip install celery==3.1.25
Install OpenREM and other dependencies:
pip install --no-index --find-links=openremfiles openrem # where openremfiles is the directory you created
pip install --no-index --find-links=openremfiles psycopg2-binary
pip install openremfiles\default.tar.gz # this is the custom version of pynetdicom
Install PostgreSQL¶
See the instructions to Install PostgreSQL on Windows.
Install webserver¶
If you are doing so at this stage.
Configure OpenREM ready for use¶
OpenREM is now installed, so go straight to the Configuration section of the standard installation docs