Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.4.3 |  CUBRID 9.0.0 | 

Installing and Configuring Python

For Linux/UNIX

There are three ways to install CUBRID Python driver on Linux, UNIX, and UNIX-like operating systems. You can find instructions for each of them below.

Requirements
  • CUBRID: 2008 R4.0 (8.4.0) or later
  • Operating system: 32-bit or 64-bit Linux, UNIX, or UNIX-like operating systems
  • Python: 2.4 or later (http://www.python.org/download/)
Installing CUBRID Python Driver using Yum (Fedora or CentOS)
  1. To install CUBRID Python driver by using the yum command, you need to tell Yum where to look for CUBRID package. First, visit one of the following links depending on your operating system.

    For the example to install CUBRID 9.0 on Fedora 17 is as folllows: (fc17 means this operating system version).

    rpm -i http://yumrepository.cubrid.org/cubrid_repo_settings/9.0.0/cubridrepo-9.0.0-1.fc17.noarch.rpm

  2. Enter the command below to install CUBRID Python driver.

    yum install python-cubrid

Building CUBRID Python Driver from Source Code (Linux)

To install CUBRID Python driver by compiling source code, you should have Python Development Package installed on your system. If you do not have the package, follow the instructions stated at http://www.cubrid.org/wiki_apis/entry/install-python-development-package.

  1. Download the source code from http://www.cubrid.org/?mid=downloads&item=python_driver.
  2. Extract the archive to the desired location.

    tar xvfz cubrid-python-src-8.4.0.0001.tar.gz

  3. Navigate to the directory where you have extracted the source code.

    cd cubrid-python-src

  4. Build the driver. At this and next step, make sure you are still under the root user.

    python setup.py build

  5. Install the driver. Here you also need root privileges.

    python setup.py install

Using a Package Manager (EasyInstall) of CUBRID Python Driver (Linux)

EasyInstall is a Python module (easy_install) bundled with setuptools that lets you automatically download, build, install, and manage Python packages. It gives you a quick way to install packages remotely by connecting to other websites via HTTP as well as connecting to the Package Index. It is somewhat analogous to the CPAN and PEAR tools for Perl and PHP, respectively. For more information about EasyInstall, see http://packages.python.org/distribute/easy_install.html.

Enter the command below to install CUBRID Python driver by using EasyInstall.

easy_install CUBRID-Python

Windows

To install CUBRID Python driver on Windows, first download CUBRID Python driver as follows:

  1. Visit the website below to download the driver. You will be given to select your operating system and Python version installed on your system.

    http://www.cubrid.org/?mid=downloads&item=python_driver&os=windows&python=detect

  2. Extract the archive you downloaded. You should see a folder and two files in the folder. Copy these files to the Lib folder where your Python has been installed; by default, it is C:Program FilesPythonLib.

Note To get the latest information about Python driver, click http://www.cubrid.org/wiki_apis/entry/cubrid-python-driver.