Custom building Coot from source code: Difference between revisions

Line 72: Line 72:
====Fourth, configure and build coot like this:====
====Fourth, configure and build coot like this:====


Use sudo zsh (or whatever shell) to open a root shell, and issue the commands
If root is enabled, log into a root shell, or else if you have sudo (debian, ubuntu, etc), use the command


sudo zsh
(or whatever shell) to open a root shell, and issue the following commands as indicated.
First, issue the following command to fix a configure bug when compiling with gpp4:
perl -pi -e 's|lccp4c|lgpp4|g' configure
Now configure this way:
PATH="/usr/local/xtal/bin:$PATH" \
CPPFLAGS="-I/usr/local/xtal/include -I/usr/local/xtal/include/clipper -I/usr/local/xtal/include/gpp4 -I/usr/local/xtal/include/mmdb -I/usr/local/xtal/include/ssm" \
./configure --prefix=$PWD \
--with-gpp4=/usr/local/xtal \
--with-mmdb-prefix=/usr/local/xtal \
--with-ssmlib-prefix=/usr/local/xtal \
--with-clipper-prefix=/usr/local/xtal \
--with-fftw=/usr/local/xtal \
--with-glut-prefix=/usr --with-gl-prefix=/usr/X11R6 \
--with-gtk2 --with-gnomecanvas-prefix=/usr \
--with-imlib-prefix=/usr --with-gtkgl-prefix=/usr \
--with-glib-prefix=/usr --with-guile-gtk \
--with-guile-gtk-prefix=/usr --with-gsl-prefix=/usr \
--with-guile --with-python
Then, remake the  src/coot_wrap_python.cc and src/coot_wrap_guile.cc files:


CPPFLAGS="-I$CLIB/src -I$CLIB/src/mmdb" ./configure --with-mmdb-prefix=$CCP4 --with-clipper-prefix=/usr/local/xtal \
--with-fftw=$CCP4 --with-glut-prefix=/usr --with-gl-prefix=/usr/X11R6 --with-gtk2 --with-gnomecanvas-prefix=/usr \
--with-ssmlib-prefix=$CCP4 --with-imlib-prefix=/usr --with-gtkgl-prefix=/usr --with-glib-prefix=/usr --with-guile-gtk \
--with-guile-gtk-prefix=/usr  --with-gsl-prefix=/usr --with-guile --with-python --prefix=$PWD
Remake the  src/coot_wrap_python.cc and src/coot_wrap_guile.cc files
  /bin/rm -f **/coot_wrap_**.cc
  /bin/rm -f **/coot_wrap_**.cc
  cd src
  cd src
Line 89: Line 110:
  cd ..
  cd ..


Now compile it:
Now compile coot:
  make  
  make  
  make -i install
  make -i install
Line 100: Line 121:
  tar xvfz coot-reference-structures.tar.gz ; rm coot-reference-structures.tar.gz
  tar xvfz coot-reference-structures.tar.gz ; rm coot-reference-structures.tar.gz


Now add the refmac dictionaries (eg using coot-0.4.1 and refmac 5.4; change as required):
Now add the refmac dictionaries (eg using coot-0.5 and refmac 5.4; change as required):
  cd /tmp
  cd /tmp
  wget  wget http://www.ysbl.york.ac.uk/refmac/data/refmac5.4_dictionary.tar.gz
  wget  wget http://www.ysbl.york.ac.uk/refmac/data/refmac5.4_dictionary.tar.gz
  tar xvfz refmac5.4_dictionary.tar.gz
  tar xvfz refmac5.4_dictionary.tar.gz
  mkdir -p  /usr/local/xtal/coot-0.4.1/lib/data
  mkdir -p  /usr/local/xtal/coot-0.5/lib/data
  cp -r dic /usr/local/xtal/coot-0.4.1/lib/data/monomers
  cp -r dic /usr/local/xtal/coot-0.5/lib/data/monomers


Export the COOT_REFMAC_LIB_DIR variable (you can edit bin/coot):
Export the COOT_REFMAC_LIB_DIR variable (you can edit bin/coot):
126

edits