Compiling ccp4 on OS X
From OS X Scientific Computing
Contents |
[edit]
Compiling CCP4 v. 6.0.0
[edit]
Download the sourcecode
ftp://ftp.ccp4.ac.uk/ccp4/6.0.0/packed/ccp4-6.0.0-core-src.tar.gz
ftp://ftp.ccp4.ac.uk/ccp4/6.0.0/packed/phaser-1.3.2-cctbx-src.tar.gz
[edit]
Compiler Issues
You can use gfortran to compile ccp4, but be sure to use version 4.2. g77-3.4 works fine on ppc but is not available on intel.
[edit]
Dependencies
If you have fink's g77-3.4.3 (latest version in unstable), tcl, tk, blt, fft and gsl, your life will be much easier.
[edit]
Configuring
This may be overkill, but it works. First, be sure to edit the $CCP4/include/ccp4.setup (or equivalent) file. Here is what I did using the zsh shell:
source include/ccp4.setup-zsh export DYLD_LIBRARY_PATH=$CLIB # The cctbx sub-package requires us to use the system's own Python export PATH=/System/Library/Frameworks/Python.framework/Versions/Current/bin:$PATH export PYTHONHOME="/System/Library/Frameworks/Python.framework/Versions/Current" export PYTHONPATH="/System/Library/Frameworks/Python.framework/Versions/Current/lib/python2.3" # Force configure to use fink's g77 Fortran compiler. gfortran is not good enough yet CXX="g++-3.3" FC="g77" ./configure --with-x --with-shared-libs --with-fftw=/sw Darwin
[edit]
Make and Install
# fix some post-configure bugs by getting rid of -lg2c perl -pi.bak -e 's|-lg2c||g' **/*akefile* # make -i make -i install
[edit]
Manually link xloggraph with g77 (fails in make)
cd x-windows/XCCPJIFFY g77 -fno-second-underscore -o xloggraph -L/usr/lib msg_box.o ZDr2d.o EditString.o hardcopy_ctrl.o xloggraph.o log_file.o tom_fortran_interface.o bits_and_pieces.o graphics.o -g -Os -I/usr/include/X11R6 -L/usr/X11R6/lib -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 -lm -lgcc -lSystemStubs
[edit]
My CCP4 on OS X main page
[edit]

