Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.2.1 |  CUBRID 8.3.0 |  CUBRID 8.3.1 |  CUBRID 8.4.0 |  CUBRID 8.4.1 |  CUBRID 8.4.3 |  CUBRID 9.0.0 | 



Installing and Running on Linux

Details to Check when Installing

Check the following before installing CUBRID for Linux.

Category

Description

Operating system

Only supports glibc 2.3.4 or later.
The glibc version can be checked as follows:
rpm -q glibc

64-bit

Since version 2008 R2.0, CUBRID supports both 32-bit and 64-bit Linux. You can check the version as follows:
% uname -a
Linux host_name 2.6.18-53.1.14.el5xen #1 SMP Wed Mar 5 12:08:17 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
Make sure to install the CUBRID 32-bit version on 32-bit Linux and the CUBRID 64-bit version on 64-bit Linux. The followings are the libraries that should be added.
Curses Library (rpm -q ncurses)
gcrypt Library (rpm -q libgcrypt
stdc++ Library (rpm -q libstdc++)

Available free memory space

1 GB or more recommended.

Available free disk space

2 GB or more recommended (500 MB is required for initial installation and 1.5 GB is required for creating the default option database).

Required software

The CUBRID Manager and Java stored procedures require the Java Runtime Environment (JRE) version 1.6 or later.

Installing CUBRID

The installation program consists shell scripts that contain binary; thus it can be installed automatically. The following example shows how to install CUBRID with the "CUBRID-8.3.0.0312-linux.x86_64.sh" file on the Linux.

[cub_user@cubrid ~]$ sh CUBRID-8.3.1.0168-linux.x86_64.sh

Do you agree to the above license terms? (yes or no) : yes

Do you want to install this software(CUBRID) to the default(/home1/cub_user/CUBRID) directory? (yes or no) [Default: yes] : yes

Install CUBRID to '/home1/cub_user/CUBRID' ...

In case a different version of the CUBRID product is being used in other machines, please note that the CUBRID 2008 R3.1 servers are only compatible with the CUBRID 2008 R3.1 clients and vice versa.

Do you want to continue? (yes or no) [Default: yes] : yes

Copying old .cubrid.sh to .cubrid.sh.bak ...

 

CUBRID has been successfully installed.

 

demodb has been successfully created.

 

If you want to use CUBRID, run the following commands

  % . /home1/cub_user/.cubrid.sh

  % cubrid service start

As shown in the example above, after installing the downloaded file (CUBRID-8.3.1.0168-linux.x86_64.sh), the CUBRID related environment variables must be set in order to use the CUBRID database. Such setting has been made automatically when logging in the concerned terminal. Therefore there is no need to re-set after the first installation.

[cub_user@cubrid ~]$ . /home1/cub_user/.cubrid.sh

After the CUBRID Manager is installed, you can start the CUBRID Manager server and Broker as follows:

[cub_user@cubrid ~]$ cubrid service start

After starting the CUBRID service, if you wish to check whether the service was properly started, then check whether the cub_* processes have been started with grep (as shown below).

[cub_user@cubrid ~]$ ps -ef | grep cub_

cub_user 15200 1 0 18:57 ? 00:00:00 cub_master

cub_user 15205 1 0 18:57 pts/17 00:00:00 cub_broker

cub_user 15210 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_1

cub_user 15211 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_2

cub_user 15212 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_3

cub_user 15213 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_4

cub_user 15214 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_5

cub_user 15217 1 0 18:57 pts/17 00:00:00 cub_broker

cub_user 15222 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_1

cub_user 15223 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_2

cub_user 15224 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_3

cub_user 15225 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_4

cub_user 15226 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_5

cub_user 15229 1 0 18:57 ? 00:00:00 cub_auto start

cub_user 15232 1 0 18:57 ? 00:00:00 cub_js start

Installing CUBRID (rpm File)

You can install CUBRID by using rpm file that is created on CentOS5. The way of installing and uninstalling CUBRID is the same as that of using general rpm utility. While CUBRID is being installed, a new system group (cubrid) and a user account (cubrid) are created. After installation is complete, you should log in with a cubrid user account to start a CUBRID service.

$ rpm -Uvh CUBRID-8.3.1.0168-el5.x86_64.rpm

When rmp is executed, CUBRID is installed in the cubrid home directory (/opt/cubrid) and related configuration file (cubrid.[c]sh) is installed in the /etc/profile.d directory. Note that demodb is not automatically installed. Therefore, you must executed /opt/cubrid/demo/make_cubrid_demo.sh. When installation is complete, enter the code below to start CUBRID.

[cubrid@cubrid ~]$ cubrid service start

Note You must check RPM dependency when installing with RPM. If you ignore (--nodeps) dependency, it may not be executed.
Even if you remove RPM, user accounts and databases that are created after installing, you must remove it manually, if needed.

Installing CUBRID on Fedora/CentoOS

To install CUBRID using the yum command, you should know where the CUBRID package is located. Choose appropriate location based on your operating system.

For example, if you are using Fedora 16, execute the command below. In the example, fc16 refers to Fedora 16.

$ rpm -i http://yumrepository.cubrid.org/cubrid_repo_settings/8.4.0/cubridrepo-8.4.0-1.fc16.noarch.rpm

If you are using CentOS 6.2, execute the command below. In this example, el6.2 refers to CentOS.

$ rpm -i http://yumrepository.cubrid.org/cubrid_repo_settings/8.4.0/cubridrepo-8.4.0-1.el6.2.noarch.rpm

You can install the CUBRID package you have desired based on the command you execute. To install the latest version, execute the command below.

$ yum install cubrid

To install the earlier version, you should include version information in the command.

$ yum install cubrid-8.3.1

After installation is complete, configure environment variables including installation path of CUBRID and then apply them to system.

Installing CUBRID on Ubuntu

To install CUBRID using the apt-get command on Ubuntu, add the CUBRID storage first and then update the apt index.

$ sudo add-apt-repository ppa:cubrid/cubrid

$ sudo apt-get update

To install the latest version, execute the command below.

$ sudo apt-get install cubrid

To install the earlier version, you should include version information in the command.

$ sudo apt-get install cubrid-8.3.1

After installation is complete, configure environment variables including installation path of CUBRID and then apply them to system.

Upgrading CUBRID

When you specify an installation directory where the previous version of CUBRID is already installed, a message which asks to overwrite files in the directory will appear. Entering no will stop the installation.

Directory '/home1/cub_user/CUBRID' exist!

If a CUBRID service is running on this directory, it may be terminated abnormally.

And if you don't have right access permission on this directory(subdirectories or files), install operation will be failed.

Overwrite anyway? (yes or no) [Default: no] : yes

Choose whether to overwrite the existing configuration files during the CUBRID installation. Entering yes will overwrite and back up them as extension .bak files.

The configuration file (.conf or .pass) already exists. Do you want to overwrite it? (yes or no) : yes

Configuring Environment

You can modify the environment such as service ports etc. edit the parameters of a configuration file located in the $CUBRID/conf directory. See Environment Configuration for more information.

Installing CUBRID Interfaces

You can see the latest information on interface modules such as JDBC, PHP, ODBC, and OLE DB and install them by downloading files from http://www.cubrid.org/wiki_apis.

Installing CUBRID Tools

You can see the latest information on tools such as CUBRID Manager and CUBRID Query Browser and install them by downloading files from http://www.cubrid.org/wiki_tools.