ODB:C++库环境配置笔记


ubuntu:postgresql:sudo apt-get install libpq-dev 

CentOS 7:

g++:sudo yum install gcc-c++

postgresql:sudo yum install postgresql-devel


then libodb
the odb-pgsql
./configure CPPFLAGS=-I/opt/Post*/9.4/include LDFLAGS=-L/.../lib

 install odb
then libodb
the odb-pgsql
./configure CPPFLAGS=-I/opt/Post*/9.4/include LDFLAGS=-L/.../lib

oracle:oracle jdk+oracle client 

#set oracle environmentexport 

ORACLE_HOME=/usr/lib/oracle/11.2/client64

export ORACLE_BASE=/usr/lib/oracle/11.2

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

export NLS_LANG=AMERICAN_AMERICA.AL32UTF8

odb-oracle:

./configure CPPFLAGS=-I/usr/include/oracle/11.2/client64 LDFLAGS=-L/usr/lib/oracle/11.2/client64/lib



你可能感兴趣的:(ODB:C++库环境配置笔记)