Error:
I've install zlib and ncurses at first.
=========================
Thanks GenoMax for the help, samtools on my server is working.
Here are what I did.
1. Replace " -D_CURSES_LIB=1" by " -D_CURSES_LIB=0" in line 4 of Makefile
2. Comment out "#LIBCURSES= -lcurses # -lXCurses" in Makefile.
3. Delete the duplicate of "libz*" in /usr/local/lib/.
I replace the "/lib64/libz.so.1.2.3" by "/usr/local/bin/libz.so.1.2.8". Then result of /lib64/lib and /usr/local/lib/ directory like this:
=========================
system info: CentOS 6.3
when I download samtools source file "samtools-0.1.19.tar.bz2" from sourceforge.net. The following errors were reported for the first time to compile samtools.
Error 1:
According to suggestions from online searches. It can be compiled finally after a few changes to the file "Makefile"
1. Add the "-L/usr/local/lib -I/usr/include/ncurses" to end of line-2 of Makefile under directory of /samtools-0.1.19.
before:
after:
2. change the "-D_CURSES_LIB=1" to "-D_CURSES_LIB=0" in the line-4
before
after
Code:
$./samtools: /lib64/libz.so.1: version `ZLIB_1.2.3.3' not found (required by ./samtools)
=========================
Thanks GenoMax for the help, samtools on my server is working.
Here are what I did.
1. Replace " -D_CURSES_LIB=1" by " -D_CURSES_LIB=0" in line 4 of Makefile
2. Comment out "#LIBCURSES= -lcurses # -lXCurses" in Makefile.
3. Delete the duplicate of "libz*" in /usr/local/lib/.
I replace the "/lib64/libz.so.1.2.3" by "/usr/local/bin/libz.so.1.2.8". Then result of /lib64/lib and /usr/local/lib/ directory like this:
Code:
$ls -l /usr/local/lib/libz* -rw-r--r-- 1 root root 126318 Dec 18 12:47 /usr/local/lib/libz.a lrwxrwxrwx 1 root root 13 Dec 18 12:47 /usr/local/lib/libz.so.1 -> libz.so.1.2.8 -rwxr-xr-x 1 root root 99184 Dec 18 12:47 /usr/local/lib/libz.so.1.2.8 $ls -l /lib64/libz* lrwxrwxrwx 1 root root 13 Dec 19 09:42 /lib64/libz.so.1 -> libz.so.1.2.8 -rwxr-xr-x 1 root root 99184 Dec 19 09:41 /lib64/libz.so.1.2.8
system info: CentOS 6.3
Code:
$head -n 1 /etc/issue CentOS release 6.3 (Final) $uname -a Linux ***** 2.6.32-279.19.1.el6.x86_64 #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Error 1:
Code:
$make .... collect2: ld returned 1 exit status make[1]: *** [samtools] Error 1 make[1]: Leaving directory `/home/wangming/Documents/samtools-0.1.19' make: *** [all-recur] Error 1
1. Add the "-L/usr/local/lib -I/usr/include/ncurses" to end of line-2 of Makefile under directory of /samtools-0.1.19.
before:
Code:
CFLAGS= -g -Wall -O2
Code:
CFLAGS= -g -Wall -O2 -L/usr/local/lib -I/usr/include/ncurses #
before
Code:
DFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1
Code:
DFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=0
Comment