24小时热门版块排行榜    

Znn3bq.jpeg
查看: 2146  |  回复: 12
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

yjhqdm

金虫 (小有名气)

[求助] 安装fftw时bin文件不见了,求助

只要提出有帮助意见我就散金了。。
我在安装fftw时,先安装了fftw3,方法如下:
$ cd /usr/local/src
$ sudo tar xzvf ~/Downloads/fftw-3.3.3.tar.gz
$ cd fftw-3.3.3
$ sudo ./configure --prefix=/usr/local/fftw3 --enable-float
$ sudo make
$ sudo make install
后来发现fftw3有些问题,就有按照上述方法安装了fftw2.1.5
安装fftw2
$ cd /usr/local/src
$ sudo tar xzvf ~/Downloads/fftw-2.1.5.tar.gz
$ cd fftw-2.1.5
$ sudo ./configure --prefix=/usr/local/fftw2 --enable-float
$ sudo make
$ sudo make install
但是装完后,发现在/usr/local/fftw3/里面有bin
但是在/usr/local/fftw2/下面没有bin
然后参考网上方法,删除了fftw2、fftw3文件夹,重新安装了fftw2,还是没有bin
求助啊!怎么回事~~
新手装lammps第一步就出问题。。。。
回复此楼

» 猜你喜欢

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

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yjhqdm

金虫 (小有名气)

引用回帖:
9楼: Originally posted by qphll at 2013-05-03 00:39:54
因为你前面自定义了FFTW的安装路径,所以肯定就不能在系统的库文件夹/usr/lib找到FFTW对应的lib文件,比如你这里提到的libfftw.so

有两个解决办法:

(1) 像你对mpi的操作那样,在你的.bashrc文件里面加入其他 ...

.bashrc 最后面加入:
export PATH=/usr/local/openmpi/bin:$PATH  # 将新路径添加到现有的$PATH中
然后
$ mpic++  -Wall cnt_correlation_t200.cpp  -L/usr/local/fftw2/lib -lfftw  -llmp_gentoo  -o  myCode
反馈如下:
cnt_correlation_t200.cpp: 在函数‘int main(int, char**)’中:
cnt_correlation_t200.cpp:258:52: 警告: 格式字符串尾有可疑的‘%’ [-Wformat]
cnt_correlation_t200.cpp:266:52: 警告: 格式字符串尾有可疑的‘%’ [-Wformat]
cnt_correlation_t200.cpp:274:52: 警告: 格式字符串尾有可疑的‘%’ [-Wformat]
cnt_correlation_t200.cpp:282:52: 警告: 格式字符串尾有可疑的‘%’ [-Wformat]
cnt_correlation_t200.cpp:290:52: 警告: 格式字符串尾有可疑的‘%’ [-Wformat]
cnt_correlation_t200.cpp:130:18: 警告: 未使用的变量‘n’ [-Wunused-variable]
/lib/../lib/liblmp_gentoo.a(fft3d.o): In function `fft_1d_only(fftw_complex*, int, int, fft_plan_3d*)':
fft3d.cpp:(.text+0x215): undefined reference to `fftw'
fft3d.cpp:(.text+0x25c): undefined reference to `fftw'
fft3d.cpp:(.text+0x2a5): undefined reference to `fftw'
fft3d.cpp:(.text+0x4f4): undefined reference to `fftw'
fft3d.cpp:(.text+0x53b): undefined reference to `fftw'
/lib/../lib/liblmp_gentoo.a(fft3d.o):fft3d.cpp:(.text+0x584): more undefined references to `fftw' follow
/lib/../lib/liblmp_gentoo.a(fft3d.o): In function `fft_3d_destroy_plan(fft_plan_3d*)':
fft3d.cpp:(.text+0x836): undefined reference to `fftw_destroy_plan'
fft3d.cpp:(.text+0x841): undefined reference to `fftw_destroy_plan'
fft3d.cpp:(.text+0x853): undefined reference to `fftw_destroy_plan'
fft3d.cpp:(.text+0x85e): undefined reference to `fftw_destroy_plan'
fft3d.cpp:(.text+0x869): undefined reference to `fftw_destroy_plan'
/lib/../lib/liblmp_gentoo.a(fft3d.o):fft3d.cpp:(.text+0x874): more undefined references to `fftw_destroy_plan' follow
/lib/../lib/liblmp_gentoo.a(fft3d.o): In function `fft_3d(fftw_complex*, fftw_complex*, int, fft_plan_3d*)':
fft3d.cpp:(.text+0x916): undefined reference to `fftw'
fft3d.cpp:(.text+0x98b): undefined reference to `fftw'
fft3d.cpp:(.text+0xa00): undefined reference to `fftw'
fft3d.cpp:(.text+0xc62): undefined reference to `fftw'
fft3d.cpp:(.text+0xcaa): undefined reference to `fftw'
/lib/../lib/liblmp_gentoo.a(fft3d.o):fft3d.cpp:(.text+0xcf2): more undefined references to `fftw' follow
/lib/../lib/liblmp_gentoo.a(fft3d.o): In function `fft_3d_create_plan(ompi_communicator_t*, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int*)':
fft3d.cpp:(.text+0x1540): undefined reference to `fftw_create_plan'
fft3d.cpp:(.text+0x1561): undefined reference to `fftw_create_plan'
fft3d.cpp:(.text+0x15b3): undefined reference to `fftw_create_plan'
fft3d.cpp:(.text+0x15d4): undefined reference to `fftw_create_plan'
fft3d.cpp:(.text+0x1707): undefined reference to `fftw_create_plan'
/lib/../lib/liblmp_gentoo.a(fft3d.o):fft3d.cpp:(.text+0x1728): more undefined references to `fftw_create_plan' follow
collect2: ld 返回 1

这个问题是不是你谁的lmp_gentoo的问题还是fftw的问题?
10楼2013-05-03 14:26:06
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 13 个回答

Bessel

木虫 (正式写手)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
yjhqdm: 金币+10, 有帮助, 希望在支持~帮忙一下 2013-04-29 20:09:39
zh1987hs: 金币+3, 谢谢 2013-04-30 11:05:01
这个装好之后是库文件, 应该在lib文件里面,

~/usr/include/fftw3.h
~/usr/include/fftw3.f
~/usr/lib/libfftw3.a
~/usr/lib/libfftw3.la
~/usr/lib/libfftw3.so

看看这个链接吧

http://micro.stanford.edu/wiki/Install_FFTW3
2楼2013-04-29 00:44:11
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yjhqdm

金虫 (小有名气)

引用回帖:
2楼: Originally posted by Bessel at 2013-04-29 00:44:11
这个装好之后是库文件, 应该在lib文件里面,

~/usr/include/fftw3.h
~/usr/include/fftw3.f
~/usr/lib/libfftw3.a
~/usr/lib/libfftw3.la
~/usr/lib/libfftw3.so

看看这个链接吧

http://micro.s ...

按照现在的状态,我重新安装fftw3的话,在指定文件夹下面会出现bin文件夹的。fftw3是我第一次安装的fftw的时候安装的。现在的问题是再安装fftw2的时候没有bin文件夹。那么没有bin文件夹,如何设置环境变量呢?
3楼2013-04-29 20:09:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Bessel

木虫 (正式写手)

【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
zh1987hs: 金币+2, 谢谢 2013-04-30 11:05:19
yjhqdm: 金币+40, ★★★很有帮助 2013-05-02 15:02:48
引用回帖:
3楼: Originally posted by yjhqdm at 2013-04-29 14:09:03
按照现在的状态,我重新安装fftw3的话,在指定文件夹下面会出现bin文件夹的。fftw3是我第一次安装的fftw的时候安装的。现在的问题是再安装fftw2的时候没有bin文件夹。那么没有bin文件夹,如何设置环境变量呢?...

都说了,你要的库文件在lib文件架里,不在bin文件夹里。有没有bin无所谓,只要指明lib在哪就可以了。你看看你的安装路径里有没有lib文件夹。

环境变量指向lib就可以。
4楼2013-04-29 21:45:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 新一代电子信息294求调剂 不挑学校 +7 Ytyt11 2026-04-09 8/400 2026-04-12 16:57 by ajpv风雷
[考研] 339求调剂 +8 hanwudada 2026-04-11 9/450 2026-04-12 15:36 by laoshidan
[考研] 327求调剂 +5 拾光任染 2026-04-06 5/250 2026-04-12 02:29 by 秋豆菜芽
[找工作] 山东高校教师考核超级无底线,员工过不下去啦 +4 qut2026 2026-04-09 9/450 2026-04-12 00:54 by qut2026
[考研] 312求调剂 +6 李鸿飞飞 2026-04-06 6/300 2026-04-12 00:34 by 蓝云思雨
[考研] 求调剂,一志愿大连理工大学354分 +5 雨声余生 2026-04-11 6/300 2026-04-11 16:12 by 雨声余生
[考研] 300分求调剂 (085501机械专硕,本科扬大) +8 xu@841019 2026-04-11 8/400 2026-04-11 10:46 by qingpingzhu
[考研] 283求调剂,工科! +12 苏打水7777 2026-04-08 12/600 2026-04-11 10:28 by 逆水乘风
[考研] 一志愿北理工298英一数二已上岸,感谢各位老师 +14 Reframe 2026-04-10 16/800 2026-04-10 23:07 by caotw2020
[考研] 289 分105500药学专硕求调剂(找B区学校) +6 白云123456789 2026-04-09 8/400 2026-04-10 21:13 by zhouxiaoyu
[考研] 青岛科技大学材料学院,环境学院调剂补录4月10日以前都可以 +3 1青科大。 2026-04-09 5/250 2026-04-10 09:58 by 翩翩一书生
[考研] 314求调剂 +14 weltZeng 2026-04-09 14/700 2026-04-09 23:14 by wolf97
[论文投稿] 求助文献原文 10+3 18500821399 2026-04-08 3/150 2026-04-09 16:56 by 北京莱茵润色
[考研] 293分求调剂,外语为俄语 +7 加一一九 2026-04-07 10/500 2026-04-08 20:14 by yutian743
[考研] 264求调剂 +11 麦小叮当 2026-04-07 11/550 2026-04-08 16:05 by 一只好果子?
[考研] 调剂求助(生物与医药) +6 @6952 2026-04-06 6/300 2026-04-07 23:52 by lys0704
[考研] 材料工程专业日语生求调剂 +9 111623 2026-04-07 9/450 2026-04-07 23:31 by 一只好果子?
[考研] 313求调剂 +3 十六拾陆 2026-04-07 3/150 2026-04-07 23:20 by lbsjt
[考研] 求调剂 +11 wwwwabcde 2026-04-07 11/550 2026-04-07 23:16 by JourneyLucky
[考研] 机械调剂 +3 zzzbcb 2026-04-07 3/150 2026-04-07 22:19 by hemengdong
信息提示
请填处理意见