1

나는 MacPorts와 함께 PetSc을 설치하려고합니다. 내 마지막 목표는 libMesh을 내 Mac에 설치하는 것입니다. 내가 PetSc를 설치하려고 할 때 구성 중에 실패했습니다. libMesh를 설치하기 전에 PetSc을 ​​설치해야합니다.PetSc 설치 MacPort와 함께 실패한 사람이 있습니까?

다음은 로그의 오류 부분입니다.

:info:configure TESTING: checkFortranLibraries from config.compilers(/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_petsc/work/petsc-3.1-p4/config/BuildSystem/config/compilers.py:624) 
:info:configure ******************************************************************************* 
:info:configure      UNABLE to EXECUTE BINARIES for config/configure.py 
:info:configure ------------------------------------------------------------------------------- 
:info:configure Cannot run executables created with C. If this machine uses a batch system 
:info:configure to submit jobs you will need to configure using/configure.py with the additional option --with-batch. 
:info:configure Otherwise there is problem with the compilers. Can you compile and run code with your C/C++ (and maybe Fortran) compilers? 
:info:configure ******************************************************************************* 
:info:configure 
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_petsc/work/petsc-3.1-p4" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_petsc/work/petsc-3.1-p4/config/configure.py --prefix=/opt/local --with-python --with-c-support=1 --with-c++-support=1 --with-pic=fPIC --with-shared=1 --prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_petsc/work/destroot/opt/local/lib/petsc --with-cc=/opt/local/bin/openmpicc --with-cxx=/opt/local/bin/openmpicxx --with-mpiexec=/opt/local/bin/openmpiexec --with-hdf5=1 --with-hdf5-dir=/opt/local --LIBS=-lsz --with-triangle=1 --with-triangle-dir=/opt/local --with-debugging=1 " returned error 1 
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details) 
:debug:configure Backtrace: configure failure: shell command failed (see log for details) 
while executing 
"$procedure $targetname" 
:info:configure Warning: the following items did not execute (for petsc): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install 
:notice:configure Log for petsc is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_petsc/main.log 

저는 Xcode 3.2.4를 사용하여 Mac OS 10.6.5를 실행 중입니다. 내 MacPorts 버전은 최신 버전 인 1.9.2입니다.

도와주세요.

답변

1

bug #237223; 이 경우 -lstdc++LDFLAGS에 추가하면 도움이 될 수 있습니다. 또한 경로에 gfortran이 있는지 확인하십시오. MacPorts에서 포트에 대한 버그를 제기하는 것도 고려하십시오.

마지막 행에서 언급 한 로그 파일은 테스트를 실행하는 Python 파일의 컨텍스트 중 일부와 마찬가지로이를 진단하는 데 도움이됩니다. -d-v 플래그가 port으로 전달 된 설치 시도의 결과가 도움이 될 수 있습니다.

+0

감사합니다. 정보는 Jeremy에게 문의하십시오. 네, 그 원인은 같아 보입니다. –

관련 문제