install.rst 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .. Copyright (C) 2011 - 2013 Stefano Mazzucco <stefano.mazzucco@gmail.com>.
  2. Permission is granted to copy, distribute and/or modify this document
  3. under the terms of the GNU Free Documentation License, Version 1.3
  4. or any later version published by the Free Software Foundation;
  5. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  6. A copy of the license is included in the section entitled "GNU
  7. Free Documentation License".
  8. Installation
  9. =============
  10. The Crystal Ball Plus source code is distributed in a *compressed tarball* file (extension **.tar.gz**) named
  11. .. code-block:: bash
  12. crystalballplus-VERSION.tar.gz
  13. where *VERSION* is the version number, e.g. 2.2.5a.
  14. To install the software, you must extract the source and run the *setup.py* script.
  15. Within a GNU/Linux terminal:
  16. 1. Extract the source:
  17. .. code-block:: bash
  18. $ tar xvzf crystalballplus-VERSION.tar.gz
  19. 2. Enter in the directory that has been created:
  20. .. code-block:: bash
  21. $ cd crystalballplus-VERSION
  22. 3. Run the *setup.py* script:
  23. .. code-block:: bash
  24. $ python setup.py install
  25. # if you don't have administrator privileges, install locally with:
  26. $ python setup.py install --user
  27. Now, you can remove the source directory if you want:
  28. .. code-block:: bash
  29. $ cd ..
  30. $ rm -rf crystalballplus-VERSION
  31. .. NOTE::
  32. To run Crystal Ball Plus, the executable ``crystalballplus`` must be in your ``$PATH`` environment variable. When installing with administrator privileges, you should not have to do anything. However, installing as a normal user, you might have to do some modifications to your ``$PATH`` variable.
  33. When using the ``--user`` option in ``setup.py``, the executable should be installed in ``$HOME/.local/bin``. In case such directory is **not** included in ``$PATH`` (i.e. you cannot run ``crystalballplus``), do:
  34. .. code-block:: bash
  35. $ export PATH=$PATH:"$HOME/.local/bin"
  36. To make the change permanent, you should put that line in your ``$HOME/.bashrc`` file.