From KRayWiki
Jump to navigation Jump to search

An example of how to install Bazaar software on a web host system:

$ cd ~ $ mkdir -p ~/pkg/bzr $ cd ~/pkg/bzr $ wget http://edge.launchpad.net/bzr/2.2/2.2.1/+download/bzr-2.2.1.tar.gz $ tar -xzf bzr-2.2.1.tar.gz $ cd bzr-2.2.1 $ python setup.py install --home ~ $ bzr bzr: ERROR: Couldn't import bzrlib and dependencies. Please check bzrlib is on your PYTHONPATH. Traceback (most recent call last): File "${HOME}/bin/bzr", line xx, in ? import bzrlib ImportError: No module named bzrlib $ vi ~/.bashrc export PYTHONPATH=${HOME}/lib64/python export MANPATH=${MANPATH}:${HOME}/man $ . ~/.bashrc $ bzr --version Bazaar (bzr) 2.2.1 Python interpreter: /usr/bin/python 2.4.3 Python standard library: /usr/lib64/python2.4 Platform: Linux-2.6.18-374.12.1.el5.lve0.8.54-x86_64-with-redhat-5.5-Final bzrlib: /home/bulgrien/lib64/python/bzrlib Bazaar configuration: /home/bulgrien/.bazaar Bazaar log file: /home/bulgrien/.bzr.log Copyright 2005-2010 Canonical Ltd. http://bazaar.canonical.com/ bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and you may use, modify and redistribute it under the terms of the GNU General Public License version 2 or later. Bazaar is part of the GNU Project to produce a free operating system. $ man bzr $ mkdir -p ~/public_ftp/bzr/bulgrien.net $ bzr init-repo bulgrien.net $ bzr init-repo ~/public_ftp/bzr/bulgrien.net $ bzr mkdir --no-trees ~/public_ftp/bzr/bulgrien.net/website/kevin