سؤال

أحاول التثبيت PESC مع macports. هدفي النهائي هو التثبيت libmesh على جهاز Mac الخاص بي. عندما أحاول تثبيت PetSC فشلها أثناء التكوين. أحتاج إلى تثبيت PetSC قبل أي محاولة لتثبيت libmesh.

هنا جزء الخطأ من السجل.

: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 أحدث إصدار.

الرجاء المساعدة.

هل كانت مفيدة؟

المحلول

قد تنفجر ضد علة #237223; ؛ مضيفا -lstdc++ إلى LDFLAGS قد يساعد ، في هذه الحالة. أيضا ، تأكد من أن لديك عمل gfortran في طريقك. النظر في تقديم خطأ ضد الميناء في Macports ، كذلك.

سوف يساعد ملف السجل المذكور في السطر الأخير في تشخيص ذلك ، وكذلك بعض السياق من ملف Python الذي يقوم باختبار الاختبار. الإخراج من محاولة التثبيت مع -d و -v مرت أعلام إلى port قد تساعد أيضا.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top