Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the /path/to/CAFE directory.
cd /path/to/CAFE
- Decompress the installation package.
tar -xvf v4.2.1.tar.gz
- Go to the directory generated after the decompression.
cd CAFE-4.2.1
- Create a compilation file.
antoconf ./configure
- Modify the cafe/cafe_tree.c file.
- Open cafe/cafe_tree.c.
vi cafe/cafe_tree.c
- Press i to enter the insert mode and modify the file as follows:
- Delete if (aq1) from lines 74 and 81.
Before the modification:

After the modification:

- Add va_list a; and va_end (a); under line 91.
- Change NULL in line 94 to a.
Before the modification:

After the modification:

- Add va_list b; and va_end (b); under line 318.
- Change NULL in line 321 to b.
Before the modification:

After the modification:

- Delete if (aq1) from lines 74 and 81.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open cafe/cafe_tree.c.
- Modify the libtree/phylogeny.c file.
- Open libtree/phylogeny.c.
vi libtree/phylogeny.c
- Press i to enter the insert mode and modify the file as follows:
- Add va_list c; and va_end (c); under line 150.
- Change NULL in line 153 to c.
Before the modification:

After the modification:

- Add va_list d; and va_end (d); under line 589.
- Change NULL in line 592 to d.
- Add va_list e; and va_end (e); under line 609.
- Change NULL in line 612 to e.
Before the modification:

After the modification:

- Add va_list f; and va_end (f); under line 626.
- Change sp1 in line 629 to f.
- Add va_list g; and va_end (g); under line 646.
- Change sp1 in line 649 to g.
Before the modification:

After the modification:

- Add va_list h; and va_end (h); under line 736.
- Change NULL in line 739 to h.
Before the modification:

After the modification:

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open libtree/phylogeny.c.
- Modify the cafe/viterbi.cpp file.
- Open cafe/viterbi.cpp.
vi cafe/viterbi.cpp
- Press i to enter the insert mode and modify the file as follows:
- Add va_list m; and va_end (m); under line 502.
- Change NULL in line 505 to m.
- Add va_list j; and va_end (j); under line 508.
- Change NULL in line 511 to j.
Before the modification:

After the modification:

- Add va_list k; and va_end (k); under line 538.
- Change NULL in line 541 to k.
- Add va_list l; and va_end (l); under line 554.
- Change NULL in line 557 to l.
Before the modification:

After the modification:

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open cafe/viterbi.cpp.
- Perform the compilation.
make
Parent topic: CAFE 4.2.1 Porting Guide (Kylin V10)
