PetSc 安装 MacPort 失败 谁能帮忙?
我正在尝试使用 MacPorts 安装 PetSc。我的最终目标是在我的 Mac 上安装 libMesh。当我尝试安装 PetSc 时,它在配置过程中失败。在尝试安装 libMesh 之前,我需要安装 PetSc。
这是日志的错误部分。
: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
我正在运行 Mac OS 10.6.5 和 Xcode 3.2.4。我的MacPorts版本是最新的1.9.2。
请帮忙。
I'm trying to install PetSc with MacPorts. My final goal is to install libMesh on my Mac. When I'm trying to install PetSc its failing during configuration. I need to get PetSc installed before any attempt to install libMesh.
Here is the error part of the log.
: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
I'm running Mac OS 10.6.5 with Xcode 3.2.4. My MacPorts version is 1.9.2 the latest one.
Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能会遇到 bug #237223;在这种情况下,将
-lstdc++
添加到LDFLAGS
可能会有所帮助。另外,请确保您的路径中有一个有效的gfortran
。也可以考虑在 MacPorts 上针对端口提交错误。最后一行中提到的日志文件将有助于诊断此问题,运行测试的 Python 文件中的一些上下文也是如此。使用传递到
port
的-d
和-v
标志尝试安装的输出也可能有所帮助。You might be running up against bug #237223; adding
-lstdc++
toLDFLAGS
might help, in that case. Also, make sure you have a workinggfortran
in your path. Consider filing a bug against the port over at MacPorts, as well.The log file mentioned in the last line would help in diagnosing this, as would some of the context from the Python file that's running the test. Output from an attempted installation with the
-d
and-v
flags passed toport
might also help.