Skip to content

Make local installs possible

Marek Szuba requested to merge github/fork/keiranmraine/master into master

Created by: keiranmraine

Hi Rishi,

This will make non-root installs possible. Just run as:

$ perl INSTALL.pl 1
This will install Bio-HTSTools and its dependencies. Continue? [Y/n]: 
Install to local/custom path requested [~/local/]: 
...
install -p -m 644 libhts.so /home/user/local//lib/libhts.so.1.3-dirty
ln -sf libhts.so.1.3-dirty /home/user/local//lib/libhts.so
ln -sf libhts.so.1.3-dirty /home/user/local//lib/libhts.so.1
sed -e 's#@includedir@#/home/user/local//include#g;s#@libdir@#/home/user/local//lib#g;s#@PACKAGE_VERSION@#1.3-dirty#g' htslib.pc.in > /home/user/local//lib/pkgconfig/htslib.pc
chmod 644 /home/user/local//lib/pkgconfig/htslib.pc
install -p bgzip htsfile tabix /home/user/local//bin
if test -n ""; then install -p  ; fi
install -p -m 644 htslib/*.h /home/user/local//include/htslib
install -p -m 644 libhts.a /home/user/local//lib/libhts.a
install -p -m 644 htsfile.1 tabix.1 /home/user/local//share/man/man1
install -p -m 644 faidx.5 sam.5 vcf.5 /home/user/local//share/man/man5
...
*** Installing Bio-HTSTools to /home/user/local/. ***
Building Bio-DB-HTS
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/auto/Bio/DB/HTS/HTS.bs
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/auto/Bio/DB/HTS/HTS.so
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/auto/Bio/DB/HTS/Faidx/Faidx.bs
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/auto/Bio/DB/HTS/Faidx/Faidx.so
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/Query.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/Pileup.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/Faidx.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/Constants.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/ReadIterator.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/VCF.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/AlignWrapper.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/Tabix.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/Alignment.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/FetchIterator.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/PileupWrapper.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/Target.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/Segment.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/ConfigData.pm
Installing /home/user/local/lib/perl5/x86_64-linux-thread-multi/Bio/DB/HTS/Tabix/Iterator.pm

Regards, Keiran

Merge request reports