GuoliangLi-HZAU / BatMeth2

BS-seq analysis pipeline
38 stars 12 forks source link

install error "bin/ld: cannot find -lz" #14

Closed LongZhao1992 closed 4 years ago

LongZhao1992 commented 4 years ago

Dear Prof. Li,

Thank you so much for your nice tool for DNA methylation analysis. When I installed BatMeth2, I get an error during "make".

image I googled it, and got an answer that libz.so cannot be found. However, libz is in my conda path. I added it to $LD_LIBRARY_PATH, but it still does not work. So, may I get some suggestions from you? gcc version 4.4.7 gsl-2.4 zlib-1.2.11

Thank you for your time in advance. Zhao Long

image image

ZhouQiangwei commented 4 years ago

Dear Zhao Long,

Thank you very much for your interest in the software we developed. This error during your installation is due to the GCC that comes with your conda environment. There are two ways to solve this problem.

  1. Copy zlib Library in conda environment to GCC Library folder of conda, and then reinstall batmeth2. cp ~/anaconda2/lib/libz.* ~/anaconda2/x86_64-conda_cos6-linux-gnu/lib/

  2. You also can temporarily exit conda environment and install batmeth2.

Please feel free to contact us if you have any questions.

Best Regards,

LongZhao1992 commented 4 years ago

Hi, Qingwei, Thank you so much for your reply! Cool! Your solutions worked for me. Emma... Another error with gsl... Is that due to the improper installation of gsl? image

Best, Zhao Long

ZhouQiangwei commented 4 years ago

Hi, Zhao Long, I am very happy that your problem has been solved.

You can download and install the GSL library and add it to your environment variables. export C_INCLUDE_PATH=$C_INCLUDE_PATH:~/software/gsl-2.4/include export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:~/software/gsl-2.4/include export LD_LIBRARY_PATH=$LD_LIBRARY_PATH::~/gsl-2.4/lib export LIBRARY_PATH=$LIBRARY_PATH::~/gsl-2.4/lib

LongZhao1992 commented 4 years ago

Hi, Qiangwei, Many thanks for your guiding, and installation has been done well. And this pipeline works well for Arabidopsis, genome size of which is relatively small. However, there were something looks no logical when I build the index for wheat, which has a big genome. TAIR10: image

Wheat image

And I got a message when building index: image

So, I just wonder is there a bug for big genome size or I do something wrong. BatMeth2 build_index KN9204.fa the code for wheat and Arabidopsis are the same

Best Regards Zhao Long

ZhouQiangwei commented 4 years ago

Hi, Zhao long, Could you please provide a download link for the wheat genome? Thanks.

LongZhao1992 commented 4 years ago

Hi, Qiangwei, This is the link for version IWGSC 1.0. https://urgi.versailles.inra.fr/download/iwgsc/IWGSC_RefSeq_Assemblies/v1.0/

Thank you for your time.

Zhao Long

ZhouQiangwei commented 4 years ago

Hi, Zhao long, Thank you very much for your very valuable feedback. We have fixed this bug and hope that you can use the new version of BatMeth2. You need to re-download the fasta genome file before you build the genome index. If you encounter any problems, please feel free to contact us. I am very sorry for the inconvenience. Thanks, Qiangwei

LongZhao1992 commented 4 years ago

Hi, Qiangwei, Cool!I will try it and feedback to you. Best, Zhao Long

LongZhao1992 commented 4 years ago

Hi, Qiangwei, I got the same error although I downloaded the new version BatMeth2 from github. I re-installed the new version BatMeth2, and deleted the old index. But I got the same error. Then I re-send the genome sequence to the server. And I still got the same error. I can not re-download the genome, because the genome I want to use is a custom genome assamblied by ourself. So, are there any suggestions? Thank you in advance.

Fortunately, BatMeth2 works for Arabidopsis genome, and I got through the whole process.

Zhao Long

LongZhao1992 commented 4 years ago

Hi, Qiangwei, I update the new version BatMeth2, and all problems have been solved. So I can close it. Again, many thanks for your help and excellent software. It's a nice tool for me.

Best regards,

Zhao Long