BGI-shenzhen / LDBlockShow

LDBlockShow: a fast and convenient tool for visualizing linkage disequilibrium and haplotype blocks based on VCF files
MIT License
134 stars 40 forks source link

BEGIN failed--compilation aborted at /bin/ShowLDSVG line 24. #29

Closed icc317 closed 1 year ago

icc317 commented 1 year ago

I use conda install -c bioconda ldblockshow ,but ShowLDSVG is not working,so can you help me ? BEGIN failed--compilation aborted at /bin/ShowLDSVG line 24.

hewm2008 commented 1 year ago

Methold A : ShowLDSVG is a pure perl script and does not need to be compiled, so please make sure your system has perl and installed the perl-svg package

please install the SVG module from this URL [ https://metacpan.org/release/SVG ]

Methold B : Users can install it with the following : git clone https://github.com/hewm2008/LDBlockShow.git cd LDBlockShow ; chmod 755 configure ; ./configure; make; mv LDBlockShow bin/; # [rm *.o]

icc317 commented 1 year ago

conda install -c bioconda perl-svg I use this command to insatll, that show # All requested packages already installed.Therefore I use MethodB to insatll, when I run make, that show error: 'timespec_get' has not been declared in '::', make[1]: [Makefile:297: LDBlockShow.o] Error 1 make[1]: Leaving directory '/software/LDblock/LDBlockShow' make: [Makefile:178: all] Error 2

icc317 commented 1 year ago

Because I'm not an administrator, when I use cp -r /software/LDblock/LDBlockShow/bin/svg_kit /bin/ ;cp: cannot create directory '/bin/svg_kit': Permission denied, if there's any other way to solve it.

hewm2008 commented 1 year ago

cp -r /bin/LDBlockShow /software/LDblock/LDBlockShow/bin/ ; chmod 755 -R /software/LDblock/LDBlockShow/bin/

then re-run the /software/LDblock/LDBlockShow/bin/LDBlockShow
/software/LDblock/LDBlockShow/bin/ShowLDSVG

icc317 commented 1 year ago

Thank you very much! I can run it!