- $ vera="02-06-2008";verb="02062008"
- $ cd /programinstallers/
- $ wget -N http://downloads.sourceforge.net/project/dagchainer/dagchainer/DAGchainer-r$verb/DAGchainer_r$vera.tar.gz
- $ tar -zxvf DAGchainer_r$vera.tar.gz
- $ cd DAGCHAINER
- $ 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
- 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>
- $ 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);
^
- Correct this by modifying line 410. Insert \n%s:
fprintf (stderr, "The GAP open penalty must be set <= 0\n%s\n\n", usage);
- $ make
g++ -o dagchainer. dagchainer.cpp -Wno-deprecated
- 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
- Manual installation:
$ mkdir /usr/local/bin/DAGchainer
- $ cp -puv dagchainer. run_DAG_chainer.pl /usr/local/bin/DAGchainer/
- $ cp -puv accessory_scripts/* /usr/local/bin/DAGchainer/
- $ cp -puvr Java_XY_plotter/* /usr/local/bin/DAGchainer/
- Add to the default PATH
$ sudo nano /etc/profile
…
PATH="$PATH:/usr/local/bin/DAGchainer"
…
- Copy documentation to local web page
$ cp -puvr docs/* ../web/dagchainer/
- $ cp -puv README ../web/dagchainer/README.txt
- Cleanup
$ cd ..
- $ rm DAGCHAINER -rf