STFC
Computational Science and Engineering Department
CCP4
BBSRC
CCP4Home What is CCP4? CCP4 Projects Downloads Documentation Courses Developers CCP4 people

CCP4 on MacOSX


From v4.2 Mac OSX is just part of the normal CCP4 build.

Background

MacOSX has UNIX(BSD) underpinnings. This means there are many free/shareware tools to make life easier:

Programs

Naked Mac OSX does not have the tools need to compile CCP4, so you will need:
  1. C complier: from Apple developer centre or on the Developer Tools which came with the OS

  2. fortran compiler: gfortran for gcc 4. The latest gfortran binaries are available from the gfortran wiki, R for Mac OS X" (my preference), HPC on Mac OSX and fink.

    Note, it is not advisable to use gfortran 4.0 pre 4.0.2 to compile the ccp4 suite.

  3. X11: if X is wanted. Install X11.app and the additional X11 SDK from the OS X installation media. X11 SDK is installed as part of the developers tools (XCode)

    If you do not have the SDK it is available from Bill.

  4. CCP4: CCP4 distribution

Binaries

Binaries are distributed for this platform

Roll your own

The source code installation is the same as for any other supported system
  1. unzip and untar the tar file
  2. edit and source ccp4.setup
  3. configure Darwin , gnu compilers.
  4. make
  5. make install

Fink it

Alternatively: if a fink style installation is preferred Bill Scott has produced fink scripts for installing CCP4.

Please note that these are not officially supported, but they do make life easier.

CCP4i

The extended tcl/tk required to run ccp4i is available from our Downloads pages, ftp site or fink.

The latest version of tcl/tk is 8.5, however, blt is not under active development so we recommed using tcl 8.4, which requires blt4.2z. Currently blt4.2z is part of the fink stable branch.

Note: bltwish works with X, not aqua, so does not come with AquaTcl. Set CCP4I_TCLTK in ccp4.setup. This is especially required if the tcl and tk libraries are in a non-standard location, such as /sw.

During the first run of ccp4i on a machine, certain initializations are performed, these require write permission to the installation directory.


e-mail: ccb@ccp4.ac.uk

Special thanks to Dr. Michael Love and Dr. Martin Noble
also those brave enough to test out 4.1.1: Derek Logan, William Scott


Problems

General problems are given at CCP4 problems. What follows are MacOSX features, quirks, and bugs.
  1. --/--/01: nawk not found
  2. 02/08/01: linker fails with relocation error
  3. --/--/01: configure fails to recognise conditional substitutions
  4. 01/05/02: CCP4 configure script does not find libtcl
  5. 01/05/02: java AstexViewer.jar fails
  6. 01/05/02: configure does not recognise host type
  7. 01/05/02: ccp4mapwish fails to link
  8. 12/05/02: linker fails with relocation error for gcc3
  9. 17/05/02: ccp4 does not make with pmake
  10. 23/05/02: ccp4i, Kill Job fails
  11. 24/05/02: g++ 2.95.2 libstdc++2 does not include sstream
  12. 31/05/02: X programs expect higher resolution than available.
  13. 24/06/02: ccp4i, help browser fails to open
  14. 04/07/02: mosflm build takes excessive time
  15. --/11/02: gcc 2.95.2 precomp failure using glib 1.2
  16. 29/11/02: DepositFiles directory has no permissions set
  17. 12/12/02: Fink does not place g2c.h in /usr/include
  18. 23/01/03: Using the native blas/lapack in 10.2
  19. 26/01/03: Apple X11 beta Warning
  20. 02/05/03: Segmentation fault due to low stacksize
  21. 01/10/03: xlC Command not found for tcsh
  22. 01/10/03: g77 3.4 compilation of ccp4
  23. 19/11/03: xloggraph isblank and filesize errors
  24. 28/11/03: beast and xlf smp
  25. 22/03/04: use of xlf with xlc/xlc++
  26. 09/02/04: g77 internal compiler error
  27. 16/03/04: rotgen Undefined symbols _acosf and _atanf
  28. 17/03/04: pdb_extract, multiple definition of symbols
  29. 04/03/04: undefined symbols restFP and saveFP
  30. 13/05/04: libjwc_f.0.dylib fails to build
  31. 26/05/04: binaries are missing CHTML in ccp4.setup-xxx
  32. 26/05/04: refmac5 TLS misbehaves for xlf compiled program and binaries
  33. 09/08/04: there is no examples directory in the default OS X binary distribution
  34. 03/09/04: XUSERFILESEARCHPATH not set in ccp4.setup-sh
  35. 03/09/04: xdlmapman popup selecting map type does not appear
  36. 31/08/04: libxlf90.dylib on DYLD_LIBRARY_PATH stops render working
  37. 23/12/04: mixed parsing of IO stream fails due to buffering of fortran stream
  38. 18/08/05: g77 on Tiger
  39. 26/09/05: ld: Undefined symbols: _fprintf$LDBLStub
  40. 22/02/06: dynamic build of libmmdb.dylib fails
  41. 22/02/06: libjwc_f.dylib fails to link giving common objects for MH_DYLIB errors
  42. 22/02/06: malloc/free errors in C++ executables
  43. 28/02/06: ccp4i package installation fails when updating
  44. 05/04/06: gfortran on mactel
  45. 07/04/06: litend function gives wrong result for mactel
  46. 22/03/07: xlf compiled scala on ppc yields truncated scales file
  47. 10/09/07: xplot84driver fails with bad format error
  48. 15/04/08: proclean loops forever on mactel
  49. 28/04/08: sudo does not inherit environment on leopard
  50. 30/11/08: leopard installer deletes old package
  51. 09/01/08: Coot crashes when running Refmac
  52. 05/02/09: bad library links
  53. 08/03/09: BALBES_ROOT incorrectly set for ccp4.setup-csh
  54. 11/03/09: ERROR could not start run_imosflm couldn't execute "ccp4iwish": no such file or directory
  55. 17/03/09: MrBUMP fails to run due to a KeyError
  56. 11/06/10: CCP4 programs unavailable in coot