<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hi Andy, </div><div><br></div><div>Thanks a lot --it works. Please see below a few details for some feedback.</div><div><br></div><div>It set the PYTHONPATH but complained about libstdc++.so.6. </div><div><br></div><div><div><div>[lxplus256] ~/scratch0/Rivetlocal $ setenv PYTHONPATH /afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages</div><div>[lxplus256] ~/scratch0/Rivetlocal $ echo $PYTHONPATH</div><div>/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages</div><div>[lxplus256] ~/scratch0/Rivetlocal $ agile-runmc --help</div><div>Traceback (most recent call last):</div><div> File "/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/bin/agile-runmc", line 95, in ?</div><div> import AGILe</div><div> File "/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages/AGILe.py", line 28, in ?</div><div> import _AGILe</div><div>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)</div></div></div><div><div><div>[lxplus256] /usr/lib64 $ ll libstdc++.so.*</div><div>lrwxrwxrwx 1 root 18 Jul 24 20:57 libstdc++.so.5 -> libstdc++.so.5.0.7</div><div>-rwxr-xr-x 1 root 827848 Apr 10 2007 libstdc++.so.5.0.7</div><div>lrwxrwxrwx 1 root 18 Jul 24 20:53 libstdc++.so.6 -> libstdc++.so.6.0.8</div><div>-rwxr-xr-x 1 root 972216 Mar 31 12:20 libstdc++.so.6.0.8</div></div></div><div><div>[lxplus256] ~/scratch0/Rivetlocal $ rpm -q glibc</div><div>glibc-2.5-49.el5_5.2</div></div><div><br></div><div>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; <a href="https://savannah.cern.ch/bugs/?65227)">https://savannah.cern.ch/bugs/?65227)</a></div><div><br></div><div><div>[lxplus256] ~/scratch0/Rivetlocal $ which gcc </div><div>/usr/bin/gcc</div></div><div><span class="Apple-style-span" style="font-family: sans-serif; color: rgb(51, 51, 51); -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><pre class="wiki" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(247, 247, 247); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(215, 215, 215); border-right-color: rgb(215, 215, 215); border-bottom-color: rgb(215, 215, 215); border-left-color: rgb(215, 215, 215); margin-top: 1em; margin-right: 1.75em; margin-bottom: 1em; margin-left: 1.75em; padding-top: 0.25em; padding-right: 0.25em; padding-bottom: 0.25em; padding-left: 0.25em; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial; ">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</pre></span></div><div>When I set the gcc43 by using above lines which are already written on the rivet manual, then I get; </div><div><br></div><div><div>[lxplus256] ~/scratch0/Rivetlocal $ which gcc</div><div>/afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-slc5-gcc34-opt/bin/gcc</div></div><div><br></div><div><div>[lxplus256] ~/scratch0/Rivetlocal $ agile-runmc --beam=pp:14TeV Pythia6:423</div><div>Generating 10 events</div><div>Generator is Pythia6:423 </div></div><div>.....</div><div>.....</div><div><br></div><div>Now it works fine, </div><div><br></div><div>Thanks again, </div><div>Sercan</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div><div>On Jul 26, 2010, at 7:25 PM, Andy Buckley wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 26/07/10 17:08, Sercan Sen wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi Andy,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">My suspicion is that as a result the setenv lines below that for<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">TEXMFHOME have not been called, hence the missing PYTHONPATH.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Right. Before I tried by putting the PYTHONPATH just before TEXMFHOME<br></blockquote><blockquote type="cite">but it didn't work. When I try again, it gives PYTHONPATH: Undefined<br></blockquote><blockquote type="cite">variable.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">[lxplus307] ~/scratch0/Rivetlocal $ setenv PYTHONPATH<br></blockquote><blockquote type="cite">/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages:$PYTHONPATH<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">PYTHONPATH: Undefined variable.<br></blockquote><blockquote type="cite">[lxplus219] ~/scratch0/Rivetlocal $ echo $PYTHONPATH<br></blockquote><blockquote type="cite">PYTHONPATH: Undefined variable.<br></blockquote><br>Right, this is the problem: PYTHONPATH isn't defined, so the setenv that<br>uses $PYTHONPATH on the right hand side of the assignment fails... and<br>it still isn't set afterwards. This would just work silently in *sh shells.<br><br>So try this instead:<br><br>setenv PYTHONPATH<br>/afs/cern.ch/user/s/ssen/scratch0/Rivetlocal/local/lib64/python2.4/site-packages<br><br>(i.e. no $PYTHONPATH on the RHS). Hopefully this will work. I'll put a<br>fix into the bootstrap script's writing of the rivetenv.csh file, if<br>this works for you.<br><br>Andy<br><br><br><blockquote type="cite">But actually I have the things there;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">[lxplus307] ~/scratch0/Rivetlocal/local/lib64/python2.4/site-packages $ ll<br></blockquote><blockquote type="cite">total 3010<br></blockquote><blockquote type="cite">-rw-r--r-- 1 ssen 17044 May 11 13:27 AGILe.py<br></blockquote><blockquote type="cite">-rw-r--r-- 1 ssen 28280 Jul 26 15:59 AGILe.pyc<br></blockquote><blockquote type="cite">-rwxr-xr-x 1 ssen 1340138 Jul 26 15:59 _AGILe.so<br></blockquote><blockquote type="cite">-rw-r--r-- 1 ssen 17867 Jan 7 2010 lighthisto.py<br></blockquote><blockquote type="cite">-rw-r--r-- 1 ssen 18371 Jul 26 15:52 lighthisto.pyc<br></blockquote><blockquote type="cite">-rw-r--r-- 1 ssen 23274 Jul 26 15:51 rivet.py<br></blockquote><blockquote type="cite">-rw-r--r-- 1 ssen 37746 Jul 26 15:52 rivet.pyc<br></blockquote><blockquote type="cite">-rwxr-xr-x 1 ssen 1596785 Jul 26 15:52 _rivet.so<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">When I look at the environments on my MAC, it is almost the same;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">pb-d-128-141-142-14:RivetLocal raskapov$ export<br></blockquote><blockquote type="cite">PYTHONPATH=/Users/raskapov/RivetLocal/local/lib/python2.5/site-packages:$PYTHONPATH<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">pb-d-128-141-142-14:RivetLocal raskapov$ echo $PYTHONPATH<br></blockquote><blockquote type="cite">/Users/raskapov/RivetLocal/local/lib/python2.5/site-packages:/Users/raskapov/RivetLocal/local/lib/python2.5/site-packages:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">pb-d-128-141-142-14:RivetLocal raskapov$<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">pb-d-128-141-142-14:site-packages raskapov$ ll<br></blockquote><blockquote type="cite">total 3984<br></blockquote><blockquote type="cite">-rw-r--r-- 1 raskapov staff 518 Jul 24 20:35<br></blockquote><blockquote type="cite">AGILe-1.1.6-py2.5.egg-info<br></blockquote><blockquote type="cite">-rw-r--r-- 1 raskapov staff 17044 May 11 13:27 AGILe.py<br></blockquote><blockquote type="cite">-rw-r--r-- 1 raskapov staff 38368 Jul 24 20:35 AGILe.pyc<br></blockquote><blockquote type="cite">-rwxr-xr-x 1 raskapov staff 797452 Jul 24 20:35 _AGILe.so<br></blockquote><blockquote type="cite">-rwxr-xr-x 1 raskapov staff 1056768 Jul 24 20:33 _rivet.so<br></blockquote><blockquote type="cite">-rw-r--r-- 1 raskapov staff 17867 Jan 7 2010 lighthisto.py<br></blockquote><blockquote type="cite">-rw-r--r-- 1 raskapov staff 21429 Jul 24 20:33 lighthisto.pyc<br></blockquote><blockquote type="cite">-rw-r--r-- 1 raskapov staff 680 Jul 24 20:34<br></blockquote><blockquote type="cite">rivet-1.2.1-py2.5.egg-info<br></blockquote><blockquote type="cite">-rw-r--r-- 1 raskapov staff 19922 Jul 24 20:33 rivet.py<br></blockquote><blockquote type="cite">-rw-r--r-- 1 raskapov staff 48742 Jul 24 20:33 rivet.pyc<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The only difference-- lxplus uses python 2.4, MAC uses python 2.5 . Does<br></blockquote><blockquote type="cite">it make difference? I mean could it be the source of the problem ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks<br></blockquote><blockquote type="cite">Sercan<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Jul 26, 2010, at 5:50 PM, Andy Buckley wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">On 26/07/10 16:41, Sercan Sen wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Dear All,<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I successfully installed Rivet (--with agile) on my MAC, however, I've<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">some problems to use Rivet on lxplus machines. I follow the<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">instructions given on the webpage<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://projects.hepforge.org/rivet/trac/wiki/GettingStarted">http://projects.hepforge.org/rivet/trac/wiki/GettingStarted</a><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">, and use gcc43. Now it seems agile-runmc is available but not running<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">properly.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I list the steps and try to give more information about the problem on<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">the following page,<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://ssen.web.cern.ch/ssen/PUBLIC/Rivet/RivetInstall_LXPLUS.html">http://ssen.web.cern.ch/ssen/PUBLIC/Rivet/RivetInstall_LXPLUS.html</a><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> . (If more information is needed, please let me know).<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Do you have any suggestion about this problem ?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Hi Sercan,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I think the problem is due to the undefined TEXMFHOME variable in your<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">tcsh shell: on bash etc. the undefined variable will be silently<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">replaced with a blank, but on csh shells (which most of us Rivet/AGILe<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">developers are unfamiliar with) it seems to throw an error.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">My suspicion is that as a result the setenv lines below that for<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">TEXMFHOME have not been called, hence the missing PYTHONPATH.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I suggest that you edit the rivetenv.csh file to remove the references<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">to undefined variables. I will try to fix this in the bootstrap script<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">for the next release: let us know if it solves your problem.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Andy<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-- <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Dr Andy Buckley<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">SUPA Advanced Research Fellow<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Particle Physics Experiment Group, University of Edinburgh<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">The University of Edinburgh is a charitable body, registered in<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Scotland, with registration number SC005336.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br>-- <br>Dr Andy Buckley<br>SUPA Advanced Research Fellow<br>Particle Physics Experiment Group, University of Edinburgh<br><br>The University of Edinburgh is a charitable body, registered in<br>Scotland, with registration number SC005336.<br><br></div></blockquote></div><br></body></html>