Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the /path/to/CAFE directory.
    cd /path/to/CAFE
  3. Decompress the installation package.
    tar -xvf v4.2.1.tar.gz
  4. Go to the directory generated after the decompression.
    cd CAFE-4.2.1
  5. Create a compilation file.
    antoconf
    ./configure
  6. Modify the cafe/cafe_tree.c file.
    1. Open cafe/cafe_tree.c.
      vi cafe/cafe_tree.c
    2. 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:

      After performing 6.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  7. Modify the libtree/phylogeny.c file.
    1. Open libtree/phylogeny.c.
      vi libtree/phylogeny.c
    2. 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:

        After performing 7.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  8. Modify the cafe/viterbi.cpp file.
    1. Open cafe/viterbi.cpp.
      vi cafe/viterbi.cpp
    2. 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:

        After performing 8.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  9. Perform the compilation.
    make