2013-06-30 19:30:17 +00:00
|
|
|
.. include:: global.rst.inc
|
|
|
|
.. _installation:
|
|
|
|
|
|
|
|
Installation
|
2013-07-31 18:51:01 +00:00
|
|
|
============
|
2013-06-30 19:30:17 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
|project_name| requires:
|
2013-06-30 19:30:17 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
* Python_ >= 3.2
|
2013-06-30 19:30:17 +00:00
|
|
|
* OpenSSL_ >= 1.0.0
|
2014-12-16 03:02:43 +00:00
|
|
|
* libacl_
|
2015-05-14 18:47:08 +00:00
|
|
|
* some python dependencies, see install_requires in setup.py
|
|
|
|
|
|
|
|
General notes
|
|
|
|
-------------
|
|
|
|
Even though Python 3 is not the default Python version on many systems, it is
|
|
|
|
usually available as an optional install.
|
2013-06-30 19:30:17 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
Virtualenv_ can be used to build and install |project_name| without affecting
|
|
|
|
the system Python or requiring root access.
|
2013-06-30 19:30:17 +00:00
|
|
|
|
2015-07-26 12:47:18 +00:00
|
|
|
Important:
|
|
|
|
if you install into a virtual environment, you need to activate
|
|
|
|
the virtual env first (``source borg-env/bin/activate``).
|
|
|
|
Alternatively, directly run ``borg-env/bin/borg`` (or symlink that into some
|
|
|
|
directory that is in your PATH so you can just run ``borg``).
|
|
|
|
|
2014-02-04 02:26:36 +00:00
|
|
|
The llfuse_ python package is also required if you wish to mount an
|
2015-05-14 18:47:08 +00:00
|
|
|
archive as a FUSE filesystem. Only FUSE >= 2.8.0 can support llfuse.
|
2014-02-04 02:26:36 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
You only need Cython to compile the .pyx files to the respective .c files
|
|
|
|
when using |project_name| code from git. For |project_name| releases, the .c
|
2015-07-14 19:31:35 +00:00
|
|
|
files will be bundled, so you won't need Cython to install a release.
|
2015-04-27 20:35:06 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
Platform notes
|
|
|
|
--------------
|
|
|
|
FreeBSD: You may need to get a recent enough OpenSSL version from FreeBSD ports.
|
2014-12-16 03:02:43 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
Mac OS X: You may need to get a recent enough OpenSSL version from homebrew_.
|
2014-12-16 03:02:43 +00:00
|
|
|
|
2015-07-14 19:31:35 +00:00
|
|
|
Mac OS X: You need OS X FUSE >= 3.0.
|
2014-12-16 03:02:43 +00:00
|
|
|
|
2013-06-30 19:30:17 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
Debian / Ubuntu installation (from git)
|
|
|
|
---------------------------------------
|
|
|
|
Note: this uses latest, unreleased development code from git.
|
|
|
|
While we try not to break master, there are no guarantees on anything.
|
2014-12-16 03:02:43 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
Some of the steps detailled below might be useful also for non-git installs.
|
2014-12-16 03:02:43 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
.. parsed-literal::
|
2014-12-16 03:02:43 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
# Python 3.x (>= 3.2) + Headers, Py Package Installer
|
|
|
|
apt-get install python3 python3-dev python3-pip
|
2014-12-16 03:02:43 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
# we need OpenSSL + Headers for Crypto
|
|
|
|
apt-get install libssl-dev openssl
|
2013-06-30 19:30:17 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
# ACL support Headers + Library
|
|
|
|
apt-get install libacl1-dev libacl1
|
2013-06-30 19:30:17 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
# if you do not have gcc / make / etc. yet
|
|
|
|
apt-get install build-essential
|
2013-06-30 19:30:17 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
# optional: lowlevel FUSE py binding - to mount backup archives
|
2015-07-25 17:07:24 +00:00
|
|
|
# in case you get complaints about permission denied on /etc/fuse.conf:
|
|
|
|
# on ubuntu this means your user is not in the "fuse" group. just add
|
|
|
|
# yourself there, log out and log in again.
|
|
|
|
# if it complains about not being able to find llfuse: make a symlink
|
|
|
|
# borg-env/lib/python3.4/site-packages/llfuse -> /usr/lib/python3/dist-packages/llfuse
|
2015-05-14 18:47:08 +00:00
|
|
|
apt-get install python3-llfuse fuse
|
|
|
|
|
|
|
|
# optional: for unit testing
|
|
|
|
apt-get install fakeroot
|
|
|
|
|
2015-06-11 20:18:12 +00:00
|
|
|
# get |project_name| from github, install it
|
|
|
|
git clone |git_url|
|
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
apt-get install python-virtualenv
|
|
|
|
virtualenv --python=python3 borg-env
|
2015-06-11 20:18:12 +00:00
|
|
|
source borg-env/bin/activate # always before using!
|
2015-05-14 18:47:08 +00:00
|
|
|
|
2015-06-11 20:18:12 +00:00
|
|
|
# install borg + dependencies into virtualenv
|
|
|
|
pip install cython # compile .pyx -> .c
|
2015-05-22 18:23:37 +00:00
|
|
|
pip install tox pytest # optional, for running unit tests
|
2015-05-14 18:47:08 +00:00
|
|
|
pip install sphinx # optional, to build the docs
|
|
|
|
cd borg
|
|
|
|
pip install -e . # in-place editable mode
|
2013-06-30 19:30:17 +00:00
|
|
|
|
2015-05-14 18:47:08 +00:00
|
|
|
# optional: run all the tests, on all supported Python versions
|
|
|
|
fakeroot -u tox
|
2015-06-15 11:09:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
Korora / Fedora 21 installation (from git)
|
2015-06-15 12:40:11 +00:00
|
|
|
------------------------------------------
|
2015-06-15 11:09:39 +00:00
|
|
|
Note: this uses latest, unreleased development code from git.
|
|
|
|
While we try not to break master, there are no guarantees on anything.
|
|
|
|
|
|
|
|
Some of the steps detailled below might be useful also for non-git installs.
|
|
|
|
|
|
|
|
.. parsed-literal::
|
2015-06-15 12:39:04 +00:00
|
|
|
# Python 3.x (>= 3.2) + Headers, Py Package Installer
|
|
|
|
sudo dnf install python3 python3-devel python3-pip
|
|
|
|
|
|
|
|
# we need OpenSSL + Headers for Crypto
|
|
|
|
sudo dnf install openssl-devel openssl
|
|
|
|
|
|
|
|
# ACL support Headers + Library
|
|
|
|
sudo dnf install libacl-devel libacl
|
|
|
|
|
|
|
|
# optional: lowlevel FUSE py binding - to mount backup archives
|
|
|
|
sudo dnf install python3-llfuse fuse
|
|
|
|
|
|
|
|
# optional: for unit testing
|
|
|
|
sudo dnf install fakeroot
|
2015-06-15 11:09:39 +00:00
|
|
|
|
|
|
|
# get |project_name| from github, install it
|
|
|
|
git clone |git_url|
|
2015-06-15 12:39:04 +00:00
|
|
|
|
|
|
|
dnf install python3-virtualenv
|
2015-06-15 11:09:39 +00:00
|
|
|
virtualenv --python=python3 borg-env
|
2015-06-15 12:39:04 +00:00
|
|
|
source borg-env/bin/activate # always before using!
|
|
|
|
|
2015-06-15 11:09:39 +00:00
|
|
|
# install borg + dependencies into virtualenv
|
|
|
|
pip install cython # compile .pyx -> .c
|
|
|
|
pip install tox pytest # optional, for running unit tests
|
|
|
|
pip install sphinx # optional, to build the docs
|
|
|
|
cd borg
|
|
|
|
pip install -e . # in-place editable mode
|
2015-06-15 12:39:04 +00:00
|
|
|
|
2015-06-15 11:09:39 +00:00
|
|
|
# optional: run all the tests, on all supported Python versions
|
|
|
|
fakeroot -u tox
|
2015-07-14 19:31:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
Cygwin (from git)
|
|
|
|
-----------------
|
2015-07-25 16:38:16 +00:00
|
|
|
Please note that running under cygwin is rather experimental, stuff has been
|
|
|
|
tested with CygWin (x86-64) v2.1.0.
|
2015-07-14 19:31:35 +00:00
|
|
|
|
|
|
|
You'll need at least (use the cygwin installer to fetch/install these):
|
|
|
|
|
|
|
|
::
|
2015-07-16 20:40:33 +00:00
|
|
|
|
2015-07-14 19:31:35 +00:00
|
|
|
python3
|
|
|
|
python3-setuptools
|
|
|
|
python3-cython
|
|
|
|
binutils
|
|
|
|
gcc-core
|
|
|
|
git
|
|
|
|
libopenssl
|
|
|
|
make
|
|
|
|
openssh
|
|
|
|
openssl-devel
|
|
|
|
|
|
|
|
You can then install ``pip`` and ``virtualenv``:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2015-07-25 16:38:16 +00:00
|
|
|
easy_install-3.4 pip
|
2015-07-14 19:31:35 +00:00
|
|
|
pip install virtualenv
|
|
|
|
|
|
|
|
And now continue as for Linux (see above).
|
2015-07-25 16:38:16 +00:00
|
|
|
|
|
|
|
In case that creation of the virtual env fails, try deleting this file:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
/usr/lib/python3.4/__pycache__/platform.cpython-34.pyc
|
|
|
|
|