Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

How to Build CUBRID from Source on Fedora/Centos


To install the required packages, simply run the command below:

sudo yum install libtool texinfo java-1.6.0-openjdk-devel flex gcc-c++ ant ncurses-devel gc-devel glibc-devel lzo-devel libedit-devel pcre-devel libaio-devel elfutils-libelf-devel chrpath

Note: java-1.7.0-openjdk-devel must be used on Fedora 17 and above instead of java-1.6.0-openjdk-devel.

Note: On Fedora 15 and above, you must also install systemd-units.

Set the JAVA Environment Path:

export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-

Make sure the path corresponds to your installation.

Building CUBRID

Generate the configure script according to your environment:



Run configure with --prefix specifying the location where you want CUBRID to be built. On 64 bit systems, you must add --enable-64-bit parameter.

./configure --prefix=/usr/share/cubrid

(or ./configure --prefix=/usr/share/cubrid --enable-64-bit for 64 bit systems)

Run  make and make install (for make install sudo access may be required to copy files to /usr/share/cubrid.

sudo make install

All the files are installed in the prefix directory (in this case /usr/share/cubrid).

The files are owned by root. If you want to edit the owner run:

sudo chown -R user:user /usr/share/cubrid

The username and group in our example is user.


In order to set the CUBRID enviroment variables, you can use this file. If you install CUBRID in a different directory, replace /usr/share/cubrid in the file with the path where you have installed CUBRID.

You have 2 options on how to use the file: 

1. copy it to /etc/profile.d/ and this way it will be loaded automatically

2. copy it to any location you want and load it using the command:

. /home/user/

Make sure to leave a space between the "." and the file. We assumed that /home/user is the directory where you copied the file.


Create the databases folder and databases.txt file:

mkdir -p /usr/share/cubrid/databases
touch /usr/share/cubrid/databases/databases.txt


Then, you can start and use cubrid:

cubrid service start

If you encounter any issue, post it on our forum or post a question in our Q&A section.

comments powered by Disqus
Page info
viewed 4596 times
translations en
posted 4 years ago by
updated 4 years ago by
View revisions
Share this article