how to install CTFFind4 on a Mac

Hi Alexis,

I'm new in this field. And I am trying to install the CTFFind4 on my Mac. I have a couple of questions in terms of installation.

Firstly, there are a couple of versions of CTFFind4? Which one is good for Mac with newest operation system.

Second, according to my understanding, the compilation will be different on Mac system than on a Linux system. And do you have a routine way to compile the version on Mac system?

By the way, I have successfully installed relion1.4 on my Mac.

Best,
Shijian.

Hi Shijan,

I do not own or use a Mac, so I have no experience doing this, unfortunately.

I do know that recent version of ctffind (>= 4.0.9) can be built using the freely-available GNU compilers (versions 4.9.1 and above). I believe that it is possible to compile programs under OSX using the GNU compilers, but I have no experience with this. Quick googling suggests there are tutorials out there on this topic.

In principle, you should use the latest available version of ctffind.

Sorry I can't be of more help
Alexis

In reply to by Alexis

Does anybody have precompiled binaries or can lend some help on this?

I have been trying to compile CTFFIND4 on os x 10.11.5 but run in problems:

$ ../configure --enable-static --disable-debug --enable-optimisations --enable-openmp FC=gfortran F77=gfortran
$ make

Configure seems to run ok other than complaining frequently 'rm: core: is a directory' and then the last lines of output after make are:

/opt/local/bin/../libexec/as/x86_64/as: Flag option -o has already been seen!
/var/folders/qg/f_c4v1t56k9gxjmt7jq5_62rxxs9hl/T//ccETQbkG.s:2863:suffix or operands invalid for `movq'
/var/folders/qg/f_c4v1t56k9gxjmt7jq5_62rxxs9hl/T//ccETQbkG.s:2891:suffix or operands invalid for `movq'
make: *** [core/useful_functions.o] Error 1

I have fortran installed:

$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin14.5.0/5.3.0/lto-wrapper
Target: x86_64-apple-darwin14.5.0
Configured with: ../gcc-5.3.0/configure --prefix=/sw --prefix=/sw/lib/gcc5 --mandir=/sw/share/man --infodir=/sw/lib/gcc5/info --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-fsf-5 --with-build-config=bootstrap-debug
Thread model: posix
gcc version 5.3.0 (GCC)

Does anybody have precompiled binaries or can lend some help on this?

I have been trying to compile CTFFIND4 on os x 10.11.5 but run in problems:

$ ../configure --enable-static --disable-debug --enable-optimisations --enable-openmp FC=gfortran F77=gfortran
$ make

Configure seems to run ok other than complaining frequently 'rm: core: is a directory' and then the last lines of output after make are:

/opt/local/bin/../libexec/as/x86_64/as: Flag option -o has already been seen!
/var/folders/qg/f_c4v1t56k9gxjmt7jq5_62rxxs9hl/T//ccETQbkG.s:2863:suffix or operands invalid for `movq'
/var/folders/qg/f_c4v1t56k9gxjmt7jq5_62rxxs9hl/T//ccETQbkG.s:2891:suffix or operands invalid for `movq'
make: *** [core/useful_functions.o] Error 1

I have fortran installed:

$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin14.5.0/5.3.0/lto-wrapper
Target: x86_64-apple-darwin14.5.0
Configured with: ../gcc-5.3.0/configure --prefix=/sw --prefix=/sw/lib/gcc5 --mandir=/sw/share/man --infodir=/sw/lib/gcc5/info --enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib --program-suffix=-fsf-5 --with-build-config=bootstrap-debug
Thread model: posix
gcc version 5.3.0 (GCC)