Bup: Difference between revisions
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
which python2 |
which python2 |
||
# optware python only available as "python2", and pip as "pip2.7" |
# optware python only available as "python2", and pip as "pip2.7" |
||
pip2.7 install fuse |
pip2.7 install fuse-python |
||
pip2.7 install xattr libacl |
# pip2.7 install xattr libacl |
||
# error: /opt/local/lib/python2.5/site-packages (in --site-dirs) is not on sys.path |
# # error: /opt/local/lib/python2.5/site-packages (in --site-dirs) is not on sys.path |
||
export PYTHONPATH=/opt/local/lib/python2.5/site-packages |
# export PYTHONPATH=/opt/local/lib/python2.5/site-packages |
||
# see https://forum.qnap.com/viewtopic.php?t=73608 |
# # see https://forum.qnap.com/viewtopic.php?t=73608 |
||
pip2.7 install pyxattr pylibacl # Do NOT install xattr |
pip2.7 install pyxattr pylibacl # Do NOT install xattr |
Revision as of 01:36, 30 April 2017
References
Bup reviews:
- Also details how to setup snapshot on Windows using
vscsc
to make consistent backups.
- Someone commented that par2 should be replaced by zfec.
Install on Lacie-Cloudbox
git clone https://github.com/bup/bup
ipkg install attr libacl
ipkg install python27 py27-tornado py27-pip
which python
which python2
# optware python only available as "python2", and pip as "pip2.7"
pip2.7 install fuse-python
# pip2.7 install xattr libacl
# # error: /opt/local/lib/python2.5/site-packages (in --site-dirs) is not on sys.path
# export PYTHONPATH=/opt/local/lib/python2.5/site-packages
# # see https://forum.qnap.com/viewtopic.php?t=73608
pip2.7 install pyxattr pylibacl # Do NOT install xattr
export PYTHON=/opt/bin/python2 # To avoid using /usr/bin/python, see bup doc.
make
make test
Houston, we have a problem. We can reproduce as follows:
cat bup_intl_issue.py
# import posix1e; # From package pylibacl
python bup_intl_issue.py
# /opt/bin/python2.7: symbol 'libintl_gettext': can't resolve symbol
# Traceback (most recent call last):
# File "bup_intl_issue.py", line 1, in <module>
# import posix1e;
# ImportError: unknown dlopen() error
We can fix the issue using the LD_PRELOAD
trick though:
LD_PRELOAD=/opt/lib/libintl.so python2.7 bup_intl_issue.py