Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [mahmood@cluster ~]$ cd
- [mahmood@cluster ~]$ mkdir src
- [mahmood@cluster ~]$ cd src
- [mahmood@cluster src]$ wget ftp://ftp.ensembl.org/pub/ensembl-api.tar.gz
- --2017-06-25 23:42:36-- ftp://ftp.ensembl.org/pub/ensembl-api.tar.gz
- => "ensembl-api.tar.gz"
- Resolving ftp.ensembl.org... 193.62.193.8
- Connecting to ftp.ensembl.org|193.62.193.8|:21... connected.
- Logging in as anonymous ... Logged in!
- ==> SYST ... done. ==> PWD ... done.
- ==> TYPE I ... done. ==> CWD (1) /pub ... done.
- ==> SIZE ensembl-api.tar.gz ... 59733883
- ==> PASV ... done. ==> RETR ensembl-api.tar.gz ... done.
- Length: 59733883 (57M) (unauthoritative)
- 100%[===================================================================================>] 59,733,883 111K/s in 22m 25s
- 2017-06-26 00:05:05 (43.4 KB/s) - "ensembl-api.tar.gz" saved [59733883]
- [mahmood@cluster src]$ wget https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/BioPerl-1.6.1.tar.gz
- --2017-06-26 00:05:13-- https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/BioPerl-1.6.1.tar.gz
- Resolving cpan.metacpan.org... 151.101.128.249, 151.101.192.249, 151.101.0.249, ...
- Connecting to cpan.metacpan.org|151.101.128.249|:443... connected.
- ERROR: certificate common name "a.ssl.fastly.net" doesn't match requested host name "cpan.metacpan.org".
- To connect to cpan.metacpan.org insecurely, use '--no-check-certificate'.
- [mahmood@cluster src]$ wget https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/BioPerl-1.6.1.tar.gz --no-check-certificate
- --2017-06-26 00:05:28-- https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/BioPerl-1.6.1.tar.gz
- Resolving cpan.metacpan.org... 151.101.192.249, 151.101.0.249, 151.101.64.249, ...
- Connecting to cpan.metacpan.org|151.101.192.249|:443... connected.
- WARNING: certificate common name "a.ssl.fastly.net" doesn't match requested host name "cpan.metacpan.org".
- HTTP request sent, awaiting response... 200 OK
- Length: 10462526 (10.0M) [application/x-gzip]
- Saving to: "BioPerl-1.6.1.tar.gz"
- 100%[===================================================================================>] 10,462,526 117K/s in 90s
- 2017-06-26 00:07:01 (114 KB/s) - "BioPerl-1.6.1.tar.gz" saved [10462526/10462526]
- [mahmood@cluster src]$ tar zxf ensembl-api.tar.gz
- [mahmood@cluster src]$ tar zxf BioPerl-1.6.1.tar.gz
- [mahmood@cluster src]$ vim ../.bashrc
- [mahmood@cluster src]$ cat ../.bashrc
- # .bashrc
- # Source global definitions
- if [ -f /etc/bashrc ]; then
- . /etc/bashrc
- fi
- # User specific aliases and functions
- PERL5LIB=${PERL5LIB}:${HOME}/src/bioperl-1.6.1
- PERL5LIB=${PERL5LIB}:${HOME}/src/ensembl/modules
- PERL5LIB=${PERL5LIB}:${HOME}/src/ensembl-compara/modules
- PERL5LIB=${PERL5LIB}:${HOME}/src/ensembl-variation/modules
- PERL5LIB=${PERL5LIB}:${HOME}/src/ensembl-funcgen/modules
- export PERL5LIB
- [mahmood@cluster src]$ source ../.bashrc
- [mahmood@cluster src]$ cd ~/src
- [mahmood@cluster src]$ git clone --branch master --depth 1 https://github.com/samtools/htslib.git
- Cloning into 'htslib'...
- remote: Counting objects: 211, done.
- remote: Compressing objects: 100% (181/181), done.
- remote: Total 211 (delta 29), reused 90 (delta 18), pack-reused 0
- Receiving objects: 100% (211/211), 1.19 MiB | 93 KiB/s, done.
- Resolving deltas: 100% (29/29), done.
- [mahmood@cluster src]$ cd htslib
- [mahmood@cluster htslib]$ make
- gcc -g -Wall -O2 -I. -c -o kfunc.o kfunc.c
- gcc -g -Wall -O2 -I. -c -o knetfile.o knetfile.c
- gcc -g -Wall -O2 -I. -c -o kstring.o kstring.c
- gcc -g -Wall -O2 -I. -c -o bcf_sr_sort.o bcf_sr_sort.c
- gcc -g -Wall -O2 -I. -c -o bgzf.o bgzf.c
- gcc -g -Wall -O2 -I. -c -o errmod.o errmod.c
- gcc -g -Wall -O2 -I. -c -o faidx.o faidx.c
- gcc -g -Wall -O2 -I. -c -o hfile.o hfile.c
- gcc -g -Wall -O2 -I. -c -o hfile_net.o hfile_net.c
- echo '#define HTS_VERSION "1.5"' > version.h
- gcc -g -Wall -O2 -I. -c -o hts.o hts.c
- gcc -g -Wall -O2 -I. -c -o md5.o md5.c
- gcc -g -Wall -O2 -I. -c -o multipart.o multipart.c
- gcc -g -Wall -O2 -I. -c -o probaln.o probaln.c
- gcc -g -Wall -O2 -I. -c -o realn.o realn.c
- gcc -g -Wall -O2 -I. -c -o regidx.o regidx.c
- gcc -g -Wall -O2 -I. -c -o sam.o sam.c
- gcc -g -Wall -O2 -I. -c -o synced_bcf_reader.o synced_bcf_reader.c
- gcc -g -Wall -O2 -I. -c -o vcf_sweep.o vcf_sweep.c
- gcc -g -Wall -O2 -I. -c -o tbx.o tbx.c
- gcc -g -Wall -O2 -I. -c -o textutils.o textutils.c
- gcc -g -Wall -O2 -I. -c -o thread_pool.o thread_pool.c
- gcc -g -Wall -O2 -I. -c -o vcf.o vcf.c
- gcc -g -Wall -O2 -I. -c -o vcfutils.o vcfutils.c
- gcc -g -Wall -O2 -I. -c -o cram/cram_codecs.o cram/cram_codecs.c
- gcc -g -Wall -O2 -I. -c -o cram/cram_decode.o cram/cram_decode.c
- gcc -g -Wall -O2 -I. -c -o cram/cram_encode.o cram/cram_encode.c
- gcc -g -Wall -O2 -I. -c -o cram/cram_external.o cram/cram_external.c
- gcc -g -Wall -O2 -I. -c -o cram/cram_index.o cram/cram_index.c
- gcc -g -Wall -O2 -I. -c -o cram/cram_io.o cram/cram_io.c
- gcc -g -Wall -O2 -I. -c -o cram/cram_samtools.o cram/cram_samtools.c
- gcc -g -Wall -O2 -I. -c -o cram/cram_stats.o cram/cram_stats.c
- gcc -g -Wall -O2 -I. -c -o cram/files.o cram/files.c
- gcc -g -Wall -O2 -I. -c -o cram/mFILE.o cram/mFILE.c
- gcc -g -Wall -O2 -I. -c -o cram/open_trace_file.o cram/open_trace_file.c
- gcc -g -Wall -O2 -I. -c -o cram/pooled_alloc.o cram/pooled_alloc.c
- gcc -g -Wall -O2 -I. -c -o cram/rANS_static.o cram/rANS_static.c
- gcc -g -Wall -O2 -I. -c -o cram/sam_header.o cram/sam_header.c
- gcc -g -Wall -O2 -I. -c -o cram/string_alloc.o cram/string_alloc.c
- ar -rc libhts.a kfunc.o knetfile.o kstring.o bcf_sr_sort.o bgzf.o errmod.o faidx.o hfile.o hfile_net.o hts.o md5.o multipart.o probaln.o realn.o regidx.o sam.o synced_bcf_reader.o vcf_sweep.o tbx.o textutils.o thread_pool.o vcf.o vcfutils.o cram/cram_codecs.o cram/cram_decode.o cram/cram_encode.o cram/cram_external.o cram/cram_index.o cram/cram_io.o cram/cram_samtools.o cram/cram_stats.o cram/files.o cram/mFILE.o cram/open_trace_file.o cram/pooled_alloc.o cram/rANS_static.o cram/sam_header.o cram/string_alloc.o
- ranlib libhts.a
- gcc -g -Wall -O2 -I. -fpic -c -o kfunc.pico kfunc.c
- gcc -g -Wall -O2 -I. -fpic -c -o knetfile.pico knetfile.c
- gcc -g -Wall -O2 -I. -fpic -c -o kstring.pico kstring.c
- gcc -g -Wall -O2 -I. -fpic -c -o bcf_sr_sort.pico bcf_sr_sort.c
- gcc -g -Wall -O2 -I. -fpic -c -o bgzf.pico bgzf.c
- gcc -g -Wall -O2 -I. -fpic -c -o errmod.pico errmod.c
- gcc -g -Wall -O2 -I. -fpic -c -o faidx.pico faidx.c
- gcc -g -Wall -O2 -I. -fpic -c -o hfile.pico hfile.c
- gcc -g -Wall -O2 -I. -fpic -c -o hfile_net.pico hfile_net.c
- gcc -g -Wall -O2 -I. -fpic -c -o hts.pico hts.c
- gcc -g -Wall -O2 -I. -fpic -c -o md5.pico md5.c
- gcc -g -Wall -O2 -I. -fpic -c -o multipart.pico multipart.c
- gcc -g -Wall -O2 -I. -fpic -c -o probaln.pico probaln.c
- gcc -g -Wall -O2 -I. -fpic -c -o realn.pico realn.c
- gcc -g -Wall -O2 -I. -fpic -c -o regidx.pico regidx.c
- gcc -g -Wall -O2 -I. -fpic -c -o sam.pico sam.c
- gcc -g -Wall -O2 -I. -fpic -c -o synced_bcf_reader.pico synced_bcf_reader.c
- gcc -g -Wall -O2 -I. -fpic -c -o vcf_sweep.pico vcf_sweep.c
- gcc -g -Wall -O2 -I. -fpic -c -o tbx.pico tbx.c
- gcc -g -Wall -O2 -I. -fpic -c -o textutils.pico textutils.c
- gcc -g -Wall -O2 -I. -fpic -c -o thread_pool.pico thread_pool.c
- gcc -g -Wall -O2 -I. -fpic -c -o vcf.pico vcf.c
- gcc -g -Wall -O2 -I. -fpic -c -o vcfutils.pico vcfutils.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/cram_codecs.pico cram/cram_codecs.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/cram_decode.pico cram/cram_decode.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/cram_encode.pico cram/cram_encode.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/cram_external.pico cram/cram_external.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/cram_index.pico cram/cram_index.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/cram_io.pico cram/cram_io.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/cram_samtools.pico cram/cram_samtools.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/cram_stats.pico cram/cram_stats.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/files.pico cram/files.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/mFILE.pico cram/mFILE.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/open_trace_file.pico cram/open_trace_file.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/pooled_alloc.pico cram/pooled_alloc.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/rANS_static.pico cram/rANS_static.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/sam_header.pico cram/sam_header.c
- gcc -g -Wall -O2 -I. -fpic -c -o cram/string_alloc.pico cram/string_alloc.c
- gcc -shared -Wl,-soname,libhts.so.2 -o libhts.so kfunc.pico knetfile.pico kstring.pico bcf_sr_sort.pico bgzf.pico errmod.pico faidx.pico hfile.pico hfile_net.pico hts.pico md5.pico multipart.pico probaln.pico realn.pico regidx.pico sam.pico synced_bcf_reader.pico vcf_sweep.pico tbx.pico textutils.pico thread_pool.pico vcf.pico vcfutils.pico cram/cram_codecs.pico cram/cram_decode.pico cram/cram_encode.pico cram/cram_external.pico cram/cram_index.pico cram/cram_io.pico cram/cram_samtools.pico cram/cram_stats.pico cram/files.pico cram/mFILE.pico cram/open_trace_file.pico cram/pooled_alloc.pico cram/rANS_static.pico cram/sam_header.pico cram/string_alloc.pico -lz -lm -lbz2 -llzma -lpthread
- ln -sf libhts.so libhts.so.2
- gcc -g -Wall -O2 -I. -c -o bgzip.o bgzip.c
- gcc -o bgzip bgzip.o libhts.a -lz -lm -lbz2 -llzma -lpthread
- gcc -g -Wall -O2 -I. -c -o htsfile.o htsfile.c
- gcc -o htsfile htsfile.o libhts.a -lz -lm -lbz2 -llzma -lpthread
- gcc -g -Wall -O2 -I. -c -o tabix.o tabix.c
- gcc -o tabix tabix.o libhts.a -lz -lm -lbz2 -llzma -lpthread
- gcc -g -Wall -O2 -I. -c -o test/hts_endian.o test/hts_endian.c
- test/hts_endian.c: In function 't_double':
- ./htslib/hts_endian.h:152: warning: dereferencing pointer 'buf.17' does break strict-aliasing rules
- ./htslib/hts_endian.h:152: note: initialized from here
- ./htslib/hts_endian.h:152: warning: dereferencing pointer 'buf.17' does break strict-aliasing rules
- ./htslib/hts_endian.h:152: note: initialized from here
- test/hts_endian.c: In function 't_float':
- ./htslib/hts_endian.h:136: warning: dereferencing pointer 'buf.16' does break strict-aliasing rules
- ./htslib/hts_endian.h:136: note: initialized from here
- ./htslib/hts_endian.h:136: warning: dereferencing pointer 'buf.16' does break strict-aliasing rules
- ./htslib/hts_endian.h:136: note: initialized from here
- gcc -o test/hts_endian test/hts_endian.o -lz -lm -lbz2 -llzma
- gcc -g -Wall -O2 -I. -c -o test/fieldarith.o test/fieldarith.c
- gcc -o test/fieldarith test/fieldarith.o libhts.a -lz -lm -lbz2 -llzma -lpthread
- gcc -g -Wall -O2 -I. -c -o test/hfile.o test/hfile.c
- gcc -o test/hfile test/hfile.o libhts.a -lz -lm -lbz2 -llzma -lpthread
- gcc -g -Wall -O2 -I. -c -o test/sam.o test/sam.c
- gcc -o test/sam test/sam.o libhts.a -lz -lm -lbz2 -llzma -lpthread
- gcc -g -Wall -O2 -I. -c -o test/test_bgzf.o test/test_bgzf.c
- gcc -o test/test_bgzf test/test_bgzf.o libhts.a -lz -lz -lm -lbz2 -llzma -lpthread
- gcc -g -Wall -O2 -I. -c -o test/test-regidx.o test/test-regidx.c
- gcc -o test/test-regidx test/test-regidx.o libhts.a -lz -lm -lbz2 -llzma -lpthread
- gcc -g -Wall -O2 -I. -c -o test/test_view.o test/test_view.c
- gcc -o test/test_view test/test_view.o libhts.a -lz -lm -lbz2 -llzma -lpthread
- gcc -g -Wall -O2 -I. -c -o test/test-vcf-api.o test/test-vcf-api.c
- gcc -o test/test-vcf-api test/test-vcf-api.o libhts.a -lz -lm -lbz2 -llzma -lpthread
- gcc -g -Wall -O2 -I. -c -o test/test-vcf-sweep.o test/test-vcf-sweep.c
- gcc -o test/test-vcf-sweep test/test-vcf-sweep.o libhts.a -lz -lm -lbz2 -llzma -lpthread
- gcc -g -Wall -O2 -I. -c -o test/test-bcf-sr.o test/test-bcf-sr.c
- gcc -o test/test-bcf-sr test/test-bcf-sr.o libhts.a -lz -lz -lm -lbz2 -llzma -lpthread
- [mahmood@cluster htslib]$ export HTSLIB_DIR=${HOME}/src/htslib/
- [mahmood@cluster htslib]$ cd ..
- [mahmood@cluster src]$ git clone https://github.com/Ensembl/Bio-DB-HTS.git
- Cloning into 'Bio-DB-HTS'...
- remote: Counting objects: 2972, done.
- remote: Compressing objects: 100% (13/13), done.
- remote: Total 2972 (delta 4), reused 12 (delta 3), pack-reused 2954
- Receiving objects: 100% (2972/2972), 9.84 MiB | 110 KiB/s, done.
- Resolving deltas: 100% (1587/1587), done.
- [mahmood@cluster src]$ cd Bio-DB-HTS
- [mahmood@cluster Bio-DB-HTS]$ perl Build.PL
- Can't locate Module/Build.pm in @INC (@INC contains: /export/home/mahmood/src/bioperl-1.6.1 /export/home/mahmood/src/ensembl/modules /export/home/mahmood/src/ensembl-compara/modules /export/home/mahmood/src/ensembl-variation/modules /export/home/mahmood/src/ensembl-funcgen/modules /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Build.PL line 20.
- BEGIN failed--compilation aborted at Build.PL line 20.
- [mahmood@cluster Bio-DB-HTS]$
- --
- Regards,
- Mahmood
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement