Integrating source-built Coda into the system

From Codawiki

This procedure is intended for people who followed advice on our Quick Client Action and Quick Server Action pages to build Coda from source.

Such installation put everything Coda-related (lwp, rpc2 and rvm libraries, and Coda client or server components) into a separate directory, /usr/local/coda/.

This separate directory prevents few default operations from working:

* Executable files are not in users' PATH
* Man pages are not in MANPATH
* Library files are not in system library directories
* Header and development files are not in system directories


This is not a problem in itself; you only need to have those facts in mind and manually specify filesystem locations when necessary.

However, one excellent solution that transparently integrates the installation directory into the standard filesystem locations (via symlinking) is GNU Stow (http://www.gnu.org/software/stow/stow.html).

GNU Stow

We won't bother explaining Stow here, see its web site for that.

Simply install Stow (http://www.gnu.org/software/stow/stow.html), and then:

To integrate Coda files into /usr/local structure, run:

cd /usr/local
stow -t /usr/local coda
ldconfig /usr/local/lib

Or to integrate Coda files into /usr, run:

cd /usr/local
stow -t /usr coda
ldconfig /usr/lib

Now, go try it out. Manual pages and system executables should be accessible by typing just their name (for example, man cfs and cfs).