Custom building Coot from source code: Difference between revisions

No edit summary
Line 1: Line 1:
This is an advanced task. Don't attempt it unless you are a Unix expert. The normal method installing Coot is to download a binary, or to use the autobuild scripts: [[Coot]].
This is an advanced task. Don't attempt it unless you are a Unix expert. The normal method installing Coot is to download a binary, or to use the autobuild scripts: [[Coot]].


====First, [[Install CCP4 on Linux]].====
====First, [[Install gpp4 and other dependencies on Linux]].====


I let ccp4 build its own fftw. Be sure to build the clipper libraries.  After you complete the default installation, go back to $CLIB/clipper/clipper/mmdbold and build some more libraries, i.e.,
Instead of using ccp4-onlylibs-dev, we want to use ssm, mmdb, gpp4 and clipper packages.    


  cd $CLIB/clipper/clipper/mmdbold
To keep things tidy, I suggest installing everything into /usr/local/xtal   
 
Install these in the order described:
 
=====mmdb=====
wget http://www.ebi.ac.uk/~keb/cldoc/downloads/mmdb-1.19.tar.gz
./configure --prefix=/usr/local/xtal --includedir=/usr/local/xtal/include
make
make install
 
=====ssm=====
wget ftp://ftp.bioxray.au.dk/pub/mok/src/ssm-0.1.tar.gz
CPPFLAGS=-I/usr/local/xtal/include ./configure --prefix=/usr/local/xtal --includedir=/usr/local/xtal/include
make
make install
 
=====gpp4=====
wget ftp://ftp.bioxray.au.dk/pub/mok/src/gpp4-1.0.4.tar.gz
CPPFLAGS=-I/usr/local/xtal/include ./configure --prefix=/usr/local/xtal --includedir=/usr/local/xtal/include
  make
  make install
 
=====fftw=====
We need to compile fftw in a way that differs from that used to make the standard linux distribution of fftw. So to do that, we will install our own in /usr/local/xtal/lib, so it will remain hidden from the rest of the system, unless directed to look for it there.
ftp://ftp.fftw.org/pub/fftw/old/fftw-2.1.5.tar.gz
CPPFLAGS=-I/usr/local/xtal/include ./configure --prefix=/usr/local/xtal --includedir=/usr/local/xtal/include --enable-float
make
make install
 
=====clipper=====
wget http://www.ysbl.york.ac.uk/~cowtan/clipper/clipper20ac.latest.tar.gz
CPPFLAGS=-I/usr/local/xtal/include ./configure --prefix=/usr/local/xtal --includedir=/usr/local/xtal/include -enable-shared --with-gpp4=/usr/local/xtal --with-mmdb=/usr/local/xtal --with-fftw=/usr/local/xtal --enable-mmdb --enable-minimol --enable-cif --enable-cns --enable-gpp4
  make
  make
  make install
  make install


to get the additional mmdbold libraries installed in their canonical location.  This should take care of the ccp4-type dependencies, as well as ensuring that you have fftw libs that play well with the clipper libraries.
=====guile-lib=====
Yet another little guile fragment that is not distributed (well actually there is a very old one that works with guile1.4 — we need this for guile1.8)
wget http://download.gna.org/guile-lib/guile-lib-0.1.6.tar.gz./configure --prefix=/usr
make
make install


====Second, install a newer version of Clipper====
====Second, install a newer version of Clipper====
126

edits