24小时热门版块排行榜    

查看: 3165  |  回复: 9

hjun79

木虫 (小有名气)

[求助] GROMACS安装时总是出现configure: error: Unknown FFT library,请问是什么原因

我首先安装了安装cygwin没问题。然后又安装fftw-3.3.1
步骤如下./configure --enable-float --enable-threads --enable-sse --prefix=/home/administrator/fftw-3.3.1
然后make和make install,接着设置  
export CPPFLAGS=-I/home/administrator/fftw-3.3.1/
include
export LDFLAGS=-L/home/administrator/fftw-3.3.1/
/lib
运行后也没问题
但安装gromacs-4.5.5
./configure --with-fft=fftw-3.3.1 --prefix=/home/administrator/gromacs-4.5.5
运行到最后总是提示configure: error: Unknown FFT library
运行make时
Administrator@RYKUP8XHWIYQHN5 /home/gromacs-4.5.5
$ make
make: *** 没有指明目标并且找不到 makefile。 停止。
请问专家该怎么办?

整个运行过程如下
$ ./configure --with-fft=fftw-3.3.1 --prefix=/home/administrator/gromacs-4.5.5
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for cc... cc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking dependency style of cc... gcc3
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether ln -s works... yes
checking whether cc accepts -O3... yes
checking whether cc accepts -msse2... yes
checking whether cc accepts -funroll-all-loops... yes
checking whether cc accepts -std=gnu99... yes
checking whether cc accepts -fexcess-precision=fast... yes
checking whether cc accepts  -O3 -fomit-frame-pointer -finline-functions -Wall -Wno-unused -msse2 -funroll-all-loops -std=gnu99 -fexcess-precision=fast... yes
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 for unistd.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for sysconf... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... cc
checking if atomic operations are supported... yes
checking if pthread_setaffinity_np is available... no
checking whether byte ordering is bigendian... no
checking that size_t can hold pointers... yes
checking for SIGUSR1... yes
checking for pipes... yes
checking floating-point format... IEEE754 (little-endian byte and word order)
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by cc ... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking for as... as
checking for objdump... objdump
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 8192
checking command to parse /usr/bin/nm -B output from cc  object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc  supports -fno-rtti -fno-exceptions... no
checking for cc  option to produce PIC...
checking if cc  static flag -static works... yes
checking if cc  supports -c -o file.o... yes
checking whether the cc  linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking whether a program can dlopen itself... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking for g++ option to produce PIC...
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for sqrt in -lm... yes
configure: error: Unknown FFT library
Administrator@RYKUP8XHWIYQHN5 /home/gromacs-4.5.5
$ make
make: *** 没有指明目标并且找不到 makefile。 停止。
回复此楼

» 本帖已获得的红花(最新10朵)

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
回帖置顶 ( 共有1个 )

jawang

木虫 (正式写手)

★ ★ ★
jiaoyixiong: 金币+3, 鼓励交流 2012-03-29 08:46:33
hjun79: 回帖置顶 2012-03-29 21:22:39
你的错误是没有正确识别fftw库
如果你用的是bash的话,在运行这个命令之前运行下面两个命令
export CPPFLAGS=-I/home/software/fftw-3.2.2/include
export LDFLAGS=-L/home/software/fftw-3.2.2/lib
将其中路径改成你安装的fftw所在的位置就好了

» 本帖已获得的红花(最新10朵)

6楼2012-03-29 08:44:26
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通回帖

andylau286

铁虫 (小有名气)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
jiaoyixiong: 金币+3, 鼓励交流 2012-03-27 09:43:56
hjun79: 金币+5, 有帮助 2012-03-27 12:31:21
在安装Gromacs时,./configure 阶段,怎么你没有 --enable-shared 选项,这个应该是共享 library 的选项吧
希望在这个平台学到新东西的同时交到更多好朋友
2楼2012-03-27 09:27:48
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

andylau286

铁虫 (小有名气)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
jiaoyixiong: 金币+3, 鼓励交流 2012-03-27 09:44:13
hjun79: 金币+15, 有帮助, 5 2012-03-27 12:31:27
FFTW安装阶段,也有一个--enable-shared 选项,得加上吧
希望在这个平台学到新东西的同时交到更多好朋友
3楼2012-03-27 09:37:43
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hjun79

木虫 (小有名气)

送鲜花一朵
请问程序是这样写吗
./configure --with-fft=fftw-3.3.1 --prefix=/home/administrator/gromacs-4.5.5 --enable-shared
4楼2012-03-27 12:33:18
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

andylau286

铁虫 (小有名气)

★ ★
zh1987hs: 金币+2, 谢谢 2012-03-29 22:24:47
http://www.gromacs.org/Downloads ... tructions#Using_MPI   。这个是Gromacs网站的一个安装说明,耐心的把它读完,安装应该没有问题的,我的就是按这个安装的。
希望在这个平台学到新东西的同时交到更多好朋友
5楼2012-03-27 13:12:21
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hjun79

木虫 (小有名气)

送鲜花一朵
引用回帖:
6楼: Originally posted by jawang at 2012-03-29 08:44:26:
你的错误是没有正确识别fftw库
如果你用的是bash的话,在运行这个命令之前运行下面两个命令
export CPPFLAGS=-I/home/software/fftw-3.2.2/include
export LDFLAGS=-L/home/software/fftw-3.2.2/lib
将其中路 ...

我现在安装时又遇到这个问题:
For fftw, I use the following configure,
cd fftw-3.3.1
./configure --enable-float --enable-sse --enable-shared --prefix=/home/administrator/fftw
make
make install
没出现错误信息
For gromacs, I use the following configure,
cd ..
cd gromacs-4.5.5
$ ./configure --prefix=/home/administrator/gromacs --disable-threads --enable-shared --without-xml LDFLAGS='-L/home/administrator/fftw/lib/' CPPFLAGS='-I/home/administrator/fftw/include/'
make
the error is following:
/bin/sh ../../../libtool --tag=CC    --mode=compile cc -DHAVE_CONFIG_H -I. -I../../../src -I/usr/include/libxml2  -I../../../include -I/home/administrator/fftw/include/  -O3 -fomit-frame-pointer -finline-functions -Wall -Wno-unused -msse2 -funroll-all-loops -std=gnu99 -fexcess-precision=fast -MT dorg2r.lo -MD -MP -MF .deps/dorg2r.Tpo -c -o dorg2r.lo dorg2r.c
Makefile:529: recipe for target `dorg2r.lo' failed
make[4]: *** [dorg2r.lo] Interrupt
Makefile:599: recipe for target `all-recursive' failed
make[3]: *** [all-recursive] Interrupt
Makefile:302: recipe for target `all-recursive' failed
make[2]: *** [all-recursive] Interrupt
Makefile:238: recipe for target `all' failed
make[1]: *** [all] Interrupt
Makefile:347: recipe for target `all-recursive' failed
make: *** [all-recursive] Interrupt

make install
又出现这样的问题:
collect2: ld returned 1 exit status
Makefile:459: recipe for target `libgmxpreprocess.la' failed
make[2]: *** [libgmxpreprocess.la] Error 1
make[2]: 离开目录“/home/Administrator/gromacs-4.5.5/src/kernel”
Makefile:302: recipe for target `install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: 离开目录“/home/Administrator/gromacs-4.5.5/src”
Makefile:347: recipe for target `install-recursive' failed
make: *** [install-recursive] Error 1
查看/home/Administrator/gromacs/bin文件夹中只有两个文件
cyggmx-6.dll和cyggmx-6.dll
请教高手这是什么原因
我用的是windows 7,处理器是4核的
7楼2012-03-29 21:22:15
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hjun79

木虫 (小有名气)

引用回帖:
7楼: Originally posted by hjun79 at 2012-03-29 21:22:15:
我现在安装时又遇到这个问题:
For fftw, I use the following configure,
cd fftw-3.3.1
./configure --enable-float --enable-sse --enable-shared --prefix=/home/administrator/fftw
make
make install ...

自己顶一下,呵呵
8楼2012-03-30 08:38:08
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

andylau286

铁虫 (小有名气)

引用回帖:
7楼: Originally posted by hjun79 at 2012-03-29 21:22:15:
我现在安装时又遇到这个问题:
For fftw, I use the following configure,
cd fftw-3.3.1
./configure --enable-float --enable-sse --enable-shared --prefix=/home/administrator/fftw
make
make install ...

我是在Linux系统下安装的,不是Windows系统。。。
希望在这个平台学到新东西的同时交到更多好朋友
9楼2012-03-30 16:21:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dubo

金虫 (著名写手)

优秀版主

fftw的路径没有写到环境变量中!
10楼2012-04-02 18:54:46
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 hjun79 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 085600材料与化工 求调剂 +12 enenenhui 2026-03-13 13/650 2026-03-16 08:30 by Linda Hu
[考研] 化学工程321分求调剂 +6 大米饭! 2026-03-15 6/300 2026-03-16 07:58 by wang_dand
[文学芳草园] 伙伴们,祝我生日快乐吧 +15 myrtle 2026-03-10 24/1200 2026-03-15 21:16 by 苏州_逗号
[考研] 0703化学调剂,求各位老师收留 +7 秋有木北 2026-03-14 7/350 2026-03-15 17:30 by 小物理化学
[考研] 211本,11408一志愿中科院277分,曾在中科院自动化所实习 +3 Losir 2026-03-12 3/150 2026-03-14 12:11 by 热情沙漠
[考研] 332分材料工程调剂 +3 莓好时光海苔 2026-03-09 3/150 2026-03-14 02:03 by JourneyLucky
[考研] 341求调剂 +4 番茄头--- 2026-03-10 4/200 2026-03-13 23:12 by JourneyLucky
[考研] 泣血叩求调剂恩,愿以丹心报师恩 +6 Iuruoh 2026-03-11 6/300 2026-03-13 22:06 by JourneyLucky
[考研] 0703化学一志愿211 总分320求调剂 +5 玛卡巴卡啊哈 2026-03-11 5/250 2026-03-13 21:40 by JourneyLucky
[考研] 333求调剂 +3 球球古力 2026-03-11 3/150 2026-03-13 21:27 by JourneyLucky
[考研] 求b区学校调剂 +3 周56 2026-03-11 3/150 2026-03-13 16:20 by JourneyLucky
[考研] 考研调剂 +4 芬达46 2026-03-12 4/200 2026-03-13 16:04 by ruiyingmiao
[考研] 295求调剂 +3 小匕仔汁 2026-03-12 3/150 2026-03-13 15:17 by vgtyfty
[考研] 土木第一志愿276求调剂,科研和技能十分丰富,求新兴方向的导师收留 +3 土木小天才 2026-03-12 3/150 2026-03-13 15:01 by JourneyLucky
[考研] 材料调剂,307分 +13 张泳铭1 2026-03-09 17/850 2026-03-13 11:09 by 薛云鹏
[考研] 070303一志愿西北大学学硕310找调剂 +3 d如愿上岸 2026-03-12 5/250 2026-03-13 10:56 by houyaoxu
[考博] 26读博 +4 Rui135246 2026-03-12 10/500 2026-03-13 07:15 by gaobiao
[考研] 一志愿江南大学085701环境工程专硕总分287求调剂 +5 18266118446 2026-03-09 5/250 2026-03-11 16:51 by 2020015
[考研] 293求调剂,一志愿陕师大生物学 +3 ??????.?.??? 2026-03-09 3/150 2026-03-11 10:02 by 学员8dgXkO
[考研] 294 英二数二物化 求调剂 +6 米饭团不好吃 2026-03-09 6/300 2026-03-09 23:55 by barlinike
信息提示
请填处理意见