Download - Installing CUBRID on Linux
![Page 1: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/1.jpg)
Installing CUBRIDon Linux
http://www.cubrid.org/tutorialsTrainings Channel
![Page 2: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/2.jpg)
CUBRID Installers for Linux
Three types of the Installation Packages are available:
– CUBRID-<version>-linux.<architecture>.sh– CUBRID-<version>-linux.<architecture>.tar.gz– CUBRID-<version>-linux.<architecture>.rpm
Available for both x86 and x64 architectures:– CUBRID-<version>-linux.i386.sh– CUBRID-<version>-linux.x86_64.sh
2
![Page 3: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/3.jpg)
Installation Methods
The presentation will show how to install CUBRID using two popular packages:
– .sh installer– .rpm installer
3
![Page 4: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/4.jpg)
Software Requirements
Linux OS– glibc 2.3.4 or later– Check it by typing the following command in the
terminal
Or
Java Runtime Environment (JRE or JDK)– Required only by CUBRID Manager GUI client in
window based environment– Available at
http://www.cubrid.org/wiki_apis/entry/setting-java-environment-path
4
rpm –q glibc
uname -a
Note that 2.12.90 is greater than 2.3.4, which means CUBRID will work fine in this environment.
glibc-2.12.90-18.i686Example:
![Page 5: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/5.jpg)
Download CUBRID for Linux
1.From Internet Browsera) Visit http://www.cubrid.org/linux_downloadsb) Download the right installer based on your system
architecture to your user profile directory (Ex: /home/user)
2.In system consolea) Type
• wget is a powerful download manager for Linux. It might not be installed on your system by default. So, if your system asks to install it, confirm and continue.
• Instead of URL_LINK paste the full URL. All CUBRID installation files are hosted on Sourcefroge.net so the link should look something like http://sourceforge.net/projects/cubrid/files/CUBRID-8.4.0/CUBRID-8.4.0.2027-el5.i386.rpm/downloadwhere the bolded part of the URL changes with every CUBRID version and type of file.
5
wget URL_LINK
![Page 6: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/6.jpg)
.sh Installation
6
![Page 7: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/7.jpg)
7
Begin the Installation
1. Navigate to the directory where the CUBRID Installation Package is located
2. Type the following command to install CUBRID using the .sh installer
This command will install CUBRID version 8.4.0. You should type the name of the file you have downloaded.If sudo (the administrative rights) is used to launch the installer, the CUBRID Service should also be started with sudo.
sh CUBRID-8.4.0.2027-linux.i386.sh
![Page 8: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/8.jpg)
8
License Agreement
Type “yes”To agree with the CUBRID License Terms, type “yes” and press
“Enter”.cubridtest@ubuntu:~$ sh CUBRID-8.4.0.2027-linux.i386.shCopyright (C) 2008-2010 Search Solution Corporation. All rights reserved.CUBRID is registered trademark of Search Solution Corporation.
This Software is released under GNU GPL v2 or BSD according to its components.For more information, please refer to the CUBRID home page(http://www.cubrid.com).
-----------------------------------------------------------------------------Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.………………………………………Do you agree to the above license terms? (yes or no) : yes
![Page 9: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/9.jpg)
9
Destination Directory
Hit “Enter”The default installation location will be in the “CUBRID” subdirectory of the current directory. If necessary set the destination directory and hit “Enter”.
Do you want to install this software(CUBRID) to the default(/home/cubridtest/CUBRID) directory? (yes or no) [Default: yes] :
![Page 10: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/10.jpg)
10
Continue the Installation
Hit “Enter”The following message is displayed to let the user know that in case a user connects to the remote CUBRID Database Server, the release versions should be identical, i.e. CUBRID Manager 8.4.0 should be used to connect to the remote CUBRID Database Server 8.4.0.
Install CUBRID to '/home/cubridtest/CUBRID' ...In case a different version of the CUBRID product is being used in other machines, please note that the CUBRID 2008 R4.0 servers are only compatible with the CUBRID 2008 R4.0 clients and vice versa.Do you want to continue? (yes or no) [Default: yes] :
![Page 11: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/11.jpg)
11
Installation Completed!
Congratulations!CUBRID DBMS has successfully been installed.
CUBRID has been successfully installed.
demodb has been successfully created.
If you want to use CUBRID, run the following commands % . /home/cubridtest/.cubrid.sh % cubrid service start
![Page 12: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/12.jpg)
12
Starting CUBRID Service
Type the following two commands to start the CUBRID Service1. 2.
You should see the following messages.
Remember to use sudo with cubrid service start if sudo has been used to launch the CUBRID Installer.
. /home/cubridtest/.cubrid.sh
cubrid service start
@ cubrid master start++ cubrid master start: success@ cubrid broker start++ cubrid broker start: success@ cubrid manager server start++ cubrid manager server start: success
There is a space after the first dot and no space before the second dot.
![Page 13: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/13.jpg)
.rpm Installation
13
![Page 14: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/14.jpg)
14
.rpm Package Dependency
CUBRID .rpm package has one dependency, which is the C shell library called csh.
a) Type to see if csh is installedb) If it outputs the version of csh and other a
short guide, then the necessary library is installed, and you are good to continue. Otherwise, if you see “Command not found. Similar command is: 'ssh'”, then csh library is not installed in your system.
c) To install it, become rootd) and install csh library:
su -
csh --help
yum install cshWhen it prompts for confirmation, type “y”.
There is a space between su and -
![Page 15: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/15.jpg)
15
Begin the Installation
1. Navigate to the directory where the CUBRID Installation Package is located
2. Type the following command to install CUBRID using the .rpm installera) become a root userb) install CUBRID
This command will install CUBRID version 8.4.0. You should type the name of the file you have downloaded.
rpm –Uvh CUBRID-8.4.0.2027-linux.x86_64.rpm
su -
![Page 16: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/16.jpg)
16
Installation Completed!
Congratulations!CUBRID DBMS has successfully been installed.
[root@localhost fedorauser]# rpm -Uvh CUBRID-8.4.0.2027-el5.i386.rpm Preparing... ########################################### [100%] 1:CUBRID ########################################### [100%]
Thank you for installing the CUBRID Database System! Visit http://www.cubrid.org/tutorials for more information.
![Page 17: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/17.jpg)
17
Starting CUBRID Service
When CUBRID has been installed using the .rpm package, the installed automatically creates a new user called cubrid. First, you have to set a new password for it. Next time you will use this password.1. Become root2. Change cubrid user password by typing3. Type twice the desired password for
cubrid user.
passwd cubrid
su -
[root@localhost fedorauser]# passwd cubridChanging password for user cubrid.New password: Retype new password: passwd: all authentication tokens updated successfully.
![Page 18: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/18.jpg)
18
Starting CUBRID Service
4. Login under new cubrid user5. Start the CUBRID Service
You should see the following messages.
su - cubrid
cubrid service start
@ cubrid master start++ cubrid master start: success@ cubrid broker start++ cubrid broker start: success@ cubrid manager server start++ cubrid manager server start: success
![Page 19: Installing CUBRID on Linux](https://reader036.vdocuments.pub/reader036/viewer/2022082404/553b96f64a795980388b46e2/html5/thumbnails/19.jpg)
19
Need Help?
Visit http://forum.cubrid.orgCUBRID Official Forum has a dedicated thread for CUBRID Installation where you can ask any questions.
Visit http://www.cubrid.org/tutorials
Various tutorials to help and improve your knowledge and skills.