|
[Rivet] Problems installing rivetAlex Schofield alexschof at gmail.comWed Feb 23 11:09:01 GMT 2011
*Thanks for the replies. I have attached the config.log from the bootstrap installation. >From your suggestions I have run the commands* bash-3.2$ export PYTHONPATH=/afs/ hep.man.ac.uk/u/alexschof/Programs/Rivet/lib64/python2.4/site-packages/:$PYTHONPATH bash-3.2$ source rivetenv.sh bash-3.2$ rivet -v rivet requires the 'rivet' Python module /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /afs/ cern.ch/sw/lcg/external/HepMC/2.06.03/x86_64-slc5-gcc43-opt/lib/libHepMC.so.4 ) *I receive the same error from python:* Python 2.4.3 (#1, Jan 13 2011, 20:52:03) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import rivet Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib64/python2.4/site-packages/PIL/__init__.py", line 16, in ? File "/afs/ hep.man.ac.uk/u/alexschof/Programs/InstallFiles/Rivet-1.4.0/pyext/build/lib.linux-x86_64-2.4/rivet/rivetwrap.py", line 5, in ? ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /afs/ cern.ch/sw/lcg/external/HepMC/2.06.03/x86_64-slc5-gcc43-opt/lib/libHepMC.so.4 ) *, though lighthisto now imports correctly:* >>> import lighthisto >>> *A google search suggested that the problem was due to an outdated version of GLIBC, which I checked by *bash-3.2$ rpm -q glibc glibc-2.5-49.el5_5.7 glibc-2.5-49.el5_5.7 *Is this the cause of my problem? Also, could my older version of python be causing some problems? Thanks, Alex * On Tue, Feb 22, 2011 at 2:39 PM, Andy Buckley <andy.buckley at ed.ac.uk> wrote: > Hi Alex, > > Can you send us a copy of your config.log file? It looks to me like > either the Rivet Python module has not been built at all (possible if > the Python development headers e.g. Python.h are not present on your > machine) or that it has been built but is not present in your PYTHONPATH. > > To get a bit more information, can you try running "rivet -v" to get > more verbose information about the failed loading of the "rivet" module > and send us the output. Also, try running "python" to get to the Python > interpreter prompt, and type "import rivet": the output from that would > also be useful... and maybe enough to help *you* find out why the module > isn't being loaded :) > > Cheers, > Andy > > > On 22/02/11 14:15, Alex Schofield wrote: > > *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* > > > > -bash-3.2$ export > > PATH=/afs/ > cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin:$PATH > > < > http://cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin:$PATH > > > > -bash-3.2$ source > > /afs/cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5-gcc43-opt/setup.sh > > <http://cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5-gcc43-opt/setup.sh> > > -bash-3.2$ ./rivet-bootstrap --install-boost > > --prefix=/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet > > <http://hep.man.ac.uk/u/alexschof/Programs/Rivet> > > Getting http://www.hepforge.org/archive/rivet/Rivet-1.4.0.tar.gz > > Downloading http://www.hepforge.org/archive/rivet/Rivet-1.4.0.tar.gz > > Installing a local copy of Boost > > Downloading > > > http://downloads.sourceforge.net/boost/boost_1_44_0.tar.gz?use_mirror=mesh > > LCG area available: using LCG-built packages > > Using LCG platform tag = x86_64-slc5-gcc43-opt > > Configuring in > > /afs/hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0 > > < > http://hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0>: > > ./configure --prefix=/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet > > <http://hep.man.ac.uk/u/alexschof/Programs/Rivet> > > --with-lcgtag=x86_64-slc5-gcc43-opt > > --with-hepmc=/afs/ > cern.ch/sw/lcg/external/HepMC/2.06.03/x86_64-slc5-gcc43-opt > > <http://cern.ch/sw/lcg/external/HepMC/2.06.03/x86_64-slc5-gcc43-opt> > > --with-boost=/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet > > <http://hep.man.ac.uk/u/alexschof/Programs/Rivet> > > --with-fastjet=/afs/ > cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt > > <http://cern.ch/sw/lcg/external/fastjet/2.4.2/x86_64-slc5-gcc43-opt> > > --disable-pdfmanual > > --with-gsl=/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt > > <http://cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt> > > --with-gslcblas=/afs/ > cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt > > <http://cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc5-gcc43-opt> > > Building in > > /afs/hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0 > > < > http://hep.man.ac.uk/u/alexschof/Programs/InstallFiles/build/Rivet-1.4.0>: > > make -j2 && make -j2 install > > > > All done. Now set some variables in your shell by sourcing, for bash > shell: > > > > source rivetenv.sh > > > > or for csh shell: > > > > source rivetenv.csh > > > > > > *Rivet seems to have successfully installed, but when I try to run it I > > receive the following message:* > > > > -bash-3.2$ source rivetenv.sh > > -bash-3.2$ rivet > > rivet requires the 'rivet' Python module > > No module named rivet > > -bash-3.2$ rivet -h > > * > > 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:* > > > > -bash-3.2$ aida2flat TVT.aida > > Traceback (most recent call last): > > File "/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/aida2flat > > <http://hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/aida2flat>", line > > 13, in ? > > import lighthisto > > ImportError: No module named lighthisto > > > > *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 > > > > *-bash-3.2$ rivet-mkhtml > > Traceback (most recent call last): > > File "/afs/hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/rivet-mkhtml > > <http://hep.man.ac.uk/u/alexschof/Programs/Rivet/bin/rivet-mkhtml>", > > line 19, in ? > > import rivet > > ImportError: No module named rivet > > rivet is broken... exiting > > * > > Could you point out where i'm going wrong? If you need more information > > please let me know. > > > > Thanks, > > Alex* > > > > > > > > _______________________________________________ > > Rivet mailing list > > Rivet at projects.hepforge.org > > http://www.hepforge.org/lists/listinfo/rivet > > > -- > Dr Andy Buckley > SUPA Advanced Research Fellow > Particle Physics Experiment Group, University of Edinburgh > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.hepforge.org/lists-archive/rivet/attachments/20110223/0c4c6b61/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 52327 bytes Desc: not available URL: <http://www.hepforge.org/lists-archive/rivet/attachments/20110223/0c4c6b61/attachment.bin>
More information about the Rivet mailing list |