1) 编辑setup.py. 改变以下内容
CFLAGS = ["-fPIC","-DORACLE8i"]
LFLAGS = ["-Wl,-rpath,%s" % string.join(LIB_DIR,",")]
LIBS=['clntsh']
改变后内容为
CFLAGS = ["-DORACLE8i"]
LFLAGS = None
LIBS=['clntsh','ocijdbc8']
2) 运行python setup.py build
3) 接着, 切换到roo, 运行python setup.py install
4) 如果要对DCOracle进行测试,要改变当前目录到别的目录下,比如/tmp。
CFLAGS = ["-fPIC","-DORACLE8i"]
LFLAGS = ["-Wl,-rpath,%s" % string.join(LIB_DIR,",")]
LIBS=['clntsh']
改变后内容为
CFLAGS = ["-DORACLE8i"]
LFLAGS = None
LIBS=['clntsh','ocijdbc8']
2) 运行python setup.py build
3) 接着, 切换到roo, 运行python setup.py install
4) 如果要对DCOracle进行测试,要改变当前目录到别的目录下,比如/tmp。