Ubuntu 16.04.2, Python 2.7, Anaconda (IDE 용 Spyder 사용)에서 Fenics (2016.2.0)의 기본 데모를 실행하려고합니다. 데모는 ft_01poisson.py
입니다. 오류 :MPICH_NUMVERSION에서 Fenics 데모가 새로 설치됩니다.
RuntimeError: In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '.../error/dolfin_6c..dc/compile.log'
자, 살펴 보겠습니다. 내가 ~/anaconda2/include/petscconf.h
를 추적
#elif defined(PETSC_HAVE_MPICH_NUMVERSION)
# if !defined(MPICH_NUMVERSION)
# error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
: 모든
.../anaconda2/include/petscsys.h:144:6: error: #error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
# error "PETSc was configured with MPICH but now appears to be compiling using a non-MPICH mpi.h"
확인,의 소스가 말하는 보자 ... 때까지 괜찮
#define PETSC_HAVE_MPICH_NUMVERSION 30200300
을 이제 ~/anaconda2/include/mpi.h
의 버전을 그 I 버전 2.2가 있지만 이있는 mpich-3.2.4 install
에 mpi.h
의 다른 버전이 있습니다.
~/anaconda2/include/
폴더에 관련 파일과 #include
을 복사하여 붙여 넣으려고했습니다. 첫 번째 오류는 error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
입니다.
어떻게 해결할 수 있습니까? Fenics 설치 지침에 따라 데모를 실행하려면 어떻게합니까?
질문 바로 아래에 '삭제'라는 링크가 있습니다. 질문을 삭제하려면 클릭하십시오! –