Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Installing CUBRID on Ubuntu

To install CUBRID using apt-get on Ubuntu, we need to add CUBRID's repository so that Ubuntu knows where to download the packages from, and then tell the OS to update its indexes.

sudo add-apt-repository ppa:cubrid/cubrid
sudo apt-get update

If add-apt-repository command is not recognized by your system, you must install the python-software-properties package. Once the Python packages are installed, perform the step 1 above again, then continue.

sudo apt-get install python-software-properties

Now install the latest version of CUBRID:

sudo apt-get install cubrid

To install an earlier version, indicate the version as:

sudo apt-get install cubrid-8.4.0

To complete the installation and set the CUBRID PATH variables, reboot your OS. Until you reboot, you can also run the command ". /etc/profile.d/" every time you open up a terminal if cubrid command is not found.

Optional: If you want to install the demodb sample database, run the command:

 sudo apt-get install cubrid-demodb

Installation Notes

  • CUBRID is installed in /opt/cubrid.
  • The configuration files are placed in /etc/opt/cubrid.
  • Variable files (such as logs or databases) are stored in /var/opt/cubrid.
  • The path variables $CUBRID and $CUBRID_DATABASES are set in the file /etc/profile.d/
  • If you run a CUBRID service command, you can view its output in /var/opt/cubrid/tmp/service.cubrid.
  • CUBRID is set to automatically start on boot and the service file is located at /etc/init.d/cubrid.
  • Highly Important! cubrid or standalone csql commands can be only ran as cubrid user (which has no password). To connect as this user, use "sudo su -s $SHELL cubrid".
comments powered by Disqus
Page info
viewed 13161 times
translations en
posted 5 years ago by
updated 4 years ago by
View revisions
Share this article