./configure应用案例

 

 

111111111、

以vcftools为例:

001、解压软件,查看软件内容

[root@pc1 software]# ls
vcftools-0.1.16.tar.gz
[root@pc1 software]# tar -xzf vcftools-0.1.16.tar.gz       ## 解压缩
[root@pc1 software]# ls
vcftools-0.1.16  vcftools-0.1.16.tar.gz
[root@pc1 software]# cd vcftools-0.1.16/                   ## 进入软件目录
[root@pc1 vcftools-0.1.16]# ls                             ## 查看内容
aclocal.m4      build-aux    configure     examples    Makefile.am  README.md
autogen.sh      compile      configure.ac  install-sh  Makefile.in  src
autom4te.cache  config.h.in  depcomp       LICENSE     missing

 

002、记录当前目录下的文件内容

[root@pc1 vcftools-0.1.16]# ls
aclocal.m4      build-aux    configure     examples    Makefile.am  README.md
autogen.sh      compile      configure.ac  install-sh  Makefile.in  src
autom4te.cache  config.h.in  depcomp       LICENSE     missing
[root@pc1 vcftools-0.1.16]# find ./ -maxdepth 1 >> /tmp/check.txt     ## 放入/tmp目录

 

003、执行./configure动作

[root@pc1 vcftools-0.1.16]# ./configure               ## 配置
[root@pc1 vcftools-0.1.16]# ls
aclocal.m4      compile      config.status  examples    Makefile.am  src
autogen.sh      config.h     configure      install-sh  Makefile.in  stamp-h1
autom4te.cache  config.h.in  configure.ac   LICENSE     missing
build-aux       config.log   depcomp        Makefile    README.md

 

004、记录当前目录的文件

[root@pc1 vcftools-0.1.16]# find ./ -maxdepth 1 >> /tmp/check.txt   ## 追加到之前的记录文件中
[root@pc1 vcftools-0.1.16]# cat /tmp/check.txt | sort | uniq -u  ## 列出执行configure之后新生成的文件
./config.h
./config.log
./config.status
./Makefile                                    ## 生成了编译文件
./stamp-h1

 。

 

2222222、

以samtools为例,并非所有.configure动作都产生makefile文件

001、解压文件

samtools-1.18.tar.bz2
[root@pc1 software]# tar -xjf samtools-1.18.tar.bz2       ## 解压文件
[root@pc1 software]# ls
samtools-1.18  samtools-1.18.tar.bz2
[root@pc1 software]# cd samtools-1.18/                    ## 进入目录
[root@pc1 samtools-1.18]# ls
amplicon_stats.c    bam_lpileup.c     bam_tview.c         doc          sam_opts.h
AUTHORS             bam_lpileup.h     bam_tview_curses.c  examples     sample.c
bam2bcf.c           bam_markdup.c     bam_tview.h         faidx.c      sample.h
bam2bcf.h           bam_mate.c        bam_tview_html.c    htslib-1.18  samtools.h
bam2depth.c         bam_md.c          bedcov.c            INSTALL      sam_utils.c
bam_addrprg.c       bam_plbuf.c       bedidx.c            install-sh   sam_utils.h
bam_ampliconclip.c  bam_plbuf.h       bedidx.h            LICENSE      sam_view.c
bam_ampliconclip.h  bam_plcmd.c       ChangeLog.old       lz4          splaysort.h
bam_aux.c           bam_quickcheck.c  config.h.in         m4           stats.c
bam.c               bam_reheader.c    config.mk.in        Makefile     stats_isize.c
bam_cat.c           bam_rmdup.c       configure           misc         stats_isize.h
bam_color.c         bam_rmdupse.c     configure.ac        NEWS         test
bam_consensus.c     bam_samples.c     consensus_pileup.c  padding.c    tmp_file.c
bam_fastq.c         bamshuf.c         consensus_pileup.h  phase.c      tmp_file.h
bam_flags.c         bam_sort.c        coverage.c          README       version.sh
bam.h               bam_split.c       cram_size.c         reference.c
bam_import.c        bam_stat.c        cut_target.c        reset.c
bam_index.c         bamtk.c           dict.c              sam_opts.c

 

002、记录当前文件

[root@pc1 samtools-1.18]# ls
amplicon_stats.c    bam_lpileup.c     bam_tview.c         doc          sam_opts.h
AUTHORS             bam_lpileup.h     bam_tview_curses.c  examples     sample.c
bam2bcf.c           bam_markdup.c     bam_tview.h         faidx.c      sample.h
bam2bcf.h           bam_mate.c        bam_tview_html.c    htslib-1.18  samtools.h
bam2depth.c         bam_md.c          bedcov.c            INSTALL      sam_utils.c
bam_addrprg.c       bam_plbuf.c       bedidx.c            install-sh   sam_utils.h
bam_ampliconclip.c  bam_plbuf.h       bedidx.h            LICENSE      sam_view.c
bam_ampliconclip.h  bam_plcmd.c       ChangeLog.old       lz4          splaysort.h
bam_aux.c           bam_quickcheck.c  config.h.in         m4           stats.c
bam.c               bam_reheader.c    config.mk.in        Makefile     stats_isize.c
bam_cat.c           bam_rmdup.c       configure           misc         stats_isize.h
bam_color.c         bam_rmdupse.c     configure.ac        NEWS         test
bam_consensus.c     bam_samples.c     consensus_pileup.c  padding.c    tmp_file.c
bam_fastq.c         bamshuf.c         consensus_pileup.h  phase.c      tmp_file.h
bam_flags.c         bam_sort.c        coverage.c          README       version.sh
bam.h               bam_split.c       cram_size.c         reference.c
bam_import.c        bam_stat.c        cut_target.c        reset.c
bam_index.c         bamtk.c           dict.c              sam_opts.c             ## 记录当前文件
[root@pc1 samtools-1.18]# find ./ -maxdepth 1 -type f | xargs -n 1 md5sum >> /tmp/check2.txt

 

003、执行.configure 

[root@pc1 samtools-1.18]# ./configure            ## 配置
[root@pc1 samtools-1.18]# ls
amplicon_stats.c    bam_lpileup.h       bam_tview.h         dict.c       sam_opts.h
AUTHORS             bam_markdup.c       bam_tview_html.c    doc          sample.c
bam2bcf.c           bam_mate.c          bedcov.c            examples     sample.h
bam2bcf.h           bam_md.c            bedidx.c            faidx.c      samtools.h
bam2depth.c         bam_plbuf.c         bedidx.h            htslib-1.18  sam_utils.c
bam_addrprg.c       bam_plbuf.h         ChangeLog.old       INSTALL      sam_utils.h
bam_ampliconclip.c  bam_plcmd.c         config.h            install-sh   sam_view.c
bam_ampliconclip.h  bam_quickcheck.c    config.h.in         LICENSE      splaysort.h
bam_aux.c           bam_reheader.c      config.log          lz4          stats.c
bam.c               bam_rmdup.c         config.mk           m4           stats_isize.c
bam_cat.c           bam_rmdupse.c       config.mk.in        Makefile     stats_isize.h
bam_color.c         bam_samples.c       config.status       misc         test
bam_consensus.c     bamshuf.c           configure           NEWS         tmp_file.c
bam_fastq.c         bam_sort.c          configure.ac        padding.c    tmp_file.h
bam_flags.c         bam_split.c         consensus_pileup.c  phase.c      version.sh
bam.h               bam_stat.c          consensus_pileup.h  README
bam_import.c        bamtk.c             coverage.c          reference.c
bam_index.c         bam_tview.c         cram_size.c         reset.c
bam_lpileup.c       bam_tview_curses.c  cut_target.c        sam_opts.c

 

004、检查configure前后文件的变化

[root@pc1 samtools-1.18]# find ./ -maxdepth 1 -type f | xargs -n 1 md5sum >> /tmp/check2.txt   ## 追加
[root@pc1 samtools-1.18]# cat /tmp/check2.txt | sort | uniq -u      ## 检查configure之后发生变化的文件
14178af89a391bc46975f9f88c50684d  ./config.h
28888782132cd85c5ef0e912df588e4d  ./config.mk
df9b5b81f2072af58f86f071f6ca6a12  ./config.status
fd4795d3351ae270b6f07edadd9dc338  ./config.log

 

 

posted @ 2023-10-10 20:51  小鲨鱼2018  阅读(6)  评论(0编辑  收藏  举报