| 7 | |
| 8 | == Installation of the needed software == |
| 9 | |
| 10 | In order to be efficient during the time of the school, we would like to ask you to install all the software packages that you will need during the school in advance. |
| 11 | If you have any difficulties, please contact Olivier Mattelaer at the following address: olivier.mattelaer@uclouvain.be . |
| 12 | |
| 13 | === Windows === |
| 14 | The different program are foreseen to run on !Linux/Mac. If you don't have Linux or Mac, the best solution is to install Linux (I would advice to install Ubuntu) in dual boot and follow the instructions for Linux. |
| 15 | This video might help you to do so: http://video.google.com/videoplay?docid=-2369893842637434537 |
| 16 | |
| 17 | === Linux === |
| 18 | |
| 19 | 1. '''Basic program''' |
| 20 | * perl |
| 21 | * bash |
| 22 | * gfortran 4.x (To check the version do gfortran do: gfortran --version) |
| 23 | Those programs are by default present in any linux distribution, |
| 24 | but just in case you should check that they are all installed in your computer. If they are not, |
| 25 | you can use apt-get/yum/... in order to have those. |
| 26 | |
| 27 | 2. '''Madgraph 5''' |
| 28 | * '''python 2.6/2.7'''[[BR]] |
| 29 | !MadGraph 5 requires python 2.6 or python 2.7. In order to check your version of python, you can type: |
| 30 | python --version. Some of the repositories are still on python 2.5. So if updating python via your repository manager didn't work. |
| 31 | you can download directly python from the following link: |
| 32 | http://www.python.org/download/ |
| 33 | and follow instructions. |
| 34 | * '''Madgraph5'''[[BR]] |
| 35 | You will find madgraph5 package on the following page: https://launchpad.net/madgraph5. |
| 36 | For this program, you just need to untar it. |
| 37 | To check if mg5 is correctly install you directly try to run it by doing: |
| 38 | ./bin/mg5 |
| 39 | If you don't have a valid python version. It will fail directly. |
| 40 | * '''Root''' [[BR]] |
| 41 | Root is require, in order to make some of the plots in !MadEvent. |
| 42 | Except if you are in SLC4 or SLC5 distribution, you will need to install root from scratch on your computer. |
| 43 | The current last verstion of Root is 5.30, which you can download from here: ftp://root.cern.ch/root/root_v5.30.02.source.tar.gz |
| 44 | After Un-packing, follow the instruction of the file README/INSTALL. |
| 45 | Finally you should edit the file ~/.bashrc, by adding the following line into it |
| 46 | {{{ |
| 47 | export ROOTSYS=PATH_TO_YOUR_UNPACK_DIRECTORY |
| 48 | export PATH=$PATH:$ROOTSYS:$ROOTSYS/bin |
| 49 | }}} |
| 50 | |
| 51 | |
| 52 | 3. '''Pythia/pgs/MadAnalysis''' |
| 53 | In order to install those programs, you need to launch mg5 (./bin/mg5) and then type |
| 54 | {{{ |
| 55 | install pythia-pgs |
| 56 | install MadAnalysis |
| 57 | }}} |
| 58 | |
| 59 | |
| 60 | === !MacOs === |
| 61 | |
| 62 | 1. '''Basic program''' |
| 63 | * perl |
| 64 | * bash [[BR]] |
| 65 | Those programs are by default present in any Mac distribution, |
| 66 | but just in case you should check that they are all installed in your computer (by doing perl --version). |
| 67 | * gmake [[BR]] |
| 68 | By default, makefile are not recognize on mac. In order to check, you can do 'make --version'. If it says: |
| 69 | -bash: make: command not found |
| 70 | then you should install it. The easiest is to install the xcode. |
| 71 | 1. For !MacOs 10.5: https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20414 |
| 72 | 2. For !MacOs 10.6: http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20792 |
| 73 | 3. For !MacOs 10.7: http://itunes.apple.com/us/app/xcode/id448457090?mt=12 |
| 74 | In order to be able to download it, you will need to a apple developer account (which is free) |
| 75 | * gfortran 4.x (To check the version do gfortran do: gfortran --version) |
| 76 | This program is often not included in standard mac version. In order to download it, you can download it from: |
| 77 | a. http://prdownloads.sourceforge.net/hpc/gcc-lion.tar.gz?download for !MacOs 10.7 |
| 78 | b. http://prdownloads.sourceforge.net/hpc/gcc-snwleo-intel-bin.tar.gz?download for !MacOs 10.6 |
| 79 | c. http://sourceforge.net/projects/hpc/files/hpc/gcc/gcc-leopard-intel-bin.tar.gz/download for !MacOs 10.5 |
| 80 | |
| 81 | 2. '''!MadGraph5''' |
| 82 | * '''python''' |
| 83 | a. The default python version of !MacOs 10.6 is python 2.6 and is (in 99% of the case) fully working with Madgraph5, so nothing to install for you. |
| 84 | b. The python version of !MacOs 10.7 is python 2.7. We never test this python version with MG5 but in principle it should be fine. |
| 85 | c. For other version of MacOS, you will need to install python2.7 from the python web site: http://www.python.org/download/ |
| 86 | * '''Madgraph5'''[[BR]] |
| 87 | You will find madgraph5 package on the following page: https://launchpad.net/madgraph5. |
| 88 | For this program, you just need to untar it. |
| 89 | To check if mg5 is correctly install you directly try to run it by doing: |
| 90 | ./bin/mg5 |
| 91 | If you don't have a valid python version. It will fail directly. |
| 92 | * '''Root''' [[BR]] |
| 93 | Root is require, in order to make some of the plots in !MadEvent. |
| 94 | a. for !MacOs 10.5, you can install this version: ftp://root.cern.ch/root/root_v5.26.00.macosx105-i386-gcc-4.0.tar.gz |
| 95 | After unpacking the directory. you will need to performed the two following action in the terminal |
| 96 | {{{ |
| 97 | cd |
| 98 | emacs .bash_profile |
| 99 | }}} |
| 100 | The last command will open a terminal, add in this file the following line: |
| 101 | {{{ |
| 102 | export ROOTSYS=PATH_TO_YOUR_UNPACK_DIRECTORY |
| 103 | export PATH=$PATH:$ROOTSYS:$ROOTSYS/bin |
| 104 | }}} |
| 105 | In order to exit the emacs editor, you need to do CTRL-X CTRL-S (this will save your modification) and after CTRL-X CTRL-C. Finally in your terminal you will need to type |
| 106 | {{{ |
| 107 | source .bash_profile |
| 108 | }}} |
| 109 | b. for !MacOs 10.6 (and maybe 10.7), you can install this version: ftp://root.cern.ch/root/root_v5.30.02.macosx106-i386-gcc-4.2.tar.gz .Then follow the instruction for !MacOs 10.5. |
| 110 | c. Otherwise, you will need to install from the source: ftp://root.cern.ch/root/root_v5.30.02.source.tar.gz |
| 111 | After Un-packing, follow the instruction of the file README/INSTALL. |
| 112 | |
| 113 | If the installation is successful, you will need to have root working. In order to test it type '''root''' in the terminal. If it's not fine, please install it from Source. |
| 114 | |
| 115 | |
| 116 | |
| 117 | 3. '''Pythia/pgs/MadAnalysis''' |
| 118 | In order to install those programs, you need to launch mg5 (./bin/mg5) and then type |
| 119 | {{{ |
| 120 | install pythia-pgs |
| 121 | install MadAnalysis |
| 122 | }}} |