Changes between Version 4 and Version 5 of HowTo/GenerateRSpecUsingGENILIB


Ignore:
Timestamp:
07/17/14 09:57:05 (10 years ago)
Author:
xliu@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/GenerateRSpecUsingGENILIB

    v4 v5  
    4646
    4747The directory "geni" is the library for RSpec generation and other purposes, and "samples" contains examples of using the library, as well as a sample configuration file that you need to modify it before writing and  testing your scripts.
     48
     49
     50== Download Dependencies and Configure PYTHONPATH ==
     51
     52In the system that has been tested, one python package is needed for geni-lib, which is lxml.
     53
     54 * Install lxml python packages
     55 
     56 If you are using !MacPort, install lxml using
     57 {{{
     58 $ sudo port install python27-lxml
     59 }}}
     60
     61 * Add PYTHONPATH:
     62
     63 For MacOS experimenters, you can add following lines to the end of your ~/.profile
     64 {{{
     65 # add python path
     66 export PYTHONPATH=$PYTHONPATH:<your path to geni-lib>
     67 }}}
     68 Then, run
     69 {{{
     70 source ~/.profile
     71 }}}
     72
     73  * Optional Step: Switch Python Version
     74 
     75 Sometimes you may have problems with python versions if you have two different versions of python installed. If you installed python27 and python modules from !MacPort, so you may need to select python27 installed by !MacPort as your default python.
     76{{{
     77$ sudo port select --set python python27
     78}}}
     79
    4880
    4981== Configure geni-lib ==
     
    80112
    81113
    82  * Add PYTHONPATH
    83  
    84  For MacOS experimenters, you can add following lines to the end of your ~/.profile
    85  {{{
    86  # add python path
    87  export PYTHONPATH=$PYTHONPATH:<your path to geni-lib>
    88  }}}
    89  Then, run
    90  {{{
    91  source ~/.profile
    92  }}}
    93 
    94  * Install lxml python packages
    95  
    96  If you are using !MacPort, install lxml using
    97  {{{
    98  $ sudo port install python27-lxml
    99  }}}
    100 
    101  * Optional Steps for Configuration
    102  
    103  Sometimes you may have problems with python versions if you have two different versions of python installed. If you installed python27 and python modules from !MacPort, so you may need to select python27 installed by !MacPort as your default python.
    104 {{{
    105 $ sudo port select --set python python27
    106 }}}
     114
     115 
     116
    107117
    108118