[CP2K:10030] Re: Compile problem in fypp

Tiziano Müller tiziano... at chem.uzh.ch
Sun Feb 25 16:24:20 UTC 2018


Hi Ke

Try to run make like that:

  PATH="/home/xuzp/bin/packages/python/Python-2.7.14:${PATH}" make
VERSION=sopt ARCH=local

or set your path variable before running make:

  export PATH="/home/xuzp/bin/packages/python/Python-2.7.14:${PATH}"
  make VERSION=sopt ARCH=local

Both options should ensure that make picks up your version of Python.

And please talk to your administrator: Python 2.4 is EOL with its last
bug fixing release more than 9 years ago.

Best regards,
Tiziano

Am 24.02.2018 um 02:30 schrieb Ke Zhou:
> Dear Patrick,
> 
> Thanks for your reply.
> 
> It returns:
> 
> Discovering programs ...
> 
> /home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/makefiles/Makefile:42:
> /home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/arch/local.sopt: No such
> file or directory
> 
> make[2]: *** No rule to make target
> `/home/xuzp/bin/packages/cp2k_ForZK/cp2k-5.1/arch/local.sopt'.  Stop.
> 
> make[1]: *** [sopt] Error 2
> 
> make: *** [toolversions] Error 2
> 
> 
> I type: /usr/bin/env python -V 
> 
> It returns: 
> 
> Python 2.4.3
> 
> 
> I type: python -V 
> 
> It returns: 
> 
> Python 2.7.14
> 
> 
> Because I have no permission to change the python on the root. So I
> use /alias/ to link python to the new one on my users files. 
> 
>  
> 
> alias python='/home/xuzp/bin/packages/python/Python-2.7.14/python'
> 
> 
> I gauss that the python running when making is old version not the new one. 
> 
> So I thinks If I specify the path for python, it may solve the problem.
> But I don't how to do it.
> 
> 
> Best, 
> 
> Ke  
> 
> 
> 在 2018年2月23日星期五 UTC+8下午10:19:15,Patrick Seewald写道:
> 
>     It is rather strange that you get this syntax error from python
>     since fypp should support python 2.7.14. If you type /make
>     toolversions/ on the cluster (in the same directory as CP2K
>     makefile), what is the output for Python?
> 
>     Patrick
> 
>     Am Freitag, 23. Februar 2018 13:37:37 UTC+1 schrieb Ke Zhou:
> 
>         Dear all, 
> 
>         Now I am compiling the CP2K 2.5.1 on cluster. When I making, it
>         returns:
> 
> 
>         Discovering programs ...
> 
>         Removing stale archives for popt ... 
> 
>         Resolving dependencies for popt ... 
> 
>         ...
> 
>         ...  /cp2k-5.1/tools/build_utils/fypp -n  ...
>         /cp2k-5.1/src/dbcsr/mm/dbcsr_mm_types.F dbcsr_mm_types.F90
> 
>         ...  /cp2k-5.1/tools/build_utils/fypp", line 705
> 
>             except Exception as exc:
> 
>                               ^
> 
>         SyntaxError: invalid syntax
> 
>         make[3]: *** [kinds.o] Error 1
> 
>         make[3]: *** Waiting for unfinished jobs....
> 
> 
>         I thinks it's the problem from python.
> 
> 
>         The version of python is:
> 
> 
>          python -V
> 
>          Python 2.7.14
> 
> 
>         Here are my questions:
> 
>         1. Can I directly specify the path of python on makefile?
> 
>         2. Can I give up the build of tools?
> 
> 
>         Can you help me?
> 
> 
>         Justin 
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "cp2k" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cp2k+uns... at googlegroups.com
> <mailto:cp2k+uns... at googlegroups.com>.
> To post to this group, send email to cp... at googlegroups.com
> <mailto:cp... at googlegroups.com>.
> Visit this group at https://groups.google.com/group/cp2k.
> For more options, visit https://groups.google.com/d/optout.

-- 
Tiziano Müller
University of Zurich
Department of Chemistry
Winterthurerstrasse 190
CH-8057 Zürich

Tel: +41 44 63 54234
www.chem.uzh.ch
tiziano... at chem.uzh.ch



More information about the CP2K-user mailing list