Xingyu-Liao / LongRepMarker_v2.0

11 stars 3 forks source link

Problem with the installation of minimap2 #4

Open Hypecoum opened 2 years ago

Hypecoum commented 2 years ago

Hi,

Thanks for creating such great programmes!

I have a problem when trying to install the software, it stops at the Minimap2 installation, which I have anyway installed locally using conda before.

Please see the installation log here:

cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC main.c -o main.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC kthread.c -o kthread.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC kalloc.c -o kalloc.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC misc.c -o misc.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC bseq.c -o bseq.o

Not sure what is the problem actually. Hopefully you can help.

Thanks!

Xingyu-Liao commented 2 years ago

Hi,

Thanks for creating such great programmes!

I have a problem when trying to install the software, it stops at the Minimap2 installation, which I have anyway installed locally using conda before.

Please see the installation log here:

cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC main.c -o main.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC kthread.c -o kthread.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC kalloc.c -o kalloc.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC misc.c -o misc.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC bseq.c -o bseq.o

Not sure what is the problem actually. Hopefully you can help.

Thanks!


Hi,

Thanks for your feedback. When minimap2 is successfully installed, the log should look like this.

cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC main.c -o main.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC kthread.c -o kthread.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC kalloc.c -o kalloc.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC misc.c -o misc.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC bseq.c -o bseq.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC sketch.c -o sketch.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC sdust.c -o sdust.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC options.c -o options.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC index.c -o index.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC lchain.c -o lchain.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC align.c -o align.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC hit.c -o hit.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC seed.c -o seed.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC map.c -o map.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC format.c -o format.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC pe.c -o pe.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC esterr.c -o esterr.o cc -c -g -Wall -O2 -Wc++-compat -DHAVE_KALLOC splitidx.c -o splitidx.o cc -c -g -Wall -O2 -Wc++-compat -msse2 -DHAVE_KALLOC ksw2_ll_sse.c -o ksw2_ll_sse.o cc -c -g -Wall -O2 -Wc++-compat -msse4.1 -DHAVE_KALLOC -DKSW_CPU_DISPATCH ksw2_extz2_sse.c -o ksw2_extz2_sse41.o cc -c -g -Wall -O2 -Wc++-compat -msse4.1 -DHAVE_KALLOC -DKSW_CPU_DISPATCH ksw2_extd2_sse.c -o ksw2_extd2_sse41.o cc -c -g -Wall -O2 -Wc++-compat -msse4.1 -DHAVE_KALLOC -DKSW_CPU_DISPATCH ksw2_exts2_sse.c -o ksw2_exts2_sse41.o cc -c -g -Wall -O2 -Wc++-compat -msse2 -mno-sse4.1 -DHAVE_KALLOC -DKSW_CPU_DISPATCH -DKSW_SSE2_ONLY ksw2_extz2_sse.c -o ksw2_extz2_sse2.o cc -c -g -Wall -O2 -Wc++-compat -msse2 -mno-sse4.1 -DHAVE_KALLOC -DKSW_CPU_DISPATCH -DKSW_SSE2_ONLY ksw2_extd2_sse.c -o ksw2_extd2_sse2.o cc -c -g -Wall -O2 -Wc++-compat -msse2 -mno-sse4.1 -DHAVE_KALLOC -DKSW_CPU_DISPATCH -DKSW_SSE2_ONLY ksw2_exts2_sse.c -o ksw2_exts2_sse2.o cc -c -g -Wall -O2 -Wc++-compat -msse4.1 -DHAVE_KALLOC -DKSW_CPU_DISPATCH ksw2_dispatch.c -o ksw2_dispatch.o ar -csru libminimap2.a kthread.o kalloc.o misc.o bseq.o sketch.o sdust.o options.o index.o lchain.o align.o hit.o seed.o map.o format.o pe.o esterr.o splitidx.o ksw2_ll_sse.o ksw2_extz2_sse41.o ksw2_extd2_sse41.o ksw2_exts2_sse41.o ksw2_extz2_sse2.o ksw2_extd2_sse2.o ksw2_exts2_sse2.o ksw2_dispatch.o cc -g -Wall -O2 -Wc++-compat main.o -o minimap2 -L. -lminimap2 -lm -lz -lpthread

To install minimap2, you need to have a C compiler, GNU make and zlib development files installed. Maybe these conditions are met in your conda environment, but not on your system (outside of conda ).

I will test the full steps of LongRepMarker installation in conda as soon as possible and provide a solution to the problem. Thank you very much!

Best,

Xingyu Liao

Hypecoum commented 2 years ago

Thanks for answering! I have solved the issue by installing it outside my conda environment. The program is up and running now.

Thanks for your help.

Best

Hypecoum commented 2 years ago

All right, apologies for bothering you again but I now have difficulties executing the programme. I am getting the following error:

│Error: Could not find or load main class LongRepMarker │Caused by: java.lang.ClassNotFoundException: LongRepMarker

Any help with resolving this would be appreciated. Thanks!

Xingyu-Liao commented 2 years ago

All right, apologies for bothering you again but I now have difficulties executing the programme. I am getting the following error:

│Error: Could not find or load main class LongRepMarker │Caused by: java.lang.ClassNotFoundException: LongRepMarker

Any help with resolving this would be appreciated. Thanks!


Hi,

I have updated the source code of LongRepMarker_v2.0. Please refer to the following steps to install LongRepMarker_v2.0 with conda..

1) Download the source file of LongRepMarker_v2.0 from google drive
(https://drive.google.com/file/d/1rH1Q1l2lgoH_3ctIv_EULisYDBUDc21v/view)

2) Decompress the "LongRepMarker_v2.0.zip" file. cd /data/zip     # for example, the compressed file is stored in the directory of "/data/zip". unzip ./LongRepMarker_v2.0.zip     # decompresses the file named "LongRepMarker_v2.0.zip".

3) Create a conda virtual environment. conda create -n TE python=3.8 pip=20.0.2 perl=5.32.1 make=4.2 unzip gcc=10.3.0 zlib pysam cmake

4) Activate the conda environment. conda activate TE

5) Enter the working directory of LongRepMarker from the conda environment. (TE)xingyu_liao@kw60204: cd /data/zip/LongRepMarker_v2.0     #TE is the name of conda virtual environment.

6) Install LongRepMarker_v2.0. (TE)xingyu_liao@kw60204:/data/zip/LongRepMarker_v2.0: ./Makefile.sh

I have tested this installation method several times. Please download the latest version of LongRepMarker_v2.0 and rebuild it with conda. I think this way of installation can solve your problem. Thanks!

Best,

Xingyu Liao

Hypecoum commented 2 years ago

Thanks for trying to fix it.

I have downloaded your updated zip and have followed all the steps. Unfortunately, the installation stalls again at the minimap2 step, as it cannot install this program.

Xingyu-Liao commented 2 years ago

Thanks for trying to fix it.

I have downloaded your updated zip and have followed all the steps. Unfortunately, the installation stalls again at the minimap2 step, as it cannot install this program.


Hi,

Please download the latest version LongRepMarker_v2.0 from google drive and reinstall it. Thanks!

Best,

Xingyu Liao

Hypecoum commented 2 years ago

Thanks,

Please let me know when you release the updates that fix the issue.

Best

Op wo 1 jun. 2022 om 15:55 schreef Xingyu-Liao @.***>:

Thanks for trying to fix it.

I have downloaded your updated zip and have followed all the steps. Unfortunately, the installation stalls again at the minimap2 step, as it cannot install this program.


Hi,

Please don't worry, I have a new solution and I will solve your problem as soon as possible.

Best,

Xingyu Liao

— Reply to this email directly, view it on GitHub https://github.com/Xingyu-Liao/LongRepMarker_v2.0/issues/4#issuecomment-1143644276, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDK7KZEG2D7DM6Q5HTAEGDVM5TTJANCNFSM5XK2E3BA . You are receiving this because you authored the thread.Message ID: @.***>

-- Yannick Woudstra

Xingyu-Liao commented 2 years ago

Thanks, Please let me know when you release the updates that fix the issue. Best Op wo 1 jun. 2022 om 15:55 schreef Xingyu-Liao @.>: Thanks for trying to fix it. I have downloaded your updated zip and have followed all the steps. Unfortunately, the installation stalls again at the minimap2 step, as it cannot install this program. ------------------------------ Hi, Please don't worry, I have a new solution and I will solve your problem as soon as possible. Best, Xingyu Liao — Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDK7KZEG2D7DM6Q5HTAEGDVM5TTJANCNFSM5XK2E3BA . You are receiving this because you authored the thread.Message ID: @.> -- Yannick Woudstra

Hi,

We have updated the source code yesterday (Monday, ‎June ‎6, ‎2022), please download and reinstall it refer to the following steps.

  1. Download the source file of LongRepMarker_v2.1 from google cloud drive (https://drive.google.com/file/d/1KvC152P2i3gGcG055W5IrhZ_PctWpUam/view?usp=sharing).

  2. Decompress the "LongRepMarker_v2.1.zip" file. cd /data/zip     # for example, the compressed file is stored in the directory of "/data/zip". unzip ./LongRepMarker_v2.1.zip     # decompresses the file named "LongRepMarker_v2.1.zip".

  3. Create a conda virtual environment. conda create -n TE python=3.8 pip=20.0.2 perl=5.32.1 make=4.2 unzip gcc=10.3.0 zlib pysam cmake zstd

  4. Activate the conda environment. conda activate TE

  5. Enter the working directory of LongRepMarker from the conda environment. (TE)xingyu_liao@kw60204: cd /data/zip/LongRepMarker_v2.1     #TE is the name of conda virtual environment.

  6. Install LongRepMarker_v2.1. (TE)xingyu_liao@kw60204:/data/zip/LongRepMarker_v2.1: ./Makefile.sh

Possible problem and it solution

/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory (This problem may occur during the installation of the gfatools tool)

Solution : Install gcc-multilib: Command: sudo apt-get install gcc-multilib g++-multilib


If the exception still occurs during installation, please contact me again. Thanks!

Best,

Xingyu Liao