| 7 | 1/1 | 返回列表 |
| 查看: 2001 | 回復(fù): 6 | ||
yangfan0818金蟲 (小有名氣)
|
[求助]
NWchem編譯出錯(cuò)
|
|
最近要用到nwchem,所以下了6.1進(jìn)行編譯,按照coolrainbow的腳本進(jìn)行的編譯,但是一直不成功,報(bào)錯(cuò),于是就不用mpi編譯,直接安裝nwchem試一試,但是還是報(bào)錯(cuò)這是我編譯的過程, cd src/ setenv USE_MPI n setenv USE_MPIF n setenv USE_MPIF4 n setenv NWCHEM_MODULES "all python" setenv CC gcc echo $CC setenv FC gfortran echo $FC setenv PYTHONHOME /export/software/local/python1.5.1 setenv PYTHONVERSION 1.5 setenv USE_PYTHON64 n echo $PYTHONVERSION make nwchem_config make -j 8 在make nwchem_config的時(shí)候,出現(xiàn)了這樣的情況,make -C config -f make_nwchem_config NWCHEM_MODULES="all python" echo \# This configuration generated automatically on \ `hostname` at `date` > nwchem_config.h echo \# This configuration generated automatically on \ `hostname` at `date` > NWCHEM_CONFIG echo "# Request modules from user: all python" >> nwchem_config.h echo "NW_MODULE_SUBDIRS = NWints atomscf ddscf gradients moints nwdft rimp2 stepper driver optim cphf ccsd vib mcscf prepar esp hessian selci dplot mp2_grad qhop property nwpw fft python analyz nwmd cafe space drdy vscf qmmm qmd etrans tce bq cons perfm dntmc dangchang ccca" >> nwchem_config.h echo "NW_MODULE_LIBS = -lccsd -lmcscf -lselci -lmp2 -lmoints -lstepper -ldriver -loptim -lnwdft -lgradients -lcphf -lesp -lddscf -ldangchang -lguess -lhessian -lvib -lnwcutil -lrimp2 -lproperty -lnwints -lprepar -lnwmd -lnwpw -lofpw -lpaw -lpspw -lband -lnwpwlib -lcafe -lspace -lanalyze -lqhop -lpfft -ldplot -lnwpython -ldrdy -lvscf -lqmmm -lqmd -letrans -lpspw -ltce -lbq -lcons -lperfm -ldntmc -lccca" >> nwchem_config.h echo "EXCLUDED_SUBDIRS = develop scfaux plane_wave oimp2 rimp2_grad argos diana uccsdt rism geninterface transport smd nbo leps" >> nwchem_config.h echo "CONFIG_LIBS = " >> nwchem_config.h cp census.skeleton ../stubs.F for routine in argos argos_input crossing debtest dia_input diana gasdev geninterface jantest jvltest jvltest2 kgdtest leps_energy leps_gradient mc_data mc_driver mc_init mc_main md_data md_driver md_set moints_screen mymc_input mymd_input nbo_input oimp2 player plnwv plnwv_input raktest rimp2g rism_input rjhtest smd_input task_fragment_energy task_nbo task_rism task_smd task_smd_dynamics task_smd_energy task_smd_fragment transp_input transport uccsdt uccsdtest urand; do \ sed s/STUBROUTINE/$routine/g stub.skeleton >> ../stubs.F ; \ done echo "# Request modules from user: all python" >> NWCHEM_CONFIG echo The following subdirectories are built: >> NWCHEM_CONFIG echo NWints analyz atomscf bq cafe ccca ccsd cons cphf dangchang ddscf dntmc dplot drdy driver esp etrans fft gradients hessian mcscf moints mp2_grad nwdft nwmd nwpw optim perfm prepar property python qhop qmd qmmm rimp2 selci space stepper symmetry tce vib vscf >> NWCHEM_CONFIG echo corresponding to these libraries: >> NWCHEM_CONFIG echo -lnwints -lanalyze -lguess -lbq -lcafe -lccca -lccsd -lcons -lcphf -ldangchang -lddscf -ldntmc -ldplot -ldrdy -ldriver -lesp -letrans -lpfft -lgradients -lhessian -lmcscf -lmoints -lmp2 -lnwdft -lnwmd -lnwpw -lofpw -lpaw -lpspw -lband -lnwpwlib -loptim -lperfm -lprepar -lproperty -lnwpython -lqhop -lqmd -lqmmm -lrimp2 -lselci -lspace -lstepper -lnwcutil -ltce -lvib -lvscf >> NWCHEM_CONFIG echo >> NWCHEM_CONFIG echo The following directories are excluded from the build: >> NWCHEM_CONFIG echo develop scfaux plane_wave oimp2 rimp2_grad argos diana uccsdt rism geninterface transport smd nbo leps >> NWCHEM_CONFIG echo and these routines will be replaced by stubs: >> NWCHEM_CONFIG echo argos argos_input crossing debtest dia_input diana gasdev geninterface jantest jvltest jvltest2 kgdtest leps_energy leps_gradient mc_data mc_driver mc_init mc_main md_data md_driver md_set moints_screen mymc_input mymd_input nbo_input oimp2 player plnwv plnwv_input raktest rimp2g rism_input rjhtest smd_input task_fragment_energy task_nbo task_rism task_smd task_smd_dynamics task_smd_energy task_smd_fragment transp_input transport uccsdt uccsdtest urand >> NWCHEM_CONFIG echo "No extra configuration libraries were added " >> NWCHEM_CONFIG |
金蟲 (小有名氣)
|
make的時(shí)候出現(xiàn)報(bào)錯(cuò) test \! -f 64_to_32 -o \! -f 32_to_64 || rm -f 64_to_32 32_to_64 test -d /export/software/nwchem-6.1.1-src/lib/LINUX64 || mkdir -p /export/software/nwchem-6.1.1-src/lib/LINUX64 test -d /export/software/nwchem-6.1.1-src/bin/LINUX64 || mkdir -p /export/software/nwchem-6.1.1-src/bin/LINUX64 Making libraries in tools make[1]: warning: -jN forced in submake: disabling jobserver mode. *** Configuring Parallel Tools **** ../ga-5-1/configure --prefix=/export/software/nwchem-6.1.1-src/src/tools/install --with-tcgmsg --with-mpi=-lmpi --enable-peigs --enable-underscoring --disable-mpi-tests --without-scalapack --without-lapack --without-blas CC=gcc F77=gfortran checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for TARGET base (64bit-ness checked later)... LINUX checking whether we think this system is what we call SYSV... yes checking whether we are cross compiling... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no configure: Detected VPATH build configure: configure: C compiler configure: checking for style of include used by make... GNU checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for C compiler vendor... gnu checking whether a simple C MPI program compiles... no configure: error: in `/export/software/nwchem-6.1.1-src/src/tools/build': configure: error: could not compile simple C MPI program See `config.log' for more details make[1]: *** [build/config.status] 錯(cuò)誤 1 make: *** [libraries] 錯(cuò)誤 1 這是怎么回事? |
金蟲 (小有名氣)
金蟲 (小有名氣)
|
configure: error: could not compile simple C MPI program 我在bash下編譯NWchem也遇到過這個(gè)問題,我的解決方案是在MPI_LIB及MPI_INCLUDE的路徑后面加上64,這估計(jì)是與NWCHEM_TARGET=LINUX64相應(yīng),現(xiàn)附上腳本,希望能有所幫助 (編譯過程中參閱了http://gfeng.blog.sohu.com/220788147.html提供的腳本) ################################# #!/bin/bash export NWCHEM_TOP=/home/ghzheng/NWchem-6.1.1 export NWCHEM_TARGET=LINUX64 export USE_MPI=y export MPI_LOC=/home/ghzheng/intel/impi/3.2.0.011 export MPI_LIB=$MPI_LOC/lib64 export MPI_INCLUDE=$MPI_LOC/include64 export LIBMPI="-lpthread -L$MPI_LIB -lmpi_f90 -lmpi_f77 -lmpi -lfmpich -lmpich " export NWCHEM_MODULES=all export LARGE_FILES=TRUE export USE_NOFSCHECK=TRUE export LIB_DEFINES=-DDFLT_TOT_MEM=16777216 export MKLROOT=//home/ghzheng/intel/Compiler/11.1/072/mkl export BLASOPT="-Wl,--start-group $MKLROOT/lib/intel64/libmkl_intel_ilp64.a $MKLROOT/lib/intel64/libmkl_sequential.a $MKLROOT/lib/intel64/libmkl_core.a -Wl,--end-group -lpthread -lm" export FC=/home/ghzheng/intel/Compiler/11.1/072/bin/intel64/ifort export CC=/home/ghzheng/intel/Compiler/11.1/072/bin/intel64/icc cd $NWCHEM_TOP/src pwd echo "make nwchem_config" make nwchem_config echo "make FC=$FC CC=$CC" make FC=$FC CC=$CC |


新蟲 (初入文壇)
|
樓主的庫可能能有添加 我安裝的是nwchem-6.1.1 運(yùn)行良好 使用的mpi為mpich2 系統(tǒng)為redhat 5.5 企業(yè)版 設(shè)置的環(huán)境變量為 ## Nwchem setup export NWCHEM_TOP="/home/accelrys/nwchem-6.1.1" export NWCHEM_TARGET=LINUX64 export USE_MPI=y export USE_MPIF=y export USE_MPIF4=y export LIBMPI="-lmpich -lopa -lmpl -lrt -lpthread" export MPI_LIB=/opt/mpich2/lib export MPI_INCLUDE=/opt/mpich2/include export NWCHEM_MODULES="all python" export LARGE_FILES=TRUE export USE_NOFSCHECK=TRUE export NWCHEM_MODULES=all 希望能幫到樓主 |
| 7 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 070300化學(xué)求調(diào)劑 +7 | 起個(gè)名咋這么難 2026-03-27 | 8/400 |
|
|---|---|---|---|---|
|
[考研] 266分,一志愿電氣工程,本科材料,求材料專業(yè)調(diào)劑 +7 | 哇呼哼呼哼 2026-04-02 | 7/350 |
|
|
[考研] 調(diào)劑求助 +7 | 想換手機(jī)不想解?/a> 2026-04-02 | 7/350 |
|
|
[考研] 264分,求任意工科調(diào)劑 +4 | zzlqwq 2026-03-29 | 5/250 |
|
|
[考博] 材料工程專業(yè)碩士申博 +3 | 麟正宇 2026-03-30 | 3/150 |
|
|
[考研] 348求調(diào)劑 +6 | 吳彥祖24k 2026-04-02 | 6/300 |
|
|
[考研] 270求調(diào)劑 +8 | 小杰pp 2026-03-31 | 10/500 |
|
|
[考研] 生醫(yī)工0831調(diào)劑求推薦 +5 | 小熊睿睿_s 2026-03-27 | 7/350 |
|
|
[考研] 【求調(diào)劑】新能源材料本科,一志愿211,初試321 +6 | 求調(diào)劑學(xué)校, 2026-04-02 | 6/300 |
|
|
[考研] 材料求調(diào)劑 +8 | 呢呢妮妮 2026-04-01 | 8/400 |
|
|
[考研] 材料調(diào)劑 +12 | 一樣YWY 2026-04-01 | 12/600 |
|
|
[考研] 304求調(diào)劑 +12 | 素年祭語 2026-03-31 | 15/750 |
|
|
[考研] 286求調(diào)劑 +5 | lim0922 2026-03-26 | 5/250 |
|
|
[考研] 0710生物學(xué)考研調(diào)劑 +3 | 李多米lee. 2026-03-27 | 4/200 |
|
|
[考研] 材料調(diào)劑 +11 | 一樣YWY 2026-03-31 | 11/550 |
|
|
[考研] 086000生物與醫(yī)藥298調(diào)劑求助 +4 | 元元青青 2026-03-31 | 6/300 |
|
|
[考研] 085601英二數(shù)二求調(diào)劑 總分325 +4 | 余航航 2026-03-31 | 4/200 |
|
|
[考研] 一志愿中海洋320化學(xué)工程與技術(shù)學(xué)碩求調(diào)劑 +8 | 披星河 2026-03-30 | 8/400 |
|
|
[考研] 322求調(diào)劑 +10 | 宋明欣 2026-03-27 | 10/500 |
|
|
[考研] 283求調(diào)劑(080500) +14 | A child 2026-03-27 | 14/700 |
|