1123
Comment:
|
← Revision 26 as of 2023-11-24 16:04:02 ⇥
1920
Point to current virtualenv install.
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= How to setup Mailman 3 on ubuntu for production = {{{#!wiki warning '''This guide is obsolete! See [[https://docs.mailman3.org/en/latest/install/virtualenv.html|this guide]] for current recommendations.''' }}} If you want to setup Mailman 3 for development please visit the [[DEV/Home|development homepage]. |
|
Line 5: | Line 14: |
apt-get update apt-get install bzr python3-dev python3-pip python-dev python-pip python-virtualenv |
sudo apt-get update sudo apt-get install git python3-dev python3-pip python-dev python-pip python-virtualenv |
Line 9: | Line 18: |
Set up nodejs, the node package manager, and | Set up nodejs, the node package manager. (The last link creation part of this instruction is needed because there is a name conflict with 'node' so the 'node' command is named 'nodejs' you need a symlink somewhere from node to /usr/bin/nodejs. MAS) |
Line 12: | Line 21: |
apt-get install nodejs npm npm install -g less ln -s /usr/bin/nodejs /usr/bin/node |
sudo apt-get install nodejs npm sudo npm install -g less sudo ln -s /usr/bin/nodejs /usr/bin/node |
Line 17: | Line 26: |
(The last part is because there is a name conflict with 'node' so the 'node' command is named 'nodejs' you need a symlink somewhere from node to /usr/bin/nodejs. MAS) Do the next steps as normal from http://mailman-bundler.readthedocs.org/en/latest/ up until you run buildout (make sure to run it from the mailman-bundler directory). This will fail on the first attempt due to a missing pip. |
Do the next steps as normal from http://mailman-bundler.readthedocs.org/en/latest/ |
Line 22: | Line 29: |
For some reason, pip doesn't install correctly in the venv-3.4 directory, so you can link it manually if you need to: | Some things that might be non-obvious: |
Line 24: | Line 31: |
{{{ ln -s /usr/bin/pip3 ~/mailman-bundler/venv-3.4/bin/pip }}} |
1. You need to cd into mailman-bundler before running buildout. {{{ cd mailman-bundler buildout }}} 2. Make sure to start using python2 for the first virtualenv, since not everything in postorius/hyperkitty is python 3 compliant. The buildout will create a python 3 virtual env for Mailman 3 Core. (In many fresh systems python2 is still default, but if you're using a system you've configured for python3, be aware!) 3. You really do need gcc. This is installed by default in Ubuntu 14.04 so it wasn't included in the lists of prerequisites to install above, but don't be surprised when numpy starts compiling stuff. it generates a lot of warnings, you can ignore them. |
How to setup Mailman 3 on ubuntu for production
This guide is obsolete! See this guide for current recommendations.
If you want to setup Mailman 3 for development please visit the [[DEV/Home|development homepage].
This page contains my notes on things I needed to do to get the mailman-bundler to run on ubuntu 14.04 in docker. I am mostly following http://mailman-bundler.readthedocs.org/en/latest/ with the following additions/modifications.
Install some prerequisites in Python:
sudo apt-get update sudo apt-get install git python3-dev python3-pip python-dev python-pip python-virtualenv
Set up nodejs, the node package manager. (The last link creation part of this instruction is needed because there is a name conflict with 'node' so the 'node' command is named 'nodejs' you need a symlink somewhere from node to /usr/bin/nodejs. MAS)
sudo apt-get install nodejs npm sudo npm install -g less sudo ln -s /usr/bin/nodejs /usr/bin/node
Do the next steps as normal from http://mailman-bundler.readthedocs.org/en/latest/
Some things that might be non-obvious:
- You need to cd into mailman-bundler before running buildout.
cd mailman-bundler buildout
- Make sure to start using python2 for the first virtualenv, since not everything in postorius/hyperkitty is python 3 compliant. The buildout will create a python 3 virtual env for Mailman 3 Core. (In many fresh systems python2 is still default, but if you're using a system you've configured for python3, be aware!)
- You really do need gcc. This is installed by default in Ubuntu 14.04 so it wasn't included in the lists of prerequisites to install above, but don't be surprised when numpy starts compiling stuff. it generates a lot of warnings, you can ignore them.