Installing kentsourcetools on Ma OS

23 views
Skip to first unread message

grant hartzog

unread,
May 9, 2013, 6:03:32 PM5/9/13
to gen...@soe.ucsc.edu
I am trying to install the kentsourcetools on my Mac (x86_64, OS 10.8.3) and am failing. It appears to be a problem with zlib, which is on my machine. Any clues as to what might be going wrong here?

I exported the following two variables

MYSQLLIBS="/usr/local/mysql/lib/libmysqlclient.a -lz"
MYSQLINC=/usr/local/mysql/include/mysql

and then did this:

dhcp-151-90:~ grant$ cd kent/src
dhcp-151-90:src grant$ make
cd lib && make
make[1]: `x86_64/jkweb.a' is up to date.
cd jkOwnLib && make
make[1]: `../lib/x86_64/jkOwnLib.a' is up to date.
cd hg/lib && make
make[1]: `../../lib/x86_64/jkhgap.a' is up to date.
mkdir -p /Users/grant/bin/scripts
mkdir -p /Users/grant/bin/x86_64
ameme
gcc -O -g -o /Users/grant/bin/x86_64/ameme ameme.o fragFind.o ../lib/x86_64/jkweb.a -pthread -lssl -lcrypto -lpng -lm -lm
true /Users/grant/bin/x86_64/ameme

[snip]

gcc -O -g -o /Users/grant/bin/x86_64/bigBedInfo bigBedInfo.o ../../lib/x86_64/jkweb.a -pthread -lssl -lcrypto -lpng -lm -lz -lm
true /Users/grant/bin/x86_64/bigBedInfo
bigBedNamedItems
gcc -O -g -o /Users/grant/bin/x86_64/bigBedNamedItems bigBedNamedItems.o ../../lib/x86_64/jkweb.a -pthread -lssl -lcrypto -lpng -lm -lm
Undefined symbols for architecture x86_64:
"_compress", referenced from:
_zCompress in jkweb.a(zlibFace.o)
_zSelfTest in jkweb.a(zlibFace.o)
"_uncompress", referenced from:
_zUncompress in jkweb.a(zlibFace.o)
_zSelfTest in jkweb.a(zlibFace.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [all] Error 1
make[1]: *** [all] Error 2
make: *** [utils] Error 2

Hiram Clawson

unread,
May 9, 2013, 7:00:51 PM5/9/13
to grant hartzog, gen...@soe.ucsc.edu
Good Afternoon Grant:

Please correct the 'makefile' in the bigBedNamedItems
directory to read:

kentSrc = ../..
A = bigBedNamedItems
include $(kentSrc)/inc/userApp.mk
L += -lm -lz

Your 'makefile' is probably missing the -lz on the L += line.
It was updated after the most recent source code release.

--Hiram
Reply all
Reply to author
Forward
0 new messages