panlab-bioinfo / RAfilter

A filter algorithm with program to filter an alignment or mapping file
MIT License
10 stars 0 forks source link

error message during installation #3

Open Bio-info-ai opened 8 months ago

Bio-info-ai commented 8 months ago

I followed the installation instructions. But it gives me the error: ~/anaconda3/bin/x86_64-conda-linux-gnu-c++ -Wl,--rpath=~/download/RAfilter/src/htslib/ -L htslib/ -lhts -I htslib/htslib/ -lpthread -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem ~/anaconda3/include -c -o main.o main.cpp In file included from main.cpp:1: ~/anaconda3/x86_64-conda-linux-gnu/include/c++/11.2.0/ctime:80:11: error: 'timespec_get' has not been declared in '::' 80 | using ::timespec_get; | ^~~~ main.cpp: In function 'int main(int, char)': main.cpp:106:23: warning: ignoring return value of 'int system(const char)' declared with attribute 'warn_unused_result' [-Wunused-result] 106 | system(cmd.c_str()); | ~~^~~~~ make: [: main.o] Error 1

panlab-bioinfo commented 8 months ago

I test the installing method and successed finishing it. I think of that your version of gcc is too new or the gcc mismatch with the library. For this, I suggest you exit the conda enviroment and apply the linux system gcc to install. if you have other problem, you can add my wechat to communicate. weChat: 15536590569


发件人: YueqiZhangUWA @.> 发送时间: 2024年1月8日 19:04 收件人: panlab-bioinfo/RAfilter @.> 抄送: Subscribed @.***> 主题: [panlab-bioinfo/RAfilter] error message during installation (Issue #3)

I followed the installation instructions. But it gives me the error: /anaconda3/bin/x86_64-conda-linux-gnu-c++ -Wl,--rpath=/download/RAfilter/src/htslib/ -L htslib/ -lhts -I htslib/htslib/ -lpthread -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem ~/anaconda3/include -c -o main.o main.cpp In file included from main.cpp:1: ~/anaconda3/x86_64-conda-linux-gnu/include/c++/11.2.0/ctime:80:11: error: 'timespec_get' has not been declared in '::' 80 | using ::timespec_get; | ^~~~ main.cpp: In function 'int main(int, char)': main.cpp:106:23: warning: ignoring return value of 'int system(const char)' declared with attribute 'warn_unused_result' [-Wunused-result] 106 | system(cmd.c_str()); | ~~^~~~~ make: [: main.o] Error 1

― Reply to this email directly, view it on GitHubhttps://github.com/panlab-bioinfo/RAfilter/issues/3, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2NLIUPSD25IYECSKFRZGM3YNPHFRAVCNFSM6AAAAABBRIONM2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3TAMRRHA3TSMI. You are receiving this because you are subscribed to this thread.Message ID: @.***>