Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Install CUBRID Python Driver from Source (Linux)


Install Python Development Package

If you do not have Python Development Package installed in your system, follow this tutorial to install it.

 

 

Install CUBRID Python Driver

Linux

 

  • Extract the archive to the desired location (Ex.: /home/user/).
    tar xvfz cubrid-python-src-8.4.0.0001.tar.gz
  • Navigate to the directory where you have extracted the source code.
    cd cubrid-python-src
  • Build the driver. At this and next step make sure you are still under the root user.
    python setup.py build
  • Install the driver. Here you also need root privileges.
    python setup.py install

 

Windows

 

  • Extract the archive to the desired location,you can use winrar or other tool.
  • Navigate to the directory where you have extracted the source code.
    cd cubrid-python-src
  • Build the driver. At this and next step make sure you are still under the root user. You need to install vs2008 first.
    python setup.py build
  • Install the driver. 
    python setup.py install

Mac OS

 

  • Extract the archive to the desired location (Ex.: /home/user/).
    tar xvfz cubrid-python-src-8.4.0.0001.tar.gz
  • Navigate to the directory where you have extracted the source code.
    cd cubrid-python-src/cci-src
  • We need to create symlinks to two GNU libs because Mac OS X version of these libs are not compatible with CUBRID source code as we use GNU version. So let's link them.
    ln -s /opt/local/bin/greadlink readlink
  • Build the driver. At this and next step make sure you are still under the root user.
    cd ..
    python setup.py build
  • Install the driver. Here you also need root privileges.
    python setup.py install
  

If you install the driver with pip, please use greadlink instead of readlink first,  for example:

ls -l /usr/bin/readlink
/usr/bin/readlink -> /opt/local/bin/greadlink
 

comments powered by Disqus
Page info
viewed 3904 times
translations en
Author
posted 3 years ago by
CUBRID
Contributors
updated last month by
View revisions
Share this article