| 查看: 4589 | 回復(fù): 10 | ||
bbemajj828銅蟲 (初入文壇)
|
[求助]
lammps并行版安裝問(wèn)題!cannot find -lfftw是個(gè)什么鬼?求教大神... 我快要哭死了... 已有4人參與
|
|
|
昨天和今天折騰了兩天,試著安裝lammps的并行版,按照網(wǎng)上的好幾個(gè)教程都走了一遍,每次都是到最后一步make g++的時(shí)候出問(wèn)題。請(qǐng)教大神,這個(gè)問(wèn)題該怎么弄? /usr/bin/ld: cannot find -lfftw collect2: error: ld returned 1 exit status make[1]: *** [../lmp_g++] Error 1 make[1]: Leaving directory `/mnt/lammps-30Sep13/src/Obj_g++' make: *** [g++] Error 2 |
銅蟲 (小有名氣)
|
1. 安裝fftw3: (1) 去fftw官網(wǎng)下載最新的tarball (e.g. fftw-3.3.8.tar.gz) (2) 解壓fftw的tarball (e.g. sudo tar -xzvf fftw-3.3.8.tar.gz) (3) 進(jìn)入已解壓后的文件夾進(jìn)行配置: "./configure --prefix=XXX --enable-float --enable-mpi --enable-shared=yes", 其中的XXX就是你想要安裝fftw3的路徑,我沒(méi)有選擇默認(rèn)的路徑,而是先在/home/<我的用戶名>/下創(chuàng)建了一個(gè)mysoft的文件夾,在mysoft里面又創(chuàng)建了一個(gè)fftw3的文件夾,所以我的配置是"./configure --prefix=/home/<我的用戶名>/mysoft/fftw3 --enable-float --enable-mpi --enable-shared=yes" (4) sudo make -j 8 (5) sudo make install (6) 進(jìn)入/home/<我的用戶名>/mysoft/fftw3中查看是不是產(chǎn)生了bin include lib share文件夾 2. 安裝OpenMPI: (1) 去OpenMPI官網(wǎng)下載最新的tarball (e.g. openmpi-3.1.2.tar.gz) (2) 解壓OpenMPI的tarball (e.g. sudo tar -xzvf openmpi-3.1.2.tar.gz) (3) 進(jìn)入已解壓后的文件夾進(jìn)行配置: "./configure --prefix=/home/<我的用戶名>/mysoft/openmpi", 跟剛才一樣,先在mysoft中創(chuàng)建好openmpi文件夾 (4) sudo make -j 8 (5) sudo make install (6) 進(jìn)入/home/<我的用戶名>/mysoft/openmpi中查看是不是產(chǎn)生了bin include lib文件夾 3. 安裝lammps: (1) 用git下載lammps: sudo git clone -b stable https://github.com/lammps/lammps.git /home/<我的用戶名>/mysoft/lammps (2) 進(jìn)入lammps/src中,sudo make package-status,sudo make yes-<package name> (3) 進(jìn)入lammps/src/STUBS中,sudo make (4) 從/src/MAKE/MACHINES中拷貝Makefile.ubuntu: sudo cp /home/<我的用戶名>/mysoft/lammps/src/MAKE/MACHINES/Makefile.ubuntu /home/<我的用戶名>/mysoft/lammps/src/MAKE/ (5) 修改MAKE文件: sudo vim /home/<我的用戶名>/mysoft/lammps/src/MAKE/Makefile.ubuntu,對(duì)照下面內(nèi)容進(jìn)行更改, "FFT_INC = -DFFT_FFTW3 -I/home/<我的用戶名>/mysoft/fftw3/include " "FFT_PATH = -L/home/<我的用戶名>/mysoft/fftw3/lib " "FFT_LIB = -lfftw3 " "MPI_INC = -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX=1 -I/home/<我的用戶名>/mysoft/openmpi/include" "MPI_PATH = -L/home/<我的用戶名>/mysoft/openmpi/lib" "MPI_LIB = -lmpi -lmpi_cxx" (6) 回到lammps/src文件夾中,sudo make -j8 ubuntu |

金蟲 (小有名氣)
銅蟲 (初入文壇)
銅蟲 (初入文壇)
木蟲 (正式寫手)
鐵桿木蟲 (著名寫手)
|
您好,在這篇介紹安裝lammps 2018版lammps安裝教程(小白專用) http://www.gaoyang168.com/bbs/viewthread.php?tid=12313102&target=1 這里面直接在usr/local安裝fftw和mpich,結(jié)果按照這篇帖子里面寫的內(nèi)容 /lammps/src/MAKE/MACHINES文件下將Makefile.ubuntu剪切到/lammps/src/MAKE文件夾下 sudo make ubuntu j4 編譯失敗 /usr/bin/x86_64-linux-gnu-ld: cannot find -lfftw3 collect2: error: ld returned 1 exit status Makefile:93: recipe for target '../lmp_ubuntu' failed make[1]: *** [../lmp_ubuntu] Error 1 make[1]: Leaving directory '/home/xxx/lammps/src/Obj_ubuntu' Makefile:175: recipe for target 'ubuntu' failed make: *** [ubuntu] Error 2 怎么辦??是修改路徑么? ![]() |

鐵桿木蟲 (著名寫手)
|
您好,按照您的方法執(zhí)行到最后一步報(bào)錯(cuò) ![]() ~/mysoft/lammps/src$ sudo make ubuntu -j8 make[1]: Entering directory '/home/bit538/mysoft/lammps/src' make[1]: 'lmpinstalledpkgs.h' is up to date. make[1]: Leaving directory '/home/bit538/mysoft/lammps/src' Compiling LAMMPS for machine ubuntu make[1]: Entering directory '/home/bit538/mysoft/lammps/src/Obj_ubuntu' ../../lib/quip/Makefile.lammps:17: *** Environment or make variable QUIP_ROOT must be set.. Stop. make[1]: Leaving directory '/home/bit538/mysoft/lammps/src/Obj_ubuntu' make[1]: Entering directory '/home/bit538/mysoft/lammps/src/Obj_ubuntu' ../../lib/quip/Makefile.lammps:17: *** Environment or make variable QUIP_ROOT must be set.. Stop. make[1]: Leaving directory '/home/bit538/mysoft/lammps/src/Obj_ubuntu' Makefile:175: recipe for target 'ubuntu' failed make: *** [ubuntu] Error 2 ![]() |


| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿華中農(nóng)業(yè)071010,總分320求調(diào)劑 +3 | 困困困困坤坤 2026-03-20 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 材料學(xué)求調(diào)劑 +4 | Stella_Yao 2026-03-20 | 4/200 |
|
|
[考研] 一志愿吉林大學(xué)材料學(xué)碩321求調(diào)劑 +11 | Ymlll 2026-03-18 | 15/750 |
|
|
[考研] 求調(diào)劑 +3 | @taotao 2026-03-20 | 3/150 |
|
|
[考研] 299求調(diào)劑 +3 | shxchem 2026-03-20 | 4/200 |
|
|
[考研] 281求調(diào)劑(0805) +14 | 煙汐憶海 2026-03-16 | 25/1250 |
|
|
[考研] 招收調(diào)劑碩士 +4 | lidianxing 2026-03-19 | 12/600 |
|
|
[考研] 生物學(xué)調(diào)劑招人。。 +3 | 山海天嵐 2026-03-17 | 4/200 |
|
|
[考研] 286求調(diào)劑 +6 | lemonzzn 2026-03-16 | 10/500 |
|
|
[考研] 【同濟(jì)軟件】軟件(085405)考研求調(diào)劑 +3 | 2026eternal 2026-03-18 | 3/150 |
|
|
[考研] 收復(fù)試調(diào)劑生 +4 | 雨后秋荷 2026-03-18 | 4/200 |
|
|
[考研] 070300化學(xué)319求調(diào)劑 +6 | 錦鯉0909 2026-03-17 | 6/300 |
|
|
[考研] 304求調(diào)劑 +12 | 小熊joy 2026-03-14 | 13/650 |
|
|
[考研] 268求調(diào)劑 +6 | 簡(jiǎn)單點(diǎn)0 2026-03-17 | 6/300 |
|
|
[考博] 26申博 +4 | 八6八68 2026-03-16 | 4/200 |
|
|
[考研] 302求調(diào)劑 +4 | 小賈同學(xué)123 2026-03-15 | 8/400 |
|
|
[論文投稿] 有沒(méi)有大佬發(fā)小論文能帶我個(gè)二作 +3 | 增銳漏人 2026-03-17 | 4/200 |
|
|
[考研] 東南大學(xué)364求調(diào)劑 +5 | JasonYuiui 2026-03-15 | 5/250 |
|
|
[考研] 080500,材料學(xué)碩302分求調(diào)劑學(xué)校 +4 | 初識(shí)可樂(lè) 2026-03-14 | 5/250 |
|
|
[考研] 297求調(diào)劑 +4 | 學(xué)海漂泊 2026-03-13 | 4/200 |
|