Before you install matrix-commander with pip install matrix-commander
you must have followed these prerequisites steps! Otherwise pip will fail.
-
Note that even if you install via
pipyou must have a) Python 3.8+ and b)libolminstalled. -
Run
python -Vto get your Python version number and assure that it is 3.8+. -
For e2ee support, python-olm is needed which requires the libolm C library (version 3.x). See also https://gitlab.matrix.org/matrix-org/olm. Make sure that version 3 is installed. Version 2 will not work. To install
libolmdo this:- On Debian, Ubuntu and Debian/Ubuntu derivative distributions:
sudo apt install libolm-dev - On Fedora or Fedora derivative distributions do:
sudo dnf install libolm-devel - On MacOS use brew:
brew install libolm
- On Debian, Ubuntu and Debian/Ubuntu derivative distributions:
-
For macOS Monterey 12.4 (21F79) (Apple M1 Pro) and similar please follow these steps for installation:
- Install
libolm,dbusandlibmagicusing Homebrew:brew install libolm dbus libmagic
- Install
matrix-commanderusing this command:pip3 install --global-option=build_ext --global-option="-I/opt/homebrew/include/" --global-option="-L/opt/homebrew/lib/" matrix-commander
- For more details see Issue #79. Thanks to @KizzyCode for the contribution.
- Install
-
For macOS x86_64 and similar please follow these steps for installation:
brew install libolm dbus libmagicpip3 install poetrypip3 install --global-option=build_ext --global-option="-I/usr/local/include/" --global-option="-L/usr/local/lib/" matrix-commander- Notice that the Link and Include directories between ARM (M1, etc.)
and x86-64 are different.
So, check for example where file
olm.his located on your hard disk. That gives you a hint which Include directory to use. - For more details see Issue #103. Thanks to @johannes87 for the contribution.
-
Installing dependencies of
matrix-commander-tuimatrix-commander-tuirequires that you installvipefrom the packgemoreutils.- Read https://www.putorius.net/moreutils.html for installation instructions.
- As an alternative you could also install
vipe.shfrom https://github.com/0mp/vipe.sh/blob/master/vipe.sh.
matrix-commander-tuirequires that you installfzf.- Read https://github.com/junegunn/fzf#installation for installation instructions.