FFTW / fftw3

DO NOT CHECK OUT THESE FILES FROM GITHUB UNLESS YOU KNOW WHAT YOU ARE DOING. (See below.)
GNU General Public License v2.0
2.66k stars 651 forks source link

i compiled ffw3 v3.3.10 but my systems tells that 3.3.8 is installed... #317

Open estatistics opened 1 year ago

estatistics commented 1 year ago

I run gh repo clone FFTW/fftw3 then sh bootstrap.sh and sudo make and sudo make install. It succesfully installed, then i run dpkg -l 'libfftw3*' that tells me that 3.3.8 exists on my system (linux bullseye 11 kde)

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ name                  version         Architecture description
+++-======================-==============-============-=============================================================>
un  libfftw3-3             <none>         <none>           <none>  
ii  libfftw3-bin           3.3.8-2ubuntu6 amd64        Library for computing Fast Fourier Transforms - Tools
ii  libfftw3-dev:amd64     3.3.8-2ubuntu6 amd64        Library for computing Fast Fourier Transforms - development
un  libfftw3-doc           <none>         <none>       <none>  
ii  libfftw3-double3:amd64 3.3.8-2ubuntu6 amd64        Library for computing Fast Fourier Transforms - Double precis>
ii  libfftw3-long3:amd64   3.3.8-2ubuntu6 amd64        Library for computing Fast Fourier Transforms - Long precision
ii  libfftw3-quad3:amd64   3.3.8-2ubuntu6 amd64        Library for computing Fast Fourier Transforms - Quad precision
ii  libfftw3-single3:amd64 3.3.8-2ubuntu6 amd64        Library for computing Fast Fourier Transforms - Single precis>
matteo-frigo commented 1 year ago

3.3.8 was installed by your linux distribution (by the way, are you sure it's bullseye? bullseye is a debian distribution, but the package names mention ubuntu)

Basically, you have fftw-3.3.8 in /usr/include and /usr/lib (installed by the system) and fftw-3.3.10 in /usr/local/include and /usr/local/lib (installed by you). This may or may not be what you want.

I would venture a guess that you would be ok with the default installation that comes with your linux distribution. If that's the case, you want to remove the files that you installed in /usr/local (they are harmless but you don't want to get confused in the future). Try "make uninstall", which used to work decades ago. If that doesn't work, remove everything that looks like fftw in /usr/local/include and /usr/local/lib (and perhaps /usr/local/man and /usr/local/info, I forgot what gets installed by default).

estatistics commented 1 year ago

I want to update to 3.3.10 cause i would like to install imagemagick 7, but imei 7 needs a newer ffw. So what i must do in order my system use the newer ffw instead of the old installation?

Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye
matteo-frigo commented 1 year ago

Is upgrading your debian installation an option?

The next debian ("bookworm") is currently in a soft-freeze state and will be released officially in a few months. It provides 3.3.10 out of the box. I upgraded from bullseye myself a few weeks ago with no issues. If this route is viable to you, it is by far preferable to attempting to keep multiple versions in one system.