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 ...

编译sqlcipher 到 python 安装程序

环境:

操作系统: MacOSX, Ubuntu Python: 2.7

编译sqlcipher

./configure --disable-tcl --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto" --prefix="python_install_path”

修改python 源代码下的setup.py

#sqlite_inc_paths = [ '/usr/include',
#                     '/usr/include/sqlite',
#                     '/usr/include/sqlite3',
#                     '/usr/local/include',
#                     '/usr/local/include/sqlite',
#                     '/usr/local/include/sqlite3',
#                   ]
sqlite_inc_paths = [ '/opt/recro_qtapp/include/sqlcipher',
]

#        for d_ in inc_dirs ...
more ...