Version 1 (modified by minondoa, 6 years ago) (diff)


DRM4G Installation

There are several ways in which you can install DRM4G.


The easiest way would be to install it using the command pip install drm4g. To check if you have this tool installed just open a terminal and execute which pip. If you have it installed you'll see something like this:

$ which pip

Even if you have it installed you might have to update it -> pip install --upgrade pip

In the case you don't have it, follow the instructions shown in their documentation page.

  • With root authorization: You can go ahead and run sudo pip install drm4g
  • In a virtual environment: Just run pip install drm4g
  • Without root authorization: Run pip install drm4g --user

Install in custom directory

Sometimes you will want to specify a certain directory in which to install DRM4G. To do that you'll have to bear in mind a couple of details.

The installation command would have to be:

$ pip install drm4g --install-option="--prefix=/your/path" -v


$ pip install drm4g --install-option="--home=/your/path" -v

This will install your binary files and libraries under this path, but DRM4G will still not be able to run.

You want your system to be aware of where the DRM4G package is, so that python may be able to import it. You'll have to define the environment variable $PYTHONPATH defined, which will have to point to the library folder under the path you chose. At the end of the installation, it will inform you on how to do that.

The next step is to have it know that DRM4G has been installed. You'll have to make sure that the directory you choose is added in your environment variable $PATH. The folder we are interested in is the "bin" folder inside your directory.

$ export PATH=$PATH:/your/path/bin

Finally, if you wish to define where your configuration and log files will be created, before starting DRM4G with drm4g start you should set the environment variable $DRM4G_DIR with whichever directory you wish.