我未能编译以下软件,但遇到了错误。
wget -c https://sourceforge.net/projects/r8s/files/r8s1.81.tar.gz
tar xvfz r8s1.81.tar.gz
cd r8s1.81/src
make -f Makefile.linux
ReadNexusFile2.c: In function ‘doSimCommand’:
ReadNexusFile2.c:5385:12: warning: too many arguments for format [-Wformat-extra-args]
printf("\nBranch evolution simulation:\nseed=%li\n\nrate transition=%f\n",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** No rule to make target '/usr/include/sys/errno.h', needed by 'memory.o'. Stop.
此外,我发现了一个 Docker 容器这里r8s 但我们的 HPC 不允许 Docker,而且我似乎找不到 Dockerfile。
如何才能编译软件?
先感谢您。
答案1
我必须结合以下来源的解决方案:
- http://phylobotanist.blogspot.com/2015/02/dated-phylogenies-my-experience-using.html
- https://www.biostars.org/p/386655/#386677
> sudo apt install gfortran
> wget -q https://sourceforge.net/projects/r8s/files/r8s1.81.tar.gz \
&& tar -zxvf r8s1.81.tar.gz \
&& cd r8s1.81/src \
&& sed -i 's|/usr/include/sys/errno.h||' Makefile.linux \
&& sed -i 's/continuousML.o //' Makefile.linux \
&& sed -i 's/continuousML.o:/#continuousML.o:/' Makefile.linux \
&& make -f Makefile.linux