Entering edit mode
7 months ago
adarsh_munna
▴
50
Hi,
I am trying to compile and install repeatseq tool from
I have followed same instructions mentioned in the installation file.
However when I am running the make command as the final step, I am always getting the following error.
sudo make
g++ -c -O3 -Ibamtools/src repeatseq.cpp
In file included from bamtools/src/api/BamAux.h:19,
from bamtools/src/api/BamAlignment.h:18,
from bamtools/src/api/BamReader.h:14,
from repeatseq.h:18,
from repeatseq.cpp:27:
bamtools/src/api/api_global.h:13:10: fatal error: api/bamtools_api_export.h: No such file or directory
13 | #include "api/bamtools_api_export.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [makefile:13: repeatseq.o] Error 1
I have tried rebuildig bamtools by following instructions from https://github.com/pezmaster31/bamtools
However the issue is still there. I am running this in Ubuntu 22.04.4
cmake version 3.22.1
GNU Make 4.3
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Hi, can you locate this file in your sourcetree: either with
find
orlocate
bamtools_api_export.h. Also, don't run make via sudo (your environment may be different and it's not safe), the only step you should run with sudo is make install, and only if you install globally. The INSTALL instructions don't mention sudo either.Remove the src folder completely (with sudo if you have to), check out the code again and run make as a normal user.
Hi
The file is located in the following directory
Ok, then try again without sudo, most likely this will fix it already.
using 'sudo' is usually a very bad idea