Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save bsobol/5daaa66822c98bddd89b6395ab3898a8 to your computer and use it in GitHub Desktop.

Select an option

Save bsobol/5daaa66822c98bddd89b6395ab3898a8 to your computer and use it in GitHub Desktop.

Compile ctffind4 on CentOS 8

Instructions to compile ctffind4 on CentOS 8.

Install dependencies

# 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

Compile ctffind4

# 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-debugmode

There 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:

make

You 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment