安装eugene的艰苦之路

wget http://eugene.toulouse.inra.fr/Downloads/eugene-4.2.tar.gz #下载eugene
gzip -cd eugene-4.2.tar.gz | tar xvf - #解压
cd eugene-4.2
./reconf
./configure --prefix /you/file/path

这时发现了错误,提示没有gd library这个库,那么就安装它

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/zhan/biosoft/eugene/eugene-4.2/config/missing: Unknown `--is-lightweight' option
Try `/home/zhan/biosoft/eugene/eugene-4.2/config/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gawk... (cached) mawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for main in -lc... yes
checking for main in -ldl... yes
checking for main in -lgcc... yes
checking for main in -lgd... no
Error! You need to have the gd library (>= 2.0) to compile eugene.
See http://www.boutell.com/gd/http/ for a download.

安装gb library

wget -c https://github.com/libgd/libgd/releases/download/gd-2.2.5/libgd-2.2.5.tar.gz
tar -zxvf libgd-2.2.5.tar.gz
./configure --prefix=/you/file/path
make install
echo "export PATH=/you/file/path/bin:$PATH" >>~/.bashrc
source ~/.bashrc

再来config

./configure --prefix /you/file/path

还是同样的错误,然后我再网上找到了原因,是因为缺少libgb-dev

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/zhan/biosoft/eugene/eugene-4.2/config/missing: Unknown `--is-lightweight' option
Try `/home/zhan/biosoft/eugene/eugene-4.2/config/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gawk... (cached) mawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for main in -lc... yes
checking for main in -ldl... yes
checking for main in -lgcc... yes
checking for main in -lgd... no
Error! You need to have the gd library (>= 2.0) to compile eugene.
See http://www.boutell.com/gd/http/ for a download.

安装libgb-dev

sudo apt-get install libgb-dev
./configure --prefix /you/file/path
make

又出现了新的错误

tclsh GenerateDoc.tcl
couldn't execute "pdflatex": no such file or directory
    while executing
"exec pdflatex -interaction=nonstopmode $FIC_TEX_TMP.tex"
    (file "GenerateDoc.tcl" line 102)
Makefile:402: recipe for target 'EuGeneDoc.pdf' failed
make[2]: *** [EuGeneDoc.pdf] Error 1
make[2]: Leaving directory '/home/zhan/biosoft/eugene/eugene-4.2/doc'
Makefile:461: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/zhan/biosoft/eugene/eugene-4.2'
Makefile:400: recipe for target 'all' failed
make: *** [all] Error 2

也就是说缺了latex这个文件

sudo apt-get install texlive-full latex-beamer
make clean
make

! LaTeX Error: File `multind.sty' not found.

Type X to quit or  to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.


l.11 ^^M

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on EuGeneDoc.log.
child process exited abnormally
    while executing
"exec pdflatex -interaction=nonstopmode $FIC_TEX_TMP.tex"
    (file "GenerateDoc.tcl" line 102)
Makefile:402: recipe for target 'EuGeneDoc.pdf' failed
make[2]: *** [EuGeneDoc.pdf] Error 1
make[2]: Leaving directory '/home/zhan/biosoft/eugene/eugene-4.2/doc'
Makefile:461: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/zhan/biosoft/eugene/eugene-4.2'
Makefile:400: recipe for target 'all' failed
make: *** [all] Error 2

还报错,我的天爷啊

根据提示说少了一个multind.sty这个文件,那就去网上下载一个multind.sty
创建一个显得文件夹,将multind.sty放进去,执行以下就可以了

sudo mkdir /usr/share/texmf/tex/latex/multind
sudo mv multind.sty /usr/share/texmf/tex/latex/multind/
sudo texhash

再来安装

make
make install

成了,妈的,安装一个软件真难

参考:

介绍专业的文档系统LaTeX
手动安装latex.sty文件

你可能感兴趣的:(安装eugene的艰苦之路)