Custom building Coot from source code: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
Return to [[coot]]
These instructions are current as of coot release 0.5.
These instructions are current as of coot release 0.5.


Line 154: Line 156:
The configure command is all one line; I've escaped the return. Using --prefix=$PWD simply keeps everything self-contained.  You can use any install prefix you want to (it defaults to /usr/local; another sensible choice is /usr/local/xtal.  Avoid /usr as a prefix, as it can mess with your system).
The configure command is all one line; I've escaped the return. Using --prefix=$PWD simply keeps everything self-contained.  You can use any install prefix you want to (it defaults to /usr/local; another sensible choice is /usr/local/xtal.  Avoid /usr as a prefix, as it can mess with your system).


The make -i install is needed if you choose --prefix=$PWD because it tries to install some files where they are presently situated.
The''' make -i install''' is needed if you choose --prefix=$PWD because it tries to install some files where they are presently situated.


----
----


==If you want to make it portable==
==If you want to make it more portable==


You don't need to do this to run coot; this is only handy if you need to redistribute it (or make say a debian package).
You don't need to do this to run coot; this is only handy if you need to redistribute it (or make say a debian package).
Line 177: Line 179:


<pre>
<pre>
  cd /usr/local/xtal/coot-0.1.2/bin
  cd /usr/local/xtal/coot/bin
  foreach dylib in $(ldd coot-real | awk '{print $3}' | grep -v fff | grep -v "usr/local/xtal/coot" | sort -u )
  foreach dylib in $(ldd coot-real | awk '{print $3}' | grep -v fff | grep -v "usr/local/xtal/coot" | sort -u )
       print copying $dylib  
       print copying $dylib  
       sudo cp -i $dylib /usr/local/xtal/coot-0.1.2/lib/.
       sudo cp -i $dylib /usr/local/xtal/coot/lib/.
  end
  end
</pre>
</pre>
Line 186: Line 188:
In addition, the guile modules can all be put in one centralized location:
In addition, the guile modules can all be put in one centralized location:


  cp -R /usr/share/guile* /usr/local/xtal/coot-0.1.2/share/.
  cp -R /usr/share/guile* /usr/local/xtal/coot/share/.
 


Finally, you can give coot its own copy of the refmac monomers library:


mkdir -p /usr/local/xtal/coot-0.1.2/share/coot/lib/data
cp -R /usr/local/xtal/ccp4-6.0/lib/data/monomers /usr/local/xtal/coot-0.1.0-pre-3/share/coot/lib/data/.


Then edit /usr/local/xtal/coot-0.1.2/bin/coot and un-comment the appropriate environment variable lines (there are 2).
Return to [[coot]]
126

edits