Our Sponsors



Download BioinformaticsOnline(BOL) Apps in your chrome browser.




Question: Question: How to resolve following Amos installation error ?

Bulbul
2684 days ago

Question: How to resolve following Amos installation error ?

make[3]: Entering directory '/home/dept/Tools/amos-3.1.0/src/Align'
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../src/CelMsg -I../../src/Slice -I../../src/Common -I../../src/AMOS -I../../src/GNU -I../../src/Foundation   -g -O2 -MT find-tandem.o -MD -MP -MF .deps/find-tandem.Tpo -c -o find-tandem.o find-tandem.cc
find-tandem.cc: In function ‘int main(int, char**)’:
find-tandem.cc:243:3: error: ‘optarg’ was not declared in this scope
   optarg = NULL;
   ^
find-tandem.cc:245:63: error: ‘getopt’ was not declared in this scope
   while (!errflg && ((ch = getopt (argc, argv, "f:u:l:x:m:k:h")) != EOF))
                                                               ^
find-tandem.cc:258:55: error: ‘optopt’ was not declared in this scope
         fprintf (stderr, "Unrecognized option -%c\n", optopt);
                                                       ^
Makefile:918: recipe for target 'find-tandem.o' failed
make[3]: *** [find-tandem.o] Error 1
make[3]: Leaving directory '/home/urbe/Tools/amos-3.1.0/src/Align'
Makefile:325: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/urbe/Tools/amos-3.1.0/src'
Makefile:306: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/urbe/Tools/amos-3.1.0'
Makefile:244: recipe for target 'all' failed
make: *** [all] Error 2

Best Answer
1

You need to do lil hacking, yes hack it ;)

Add this in the front group of src/Align/find-tandem.cc script of AMOS

#include <getopt.h>