Instructions to compile ctffind4 on CentOS 8.
# Enable PowerTools
sudo dnf config-manager --set-enabled PowerTools
# Instal EPEL repo
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm# Upgrade the system
sudo dnf upgrade --refresh# Install useful packages
sudo dnf install -y gcc gcc-c++ pkgconfig automake autoconf kernel-devel kernel-headers dkms make bzip2 cmake# Install wxWidgets dependencies
sudo dnf install -y wxGTK3-devel
# Check installation is ok
wx-config --version# Install FFTW (alternatively you can install Intel MKL)
sudo dnf install -y fftw-devel# Instal other dependencies
sudo dnf install -y turbojpeg-devel libjpeg-turbo-devel libtiff-devel# Download the source files
wget http://grigoriefflab.janelia.org/sites/default/files/ctffind-4.1.13.tar.gz
tar xvzf ctffind-4.1.13.tar.gz
cd ctffind-4.1.13/
./configure --disable-debugmodeThere is a bug in the code that prevent the compilation. You need to manually edit the file src/core/core_headers.h. Find the lines:
#include "pdb.h"
#include "water.h"and delete them.
Then launch the compilation:
makeYou don't need to run make install. The binary is available in the parent directory of the ctffind folder. Check compilation worked by running ctffind:
./ctffind