teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

zlib install

2018/06/24 14:21

投稿

shotaroh
shotaroh

スコア23

title CHANGED
File without changes
body CHANGED
@@ -15,28 +15,9 @@
15
15
  make[1]: Nothing to be done for `all'.
16
16
 
17
17
  ```
18
- ちなみにファイルの中身です。
19
- ```
20
- /samtools-0.1.19$ ls
21
- AUTHORS bam2bcf_indel.c bam_index.o bam_rmdup.o bamshuf.c cut_target.o knetfile.h phase.c sam_view.c
22
- COPYING bam2bcf_indel.o bam_lpileup.c bam_rmdupse.c bamshuf.o errmod.c knetfile.o phase.o sam_view.o
23
- ChangeLog.old bam2depth.c bam_lpileup.o bam_rmdupse.o bamtk.c errmod.h kprobaln.c razf.c sample.c
24
- INSTALL bam2depth.o bam_mate.c bam_sort.c bamtk.o errmod.o kprobaln.h razf.h sample.h
25
- Makefile bam_aux.c bam_mate.o bam_sort.o bcftools examples kprobaln.o razf.o sample.o
26
- Makefile.mingw bam_aux.o bam_md.c bam_stat.c bedcov.c faidx.c kseq.h razip samtools
27
- NEWS bam_cat.c bam_md.o bam_stat.o bedcov.o faidx.h ksort.h razip.c samtools.1
28
- bam.c bam_cat.o bam_pileup.c bam_tview.c bedidx.c faidx.o kstring.c razip.o win32
29
- bam.h bam_color.c bam_pileup.o bam_tview.h bedidx.o kaln.c kstring.h sam.c
30
- bam.h~ bam_color.o bam_plcmd.c bam_tview.o bgzf.c kaln.h kstring.o sam.h
31
- bam.o bam_endian.h bam_plcmd.o bam_tview_curses.c bgzf.h kaln.o libbam.a sam.o
32
- bam2bcf.c bam_import.c bam_reheader.c bam_tview_curses.o bgzf.o khash.h misc sam_header.c
33
- bam2bcf.h bam_import.o bam_reheader.o bam_tview_html.c bgzip.c klist.h padding.c sam_header.h
34
- bam2bcf.o bam_index.c bam_rmdup.c bam_tview_html.o cut_target.c knetfile.c padding.o sam_header.o
35
18
 
19
+ INSTALL 注意書き
36
20
  ```
37
-
38
- INSTALL の中身
39
- ```
40
21
  System Requirements
41
22
  ===================
42
23
 
@@ -67,4 +48,33 @@
67
48
  a location you want (e.g. a directory in your $PATH). You may also copy
68
49
  `samtools.1' and `bcftools/bcftools.1' to a directory in your $MANPATH such
69
50
  that the `man' command may find the manual.
51
+ ```
52
+
53
+ ### 試したこと
54
+ zlib がないのかもと思いましたが、あったようです。
55
+ ```
56
+ $ brew install zlib
57
+ Warning: zlib 1.2.11 is already installed and up-to-date
58
+ To reinstall 1.2.11, run `brew reinstall zlib`
59
+ ```
60
+
61
+ ###
62
+ ちなみにファイルの中身です。
63
+ ```
64
+ /samtools-0.1.19$ ls
65
+ AUTHORS bam2bcf_indel.c bam_index.o bam_rmdup.o bamshuf.c cut_target.o knetfile.h phase.c sam_view.c
66
+ COPYING bam2bcf_indel.o bam_lpileup.c bam_rmdupse.c bamshuf.o errmod.c knetfile.o phase.o sam_view.o
67
+ ChangeLog.old bam2depth.c bam_lpileup.o bam_rmdupse.o bamtk.c errmod.h kprobaln.c razf.c sample.c
68
+ INSTALL bam2depth.o bam_mate.c bam_sort.c bamtk.o errmod.o kprobaln.h razf.h sample.h
69
+ Makefile bam_aux.c bam_mate.o bam_sort.o bcftools examples kprobaln.o razf.o sample.o
70
+ Makefile.mingw bam_aux.o bam_md.c bam_stat.c bedcov.c faidx.c kseq.h razip samtools
71
+ NEWS bam_cat.c bam_md.o bam_stat.o bedcov.o faidx.h ksort.h razip.c samtools.1
72
+ bam.c bam_cat.o bam_pileup.c bam_tview.c bedidx.c faidx.o kstring.c razip.o win32
73
+ bam.h bam_color.c bam_pileup.o bam_tview.h bedidx.o kaln.c kstring.h sam.c
74
+ bam.h~ bam_color.o bam_plcmd.c bam_tview.o bgzf.c kaln.h kstring.o sam.h
75
+ bam.o bam_endian.h bam_plcmd.o bam_tview_curses.c bgzf.h kaln.o libbam.a sam.o
76
+ bam2bcf.c bam_import.c bam_reheader.c bam_tview_curses.o bgzf.o khash.h misc sam_header.c
77
+ bam2bcf.h bam_import.o bam_reheader.o bam_tview_html.c bgzip.c klist.h padding.c sam_header.h
78
+ bam2bcf.o bam_index.c bam_rmdup.c bam_tview_html.o cut_target.c knetfile.c padding.o sam_header.o
79
+
70
80
  ```

2

INSTALL の注意書き追加

2018/06/24 14:21

投稿

shotaroh
shotaroh

スコア23

title CHANGED
File without changes
body CHANGED
@@ -33,4 +33,38 @@
33
33
  bam2bcf.h bam_import.o bam_reheader.o bam_tview_html.c bgzip.c klist.h padding.c sam_header.h
34
34
  bam2bcf.o bam_index.c bam_rmdup.c bam_tview_html.o cut_target.c knetfile.c padding.o sam_header.o
35
35
 
36
+ ```
37
+
38
+ INSTALL の中身
39
+ ```
40
+ System Requirements
41
+ ===================
42
+
43
+ SAMtools depends on the zlib library <http://www.zlib.net>. Version 1.2.3+ is
44
+ preferred and with 1.2.3+ you can compile razip and use it to compress a FASTA
45
+ file. SAMtools' faidx is able to index a razip-compressed FASTA file to save
46
+ diskspace. Older zlib also works with SAMtools, but razip cannot be compiled.
47
+
48
+ The text-based viewer (tview) requires the GNU ncurses library
49
+ <http://www.gnu.org/software/ncurses/>, which comes with Mac OS X and most of
50
+ the modern Linux/Unix distributions. If you do not have this library installed,
51
+ you can still compile the rest of SAMtools by manually changing:
52
+ `-D_CURSES_LIB=1' to `-D_CURSES_LIB=0' at the line starting with `DFLAGS=', and
53
+ comment out the line starting with `LIBCURSES='.
54
+
55
+
56
+ Compilation
57
+ ===========
58
+
59
+ Type `make' to compile samtools. If you have zlib >= 1.2.2.1, you can compile
60
+ razip with `make razip'.
61
+
62
+
63
+ Installation
64
+ ============
65
+
66
+ Copy `samtools', `bcftools/bcftools' and other executables/scripts in `misc' to
67
+ a location you want (e.g. a directory in your $PATH). You may also copy
68
+ `samtools.1' and `bcftools/bcftools.1' to a directory in your $MANPATH such
69
+ that the `man' command may find the manual.
36
70
  ```

1

OS名

2018/06/24 14:16

投稿

shotaroh
shotaroh

スコア23

title CHANGED
File without changes
body CHANGED
@@ -3,6 +3,7 @@
3
3
  バイオインフォマティクス系のソフトウェア(https://sourceforge.net/projects/samtools/files/samtools/0.1.19/)の
4
4
  インストールを試みたところ、以下のようなエラーが出てしまい、ビルドできません。
5
5
  解決法をさがしており、なかなかうまいこといかないので、こちらで質問させていただきました。
6
+ OSは`macOS High Sierra`です。
6
7
 
7
8
  ```
8
9
  $ make
@@ -13,4 +14,23 @@
13
14
  gcc -g -Wall -O2 -o bcftools call1.o main.o ../kstring.o ../bgzf.o ../knetfile.o ../bedidx.o -L. -lbcf -lm -lz -lpthread
14
15
  make[1]: Nothing to be done for `all'.
15
16
 
17
+ ```
18
+ ちなみにファイルの中身です。
19
+ ```
20
+ /samtools-0.1.19$ ls
21
+ AUTHORS bam2bcf_indel.c bam_index.o bam_rmdup.o bamshuf.c cut_target.o knetfile.h phase.c sam_view.c
22
+ COPYING bam2bcf_indel.o bam_lpileup.c bam_rmdupse.c bamshuf.o errmod.c knetfile.o phase.o sam_view.o
23
+ ChangeLog.old bam2depth.c bam_lpileup.o bam_rmdupse.o bamtk.c errmod.h kprobaln.c razf.c sample.c
24
+ INSTALL bam2depth.o bam_mate.c bam_sort.c bamtk.o errmod.o kprobaln.h razf.h sample.h
25
+ Makefile bam_aux.c bam_mate.o bam_sort.o bcftools examples kprobaln.o razf.o sample.o
26
+ Makefile.mingw bam_aux.o bam_md.c bam_stat.c bedcov.c faidx.c kseq.h razip samtools
27
+ NEWS bam_cat.c bam_md.o bam_stat.o bedcov.o faidx.h ksort.h razip.c samtools.1
28
+ bam.c bam_cat.o bam_pileup.c bam_tview.c bedidx.c faidx.o kstring.c razip.o win32
29
+ bam.h bam_color.c bam_pileup.o bam_tview.h bedidx.o kaln.c kstring.h sam.c
30
+ bam.h~ bam_color.o bam_plcmd.c bam_tview.o bgzf.c kaln.h kstring.o sam.h
31
+ bam.o bam_endian.h bam_plcmd.o bam_tview_curses.c bgzf.h kaln.o libbam.a sam.o
32
+ bam2bcf.c bam_import.c bam_reheader.c bam_tview_curses.o bgzf.o khash.h misc sam_header.c
33
+ bam2bcf.h bam_import.o bam_reheader.o bam_tview_html.c bgzip.c klist.h padding.c sam_header.h
34
+ bam2bcf.o bam_index.c bam_rmdup.c bam_tview_html.o cut_target.c knetfile.c padding.o sam_header.o
35
+
16
36
  ```