ODB 下载与安装 (Linux)
http://www.codesynthesis.com/products/odb/download.xhtml
Introduction
This guide presents step-by-step instructions for installing the ODB system on UNIX-like operating systems, such as GNU/Linux, Mac OS X, Solaris, etc.
Before you can start using ODB in your applications, you will need to install three essential packages: the ODB compiler (odb
), the common runtime library (libodb
), and the database-specific runtime library (libodb-<database>
). The database runtime library is specific to the database system you are planning to use. For example, if you are going to use MySQL, then the the database runtime will be libodb-mysql
. If you would like to use several database systems, install the corresponding runtime libraries for each of them.
You may also choose to install optional ODB packages such as ODB profile libraries, the ODB examples (odb-examples
) and the test suite (odb-tests
). You only need to install a profile library if you are planning to use the corresponding profile in your application. Similarly, you only need the examples and test suite if you are interested in building the examples or running the tests.
Prerequisites
In order to build ODB source packages you will need a C++ compiler. You will also most likely need a client library for the database system of your choice. For example, for MySQL you need the libmysqlclient
library. The INSTALL
file accompanying each database runtime library has more information on the database-specific prerequisites.
If you plan to build the ODB compiler from source, you will also need the GCC compiler with plugin support enabled. Alternatively, you can use one of the pre-compiled binary packages in which case a private copy of the GCC compiler is included in the ODB compiler distribution.
Installing the ODB Compiler from a Binary Package
If you would like to use the pre-compiled binary package for the ODB compiler, then you have two options: If you are using Debian/Ubuntu or one of the RedHat or derivative distributions (Fedora, RHEL, CentOS, etc.), then the easiest way to install the ODB compiler is to download the .deb
or .rpm
package for your CPU architecture. For example, for Debian/Ubuntu:
sudo dpkg -i odb_x.y.z-n_<arch>.deb
For RedHat:
sudo rpm -i odb-x.y.z-n.<arch>.rpm
Otherwise, simply download the plain archive for your operating system and CPU architecture and unpack it into a directory of your choice, for example /opt/
. The ODB compiler binary will be in the bin/
directory inside the package directory, for example /opt/odb-x.y.z-<arch>-linux-gnu/bin/
. You can run the ODB compiler by either using the absolute path, for example:
/opt/odb-x.y.z-<arch>-linux-gnu/bin/odb --version
Or you can add the bin/
directory to the PATH
environment variable, for example:
export PATH=/opt/odb-x.y.z-<arch>-linux-gnu/bin:$PATH
odb --version
Note also that while you can move the ODB compiler directory around, you cannot move individual sub-directories or files inside it. For example, copying or linking the ODB compiler executable to /usr/local/bin/
will not work.
Installing the ODB Compiler from a Source Package
If you would like to build the ODB compiler yourself, you can download the source package and use the standard autotools build system to compile and install it on your machine. The INSTALL
file in the ODB compiler source package contains more information on the prerequisites and the build procedure.
Installing the Common Runtime Library
To install the common runtime library, download the libodb
source package and use the standard autotools build system to compile and install it on your machine. Normally, the following commands are sufficient:
./configure
make
make install
The INSTALL
file in the libodb
package contains more detailed build and installation instructions.
Installing the Database Runtime Library
To install the database-specific runtime library, download the libodb-<database>
source package and use the standard autotools build system to compile and install it on your machine. Normally, the following commands are sufficient:
./configure
make
make install
The INSTALL
file in the libodb-<database>
package contains information on database-specific prerequisites as well as more detailed build and installation instructions.
Installing Profile Libraries
If you would like to install a profile library, download the corresponding source package (libodb-<profile>
) and use the standard autotools build system to compile and install it on your machine. Normally, the following commands are sufficient:
./configure
make
make install
The INSTALL
file in the libodb-<profile>
package contains information on profile-specific prerequisites as well as more detailed build and installation instructions.
Building and Running the Examples
If you would like to build and run the ODB examples, download the odb-examples
package and use the standard autotools build system to compile it on your machine. Normally, the following commands are sufficient:
./configure --with-database <database>
make
Alternatively, you can build each example manually from the command line. The README files accompanying each example contain instructions on how to do this.
Once the build is completed, you can run each example manually from the command line. See the README files accompanying each example for more information on how to do this. Alternatively, you can run all of the examples automatically using the makecheck
target, for example:
make check
In the default configuration and when run automatically, the examples will try to connect to the database system on the local host and use odb_test
as both the login name and the database name. Note that by running the examples you will overwrite any existing data that may be stored in the odb_test
database.
The INSTALL
file in the odb-examples
package contains more detailed information on how to configure, build, and run the examples.
Building and Running the Tests
If you would like to build and run the ODB test suite, download the odb-tests
package and use the standard autotools build system to compile it on your machine. Normally, the following commands are sufficient:
./configure --with-database <database>
make
To run the tests use the make check
target, for example:
make check
In the default configuration the tests will try to connect to the database system on the local host and use odb_test
as both the login name and the database name. Note that by running the test suite you will overwrite any existing data that may be stored in the odb_test
database.
The INSTALL
file in the odb-tests
package contains more detailed information on how to configure, build, and run the test suite.
ODB 下载与安装 (Linux)的更多相关文章
- ActiveMQ下载与安装(Linux环境下进行)
下载 官方网站:http:activemq.apache.org/ 安装(liunx) 1.将apache-activemq-5.12.0-bin.tar.gz(liunx环境下的压缩包)上传至服务器 ...
- Linux必备 -- 如何在Mac OS 使用VMware 安装Linux
Linux简介 Linux是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户.多任务.支持多线程和多CPU的操作系统.它能运行主要的UNIX工具软件.应用程序和网络协 ...
- 部署虚拟环境安装Linux系统
目录 准备工作 安装linux系统 重置root管理员密码 源代码编译 R ...
- 在VirtualBox下安装linux操作系统
目标:在linux服务器上部署Java开发的网站 工具 VirtualBox-4.3.8:下载后安装. linux系统镜像: Centos国内镜像文件下载地址: http://centos.ustc. ...
- linux 下载并安装Memcache服务器端
1.下载并安装Memcache服务器端 服务器端主要是安装memcache服务器端. 下载:http://www.danga.com/memcached/dist/memcached-1.2.2.ta ...
- linux系统安装(虚拟机以及linux的下载与安装)
最近开始研究linux系统,以前接触linux系统只是一些简单的命令,例如: pwd:查看当前目录 ls:遍历目录 cd :在目录之间切换等. linux系统是基于unix系统开发的,是一个 ...
- 怎么在Linux上下载并安装ESET NOD32 Antivirus 4桌面版
转自:怎么在Linux上下载并安装ESET NOD32 Antivirus 4桌面版 下载并安装ESET NOD32 Antivirus 4的Linux桌面版,根据下面的步骤一步一步的来: I. 下 ...
- 下载与安装---tensorflow on linux
http://wiki.jikexueyuan.com/project/tensorflow-zh/get_started/os_setup.html 你可以使用我们提供的 Pip, Docker, ...
- redis的下载与安装(linux版)
redis的下载与安装(linux版) 1.下载路径 https://redis.io/download 2.上传到linux并且解压 3.进入解压之后的redis,并且make && ...
随机推荐
- datetime 和 smalldatetime
用于表示某天的日期和时间的数据类型. datetime 和 smalldatetime 表示某天的日期和时间. 数据类型 范围 精确度 datetime 1753 年 1 月 1 日到 9999 年 ...
- 使用智遥工作流,优化SAP请购流程
传统请购流程,都是用户在SAP系统中填写请购单,然后再打印出来,递交给上级领导审批.领导审批完了,再到SAP系统中更新release标识.若中途请购单内容需要变更,则需要重新打印,审批. 智遥工作流, ...
- FastJSON学习
这几天在用FastJSON,发现需要测试一些关键点,包括: 1.是否支持内部类:测试结果是支持,但是需要设置为静态类(static) 2.是否支持继承的自动序列化及反序列化:测试结果是支持 3.缺字段 ...
- linux shell sleep/wait(转载)
linux shell sleep/wait(转载) 2007-04-27 18:12 bash的基本配置是由配置文件组成的./etc/profile称之为shell的全局配置文件.另外一个文件在个人 ...
- Java金字塔及变形
Java金字塔 package com.tfj.test; public class JinZiTa { public static void main(String[] args){ int num ...
- 海量数据的二度人脉挖掘算法(Hadoop 实现)
最近做了一个项目,要求找出二度人脉的一些关系,就好似新浪微博的“你可能感兴趣的人” 中,间接关注推荐:简单描述:即你关注的人中有N个人同时都关注了 XXX . 在程序的实现上,其实我们要找的是:若 U ...
- Arch linux安装
安装archlinux可参考: http://blog.sina.com.cn/s/blog_69e5d8400101bqlj.html http://www.cnblogs.com/mad/p/32 ...
- iOS8新增加的frameworks, 在目前基于7以上开发的情况下, 使用下列sdk要注意设置成optional
Added frameworks: AVKitCloudKitCoreAudioKitCoreAuthenticationHealthKitHomeKitLocalAuthenticationMeta ...
- myeclipse安装svn插件的多种方式
开发者服务评测征文 十万现金悬赏大神 方法一:在线安装 1.打开HELP->MyEclipse Configuration Center.切换到SoftWare标签页. 2.点击Ad ...
- 一步步写STM32 OS【二】环境搭建
一.安装IAR for ARM6.5 二.新建工程 1.选择处理器:STM32F407VG,暂不使用FPU 2.必要的路径配置和宏定义 3.使用SWO重定向IO输出 4.使用ST-LINK仿真器 5. ...