<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 22/02/11 15:15, Alex Schofield wrote:
<blockquote
cite="mid:AANLkTinc-Z1JKxbZ6XtO10LK59pn9f=iQB6zqJ6L7kmN@mail.gmail.com"
type="cite"><b>I've been trying to install Rivet on both my linux
machine (running SL5) and my mac (10.6) and i've encountered several
problems. I have been able to install Rivet using both the manual way
and the bootstrap script but neither works after installation. I'm
relatively new to installing unix based software so I may just have
missed something. My last attempt to install Rivet is as follows. First
I ran the rivet-boostrap after setting up the compilers as stated on
the website</b><br>
<br>
-bash-3.2$ export PATH=/afs/<a moz-do-not-send="true"
href="http://cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin:$PATH">cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin:$PATH</a><br>
-bash-3.2$ source /afs/<a moz-do-not-send="true"
href="http://cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5-gcc43-opt/setup.sh">cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5-gcc43-opt/setup.sh</a><br>
-bash-3.2$ ./rivet-bootstrap --install-boost --prefix=/afs/<a
moz-do-not-send="true"
href="http://hep.man.ac.uk/u/alexschof/Programs/Rivet">hep.man.ac.uk/u/alexschof/Programs/Rivet</a><br>
Getting <a moz-do-not-send="true"
href="http://www.hepforge.org/archive/rivet/Rivet-1.4.0.tar.gz">http://www.hepforge.org/archive/rivet/Rivet-1.4.0.tar.gz</a><br>
Downloading <a moz-do-not-send="true"
href="http://www.hepforge.org/archive/rivet/Rivet-1.4.0.tar.gz">http://www.hepforge.org/archive/rivet/Rivet-1.4.0.tar.gz</a><br>
Installing a local copy of Boost<br>
Downloading <a moz-do-not-send="true"
href="http://downloads.sourceforge.net/boost/boost_1_44_0.tar.gz?use_mirror=mesh">http://downloads.sourceforge.net/boost/boost_1_44_0.tar.gz?use_mirror=mesh</a><br>
LCG area available: using LCG-built packages<br>
Using LCG platform tag = x86_64-slc5-gcc43-opt<br>
Configuring in /afs/<a moz-do-not-send="true"
href="http://hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0">hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0</a>:
./configure --prefix=/afs/<a moz-do-not-send="true"
href="http://hep.man.ac.uk/u/alexschof/Programs/Rivet">hep.man.ac.uk/u/alexschof/Programs/Rivet</a>
--with-lcgtag=x86_64-slc5-gcc43-opt --with-hepmc=/afs/<a
moz-do-not-send="true"
href="http://cern.ch/sw/lcg/external/HepMC/2.06.03/x86_64-slc5-gcc43-opt">cern.ch/sw/lcg/external/HepMC/2.06.03/x86_64-slc5-gcc43-opt</a>
--with-boost=/afs/<a moz-do-not-send="true"
href="http://hep.man.ac.uk/u/alexschof/Programs/Rivet">hep.man.ac.uk/u/alexschof/Programs/Rivet</a>
--with-fastjet=/afs/<a moz-do-not-send="true"
href="http://cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt">cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt</a>
--disable-pdfmanual --with-gsl=/afs/<a moz-do-not-send="true"
href="http://cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt">cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt</a>
--with-gslcblas=/afs/<a moz-do-not-send="true"
href="http://cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt">cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt</a><br>
Building in /afs/<a moz-do-not-send="true"
href="http://hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0">hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0</a>:
make -j2 && make -j2 install<br>
<br>
All done. Now set some variables in your shell by sourcing, for bash
shell:<br>
<br>
source rivetenv.sh<br>
<br>
or for csh shell:<br>
<br>
source rivetenv.csh<br>
<br>
<br>
<b>Rivet seems to have successfully installed, but when I try to run
it I receive the following message:</b><br>
<br>
-bash-3.2$ source rivetenv.sh<br>
-bash-3.2$ rivet<br>
rivet requires the 'rivet' Python module<br>
No module named rivet<br>
-bash-3.2$ rivet -h<br>
<b><br>
It seems like i'm able to run the analyses inside Herwig++ since there
are no complaints at run time and there is a .aida file generated.
However, when I try to convert to a flat data file I receive the error:</b><br>
<br>
-bash-3.2$ aida2flat TVT.aida<br>
Traceback (most recent call last):<br>
File "/afs/<a moz-do-not-send="true"
href="http://hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/aida2flat">hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/aida2flat</a>",
line 13, in ?<br>
import lighthisto<br>
ImportError: No module named lighthisto<br>
<br>
<b>I got past this by copying lighthisto.py into the bin folder (is
there a better way?) which gave me some data files. I now try to run
rivet-mkhtml and get<br>
<br>
</b>-bash-3.2$ rivet-mkhtml<br>
Traceback (most recent call last):<br>
File "/afs/<a moz-do-not-send="true"
href="http://hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/rivet-mkhtml">hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/rivet-mkhtml</a>",
line 19, in ?<br>
import rivet<br>
ImportError: No module named rivet<br>
rivet is broken... exiting<br>
<b><br>
Could you point out where i'm going wrong? If you need more information
please let me know.<br>
</b></blockquote>
<br>
Hi Alex,<br>
<br>
the errors you are reporting are presumably all caused by a not yet or<br>
wrongly defined environment variable called PYTHONPATH. It's contents<br>
are read by python to find libraries and modules.<br>
<br>
The required modules are installed to
(prefix)/lib/python2.6/site-packages<br>
where (prefix) is according to the command line you sent set to<br>
"/afs/<a moz-do-not-send="true"
href="http://hep.man.ac.uk/u/alexschof/Programs/Rivet">hep.man.ac.uk/u/alexschof/Programs/Rivet</a>"
(your python vesion may<br>
differ).<br>
<br>
So you could do something like this:<br>
<blockquote>export PYTHONPATH=/afs/<a moz-do-not-send="true"
href="http://hep.man.ac.uk/u/alexschof/Programs/Rivet">hep.man.ac.uk/u/alexschof/Programs/Rivet</a>/lib/python2.6/site-packages:$PYTHONPATH<br>
</blockquote>
To see if python finds the packages, open a python shell and try
'import rivet'<br>
or 'import lighthisto'.<br>
<br>
<br>
I am pretty positive that the rivet-installation should also provide a
setup <br>
script called 'rivetenv.sh' which you could look for and use by `source
PATH_TO_IT/rivetenv.sh`<br>
<br>
<br>
Hope that helps,<br>
Holger<br>
<br>
<br>
<br>
<br>
<br>
<br>
<blockquote
cite="mid:AANLkTinc-Z1JKxbZ6XtO10LK59pn9f=iQB6zqJ6L7kmN@mail.gmail.com"
type="cite"><b><br>
Thanks,<br>
Alex</b><br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Rivet mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rivet@projects.hepforge.org">Rivet@projects.hepforge.org</a>
<a class="moz-txt-link-freetext" href="http://www.hepforge.org/lists/listinfo/rivet">http://www.hepforge.org/lists/listinfo/rivet</a></pre>
</blockquote>
<br>
</body>
</html>