Carrot root and DNA VCRU Bioinformatics USDA ARS Vegetable Crops Research Unit

This page was last updated on Sunday, 13-Nov-2016 09:01:23 CST

Installation notes for DAGchainer version r02-06-2008

Home Page

Prerequisites

Perl, Java

Installation

  1. $ vera="02-06-2008";verb="02062008"
  2. $ cd /programinstallers/
  3. $ wget -N http://downloads.sourceforge.net/project/dagchainer/dagchainer/DAGchainer-r$verb/DAGchainer_r$vera.tar.gz
  4. $ tar -zxvf DAGchainer_r$vera.tar.gz
  5. $ cd DAGCHAINER
  6. $ make
    g++ -o dagchainer. dagchainer.cpp -Wno-deprecated
    dagchainer.cpp:12:23: fatal error: iostream.h: No such file or directory
     #include  
                           ^
    compilation terminated.
    make: *** [dagchainer.] Error 1
  7. To correct this error, on lines 12 to 14 of dagchainer.cpp, remove the .h extensions so that they look like this:
    #include  <iostream>
    #include  <iomanip>
    #include  <fstream>
  8. $ make
    g++ -o dagchainer. dagchainer.cpp -Wno-deprecated
    dagchainer.cpp: In function ‘void process_arguments(int, char**)’:
    dagchainer.cpp:410:72: warning: too many arguments for format [-Wformat-extra-args]
         fprintf (stderr, "The GAP open penalty must be set <= 0\n\n", usage);
                                                                            ^
  9. Correct this by modifying line 410. Insert \n%s:
        fprintf (stderr, "The GAP open penalty must be set <= 0\n%s\n\n", usage);
  10. $ make
    g++ -o dagchainer. dagchainer.cpp -Wno-deprecated
  11. Note, I did not have any HOSTTYPE environment variable defined, so the compiled program is dagchainer. with no extension. This seems to work fine, however
  12. Manual installation:
    $ mkdir /usr/local/bin/DAGchainer
  13. $ cp -puv dagchainer. run_DAG_chainer.pl /usr/local/bin/DAGchainer/
  14. $ cp -puv accessory_scripts/* /usr/local/bin/DAGchainer/
  15. $ cp -puvr Java_XY_plotter/* /usr/local/bin/DAGchainer/
  16. Add to the default PATH
    $ sudo nano /etc/profile

    PATH="$PATH:/usr/local/bin/DAGchainer"
  17. Copy documentation to local web page
    $ cp -puvr docs/* ../web/dagchainer/
  18. $ cp -puv README ../web/dagchainer/README.txt
  19. Cleanup
    $ cd ..
  20. $ rm DAGCHAINER -rf