On Sat, Dec 6, 2014 at 10:55 PM, Lizao Li <[email protected]> wrote: > > On Sat, Dec 6, 2014 at 2:50 PM, Johannes Ring <[email protected]> wrote: >> >> On Sat, Dec 6, 2014 at 9:29 PM, Lizao Li <[email protected]> wrote: >> > @Johannes. Indeed, on Arch `python` is linked to py3 and `python2` is >> > linked >> > to py2. Is there a way to make it work by changing the default python >> > binary >> > path? >> >> You can make a symbolic link to python2 in some directory >> >> ln -s /usr/bin/python2 python >> >> and then add this directory first in PATH. >> > > Thanks. The first hurdle is passed. After >> >> ln -s /usr/bin/python2 python >> export PATH=$PWD:$PATH >> wget -O - http://fenicsproject.org/fenics-install.sh | bash > > the installation failed at "boost": > Output of `tail -f /home/larry/.hashdist/tmp/boost-tyvhwearpzdg/build.log` >> >> 2014/12/06 15:18:08 - INFO: [package:run_job] >> 2014/12/06 15:18:08 - INFO: [package:run_job] compilation terminated. >> 2014/12/06 15:18:08 - INFO: [package:run_job] >> 2014/12/06 15:18:08 - INFO: [package:run_job] "g++" >> -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC >> -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG -I"." >> -I"/usr/include/python3.4" -c -o >> "_build/boost/bin.v2/libs/python/build/gcc-4.9.2/release/address-model-64/threading-multi/numeric.o" >> "libs/python/src/numeric.cpp" >> 2014/12/06 15:18:08 - INFO: [package:run_job] >> 2014/12/06 15:18:08 - INFO: [package:run_job] ...failed gcc.compile.c++ >> _build/boost/bin.v2/libs/python/build/gcc-4.9.2/release/address-model-64/threading-multi/numeric.o... >> 2014/12/06 15:18:08 - INFO: [package:run_job] ...failed updating 1 >> target... >> 2014/12/06 15:18:08 - INFO: [package:run_job] ...updated 10689 targets... >> 2014/12/06 15:18:08 - ERROR: [package:run_job] Command '[u'/bin/bash', >> '_hashdist/build.sh']' returned non-zero exit status 1 >> 2014/12/06 15:18:08 - ERROR: [package:run_job] command failed (code=1); >> raising > > It seems the python path is still wrong. Is there a way to set the > python_lib and pythong_include path?
I have updated the script now to build its own python. That should hopefully fix this problem. > >> >> Johannes >> >> > I also tried it on a production cluster with CentOS 6.5. It failed at >> > package "eigen" >> >> >> >> [eigen] Building eigen/hfjxjswpo5ct, follow log with: >> >> [eigen] tail -f >> >> >> >> /panfs/roc/groups/5/arnoldd/lil1/.hashdist/tmp/eigen-hfjxjswpo5ct/build.log >> >> Take a look at this file. > > > Thanks for pointing that out. I thought when it said "[eigen] tail -f ...." > it meant "what follows is the output from tail -f ..." already. Apparently > it is not. The full log revealed that cmake is missing. Is there an easy to > add that? (I do not have sudo on that cluster)) Yes, this is easy and it is fixed now in the latest version of the script. Johannes _______________________________________________ fenics mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics
