由於庫fftw3,安裝Fluidsim軟件包時出錯


0

每次嘗試安裝Fluidsim時都會出現錯誤。看來這是由於庫fft3w引起的。我檢查了這個庫,它已經很好地安裝在系統上。錯誤如下:

/usr/bin/ld: cannot find -lfftw3f
/usr/bin/ld: cannot find -lfftw3l
/usr/bin/ld: cannot find -lfftw3_threads
/usr/bin/ld: cannot find -lfftw3f_threads
/usr/bin/ld: cannot find -lfftw3l_threads
collect2: error: ld returned 1 exit status
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Makefile:4: recipe for target 'develop' failed
make: *** [develop] Error 1
(Env) [email protected]:~/Env/fluidsim$ 

我不知道是什麼問題。你有什麼想法嗎感謝您的幫助。

mikel

(Env) [email protected]:~/Env/fluidsim$ dpkg -l|grep libfftw3
ii  libfftw3-double3:amd64                      3.3.4-2ubuntu1                                              amd64        Library for computing Fast Fourier Transforms - Double precision
ii  libfftw3-single3:amd64                      3.3.4-2ubuntu1                                              amd64        Library for computing Fast Fourier Transforms - Single precision
1

It looks like you don't have all of the libfftw3 component packages installed - perhaps because you installed libfftw3-single3 and libfftw3-double3 instead of the complete libfftw3-dev development package.

Try (re)installing libfftw3-dev

sudo apt install --reinstall libfftw3-dev

and if that doesn't work, try installing the sub-packages directly

sudo apt install --reinstall libfftw3-long3 libfftw3-single3