[Rivet] Rivet installation -- AFS

Sercan Sen Sercan.Sen at cern.ch
Mon Jul 26 22:56:45 BST 2010


Hi Andy,

Thanks a lot --it works. Please see below a few details for some  
feedback.

It set the PYTHONPATH but complained about libstdc++.so.6.

[lxplus256] ~/scratch0/Rivetlocal $ setenv PYTHONPATH /afs/cern.ch/ 
user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages
[lxplus256] ~/scratch0/Rivetlocal $ echo $PYTHONPATH
/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/ 
site-packages
[lxplus256] ~/scratch0/Rivetlocal $ agile-runmc --help
Traceback (most recent call last):
   File "/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/bin/agile- 
runmc", line 95, in ?
     import AGILe
   File "/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/ 
python2.4/site-packages/AGILe.py", line 28, in ?
     import _AGILe
ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not  
found (required by /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/ 
lib64/python2.4/site-packages/_AGILe.so)
[lxplus256] /usr/lib64 $ ll libstdc++.so.*
lrwxrwxrwx 1 root     18 Jul 24 20:57 libstdc++.so.5 -> libstdc++.so. 
5.0.7
-rwxr-xr-x 1 root 827848 Apr 10  2007 libstdc++.so.5.0.7
lrwxrwxrwx 1 root     18 Jul 24 20:53 libstdc++.so.6 -> libstdc++.so. 
6.0.8
-rwxr-xr-x 1 root 972216 Mar 31 12:20 libstdc++.so.6.0.8
[lxplus256] ~/scratch0/Rivetlocal $ rpm -q glibc
glibc-2.5-49.el5_5.2

However, I realized that I forgot to set gcc43 when I login to the new  
terminal.  (This ticket was also helpful to figure out the problem; https://savannah.cern.ch/bugs/?65227)

[lxplus256] ~/scratch0/Rivetlocal $ which gcc
/usr/bin/gcc
export PATH=/afs/cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43- 
opt/bin:$PATH
source /afs/cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5-gcc43-opt/ 
setup.sh
When I set the gcc43 by using above lines which are already written on  
the rivet manual, then I get;

[lxplus256] ~/scratch0/Rivetlocal $ which gcc
/afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/bin/gcc

[lxplus256] ~/scratch0/Rivetlocal $ agile-runmc --beam=pp:14TeV  
Pythia6:423
Generating 10 events
Generator is Pythia6:423
.....
.....

Now it works fine,

Thanks again,
Sercan






On Jul 26, 2010, at 7:25 PM, Andy Buckley wrote:

> On 26/07/10 17:08, Sercan Sen wrote:
>>
>> Hi Andy,
>>
>>> My suspicion is that as a result the setenv lines below that for
>>> TEXMFHOME have not been called, hence the missing PYTHONPATH.
>>
>> Right. Before I tried by putting the PYTHONPATH just before TEXMFHOME
>> but it didn't work. When I try again, it gives PYTHONPATH: Undefined
>> variable.
>>
>> [lxplus307] ~/scratch0/Rivetlocal $ setenv PYTHONPATH
>> /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/ 
>> site-packages:$PYTHONPATH
>>
>> PYTHONPATH: Undefined variable.
>> [lxplus219] ~/scratch0/Rivetlocal $ echo $PYTHONPATH
>> PYTHONPATH: Undefined variable.
>
> Right, this is the problem: PYTHONPATH isn't defined, so the setenv  
> that
> uses $PYTHONPATH on the right hand side of the assignment fails... and
> it still isn't set afterwards. This would just work silently in *sh  
> shells.
>
> So try this instead:
>
> setenv PYTHONPATH
> /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/ 
> site-packages
>
> (i.e. no $PYTHONPATH on the RHS). Hopefully this will work. I'll put a
> fix into the bootstrap script's writing of the rivetenv.csh file, if
> this works for you.
>
> Andy
>
>
>> But actually I have the things there;
>>
>> [lxplus307] ~/scratch0/Rivetlocal/local/lib64/python2.4/site- 
>> packages $ ll
>> total 3010
>> -rw-r--r-- 1 ssen   17044 May 11 13:27 AGILe.py
>> -rw-r--r-- 1 ssen   28280 Jul 26 15:59 AGILe.pyc
>> -rwxr-xr-x 1 ssen 1340138 Jul 26 15:59 _AGILe.so
>> -rw-r--r-- 1 ssen   17867 Jan  7  2010 lighthisto.py
>> -rw-r--r-- 1 ssen   18371 Jul 26 15:52 lighthisto.pyc
>> -rw-r--r-- 1 ssen   23274 Jul 26 15:51 rivet.py
>> -rw-r--r-- 1 ssen   37746 Jul 26 15:52 rivet.pyc
>> -rwxr-xr-x 1 ssen 1596785 Jul 26 15:52 _rivet.so
>>
>> When I look at the environments on my MAC, it is almost the same;
>>
>> pb-d-128-141-142-14:RivetLocal raskapov$ export
>> PYTHONPATH=/Users/raskapov/RivetLocal/local/lib/python2.5/site- 
>> packages:$PYTHONPATH
>>
>> pb-d-128-141-142-14:RivetLocal raskapov$ echo $PYTHONPATH
>> /Users/raskapov/RivetLocal/local/lib/python2.5/site-packages:/Users/ 
>> raskapov/RivetLocal/local/lib/python2.5/site-packages:
>>
>> pb-d-128-141-142-14:RivetLocal raskapov$
>>
>> pb-d-128-141-142-14:site-packages raskapov$ ll
>> total 3984
>> -rw-r--r--  1 raskapov  staff      518 Jul 24 20:35
>> AGILe-1.1.6-py2.5.egg-info
>> -rw-r--r--  1 raskapov  staff    17044 May 11 13:27 AGILe.py
>> -rw-r--r--  1 raskapov  staff    38368 Jul 24 20:35 AGILe.pyc
>> -rwxr-xr-x  1 raskapov  staff   797452 Jul 24 20:35 _AGILe.so
>> -rwxr-xr-x  1 raskapov  staff  1056768 Jul 24 20:33 _rivet.so
>> -rw-r--r--  1 raskapov  staff    17867 Jan  7  2010 lighthisto.py
>> -rw-r--r--  1 raskapov  staff    21429 Jul 24 20:33 lighthisto.pyc
>> -rw-r--r--  1 raskapov  staff      680 Jul 24 20:34
>> rivet-1.2.1-py2.5.egg-info
>> -rw-r--r--  1 raskapov  staff    19922 Jul 24 20:33 rivet.py
>> -rw-r--r--  1 raskapov  staff    48742 Jul 24 20:33 rivet.pyc
>>
>> The only difference-- lxplus uses python 2.4, MAC uses python 2.5 .  
>> Does
>> it make difference? I mean could it be the source of the problem ?
>>
>> Thanks
>> Sercan
>>
>>
>>
>>
>>
>> On Jul 26, 2010, at 5:50 PM, Andy Buckley wrote:
>>
>>> On 26/07/10 16:41, Sercan Sen wrote:
>>>>
>>>> Dear All,
>>>>
>>>> I successfully installed Rivet (--with agile) on my MAC, however,  
>>>> I've
>>>> some problems to use Rivet on lxplus machines. I follow the
>>>> instructions given on the webpage
>>>> http://projects.hepforge.org/rivet/trac/wiki/GettingStarted
>>>> , and use gcc43. Now it seems agile-runmc is available but not  
>>>> running
>>>> properly.
>>>>
>>>> I list the steps and try to give more information about the  
>>>> problem on
>>>> the following page,
>>>> http://ssen.web.cern.ch/ssen/PUBLIC/Rivet/RivetInstall_LXPLUS.html
>>>>  . (If more information is needed, please let me know).
>>>>
>>>> Do you have any suggestion about this problem ?
>>>
>>> Hi Sercan,
>>>
>>> I think the problem is due to the undefined TEXMFHOME variable in  
>>> your
>>> tcsh shell: on bash etc. the undefined variable will be silently
>>> replaced with a blank, but on csh shells (which most of us Rivet/ 
>>> AGILe
>>> developers are unfamiliar with) it seems to throw an error.
>>>
>>> My suspicion is that as a result the setenv lines below that for
>>> TEXMFHOME have not been called, hence the missing PYTHONPATH.
>>>
>>> I suggest that you edit the rivetenv.csh file to remove the  
>>> references
>>> to undefined variables. I will try to fix this in the bootstrap  
>>> script
>>> for the next release: let us know if it solves your problem.
>>>
>>> Andy
>>>
>>> -- 
>>> Dr Andy Buckley
>>> SUPA Advanced Research Fellow
>>> Particle Physics Experiment Group, University of Edinburgh
>>>
>>> The University of Edinburgh is a charitable body, registered in
>>> Scotland, with registration number SC005336.
>>>
>>
>>
>
>
> -- 
> Dr Andy Buckley
> SUPA Advanced Research Fellow
> Particle Physics Experiment Group, University of Edinburgh
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.hepforge.org/lists-archive/rivet/attachments/20100726/18081d26/attachment.htm 


More information about the Rivet mailing list