Mac下编译安装EJDB

从http://ejdb.org/下载源代码,解压,Softmotions-ejdb

cd tcejdb
./configure --prefix=/opt/ejdb/env
make
make install

source /opt/ejdb/env/bin/activate
cd pyejdb

修改setup.py

class EJDBPythonExt(object): 去掉

kwargs["libraries"].append("rt")

ejdb_ext = EJDBPythonExt添加

library_dirs=['/opt/ejdb/env/lib'],

修改class build_ext(_build_ext): 去掉

if check_extension(ext)

class EJDBPythonExt ...
more ...